Hey Auth0 community! I’m working on converting my watchOS app to an independent watch app that has the ability to login on it’s own. Since I can’t use the universal login flow, I’m attempting to implement the Device Authorization Flow: Call Your API Using the Device Authorization Flow
I have finished implementation and I’m able to get login to succeed, but I am not able to see any of the additional parameters the client is including in the Device Code Request POST inside my rules.
I’m using AFNetworking to make the POST and passing in two additional params: “aivastate” & “connections”:
let parameters = [
"client_id": "MY_CLIENT_ID",
"scope": "openid profile picture offline_access user_metadata app_metadata",
"audience": "MY_AUDIENCE",
"aivastate": "EXTRA_INFO_1",
"connections": "EXTRA_INFO_2"
]
AF.request(NSURL(string: "https://\(tenant.domain)/oauth/device/code")! as URL, method: .post, parameters: parameters, encoder: URLEncodedFormParameterEncoder(destination: .httpBody)).responseJSON { (response) in
//handle response here
}
There’s one parameter that I absolutely need to finish authorization, so this is making it impossible to finish this type of auth flow setup. Does anyone have a solution for this or know another way to implement login on the Watch that will pass through my additional parameters?