Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

For interaction token request change /token call to interaction_code #126

Merged

Conversation

emanor-okta
Copy link
Contributor

When doing a social login, after the social IdP redirects back to Okta and Okta redirects the browser back to the mobile app with a valid code, the SDK makes the /token call with the below parameters,

{
  client_id=0oa3...
  code=A6DFLjjlDPbXmL7jmbfiaLlxnay2bFcfKzlUHHm674
  code_verifier=rhUEmyr3T7SYlV7CbGGKwM18jl_CU6qhffaeOKhxfpk
  grant_type=interaction_code
}

which returns,

{
  "error": "invalid_grant",
  "error_description": "The interaction code is invalid or has expired."
}

Code change was to change code=A6DFLjjlDPbXmL7jmbfiaLlxnay2bFcfKzlUHHm674 to interaction_code=A6DFLjjlDPbXmL7jmbfiaLlxnay2bFcfKzlUHHm674

@mikenachbaur-okta
Copy link
Contributor

@emanor-okta Can you rebase from master? I just merged a change that fixes the build issue this change is facing.

@mikenachbaur-okta mikenachbaur-okta merged commit a7d6cc1 into okta:master Feb 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants