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

Validate TokenResponse #341

Merged
merged 2 commits into from
Nov 11, 2022
Merged

Validate TokenResponse #341

merged 2 commits into from
Nov 11, 2022

Conversation

rajdeepnanua-okta
Copy link
Contributor

Description:

This PR validates TokenResponse for required parameters before returning the TokenResponse. Otherwise, an AuthorizationException is thrown. access_token, token_type, and expires_in are all required parameters in okta-mobile-kotlin, and so those are the parameters being validated.

Also, reverted an earlier README update which was redundant due to existing proguard-rules.pro in the SDK.

Testing details:

  • Verified basic functionality of change
  • Added tests

Other considerations:

  • Has security implications
  • Has UX changes
RESOLVES:

OKTA-XXXXX

Primary Reviewer(s):

Additional Reviewers:
Security Reviewer(s) (@ okta/rex-team if necessary):
UX Reviewer(s) (if necessary):

Copy link

@mikenachbaur-okta mikenachbaur-okta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@rajdeepnanua-okta rajdeepnanua-okta merged commit 55f6204 into master Nov 11, 2022
@rajdeepnanua-okta rajdeepnanua-okta deleted the rn_validateTokenResponse branch November 11, 2022 17:29
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