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

OE-215: Implement support for OAuth Client Credentials #975

Merged
merged 2 commits into from
Mar 18, 2022
Merged

Conversation

qnga
Copy link
Contributor

@qnga qnga commented Mar 9, 2022

What's this do?

  • Add an OAuth Client Credentials authentication type in AccountProviderAuthenticationDescription and related parsers. With this authentication type, credentials for basic auth are still used in AccountReadalbleType.loggingState.
  • Centralize authentication in AccountAuthenticationHelpers. When logged it, it's not based any more only on credentials, but on the full account. If OAuth Client Credentials is supported by the account provider, authentication URI is passed to the request and Simplified-Android-HTTP will get and cache an OAuth token.

Why are we doing this? (w/ JIRA link if applicable)
https://jira.nypl.org/browse/OE-215

How should this be tested? / Do these changes have associated tests?
Check that requests are intercepted in the logs.

Dependencies for merging? Releasing to production?
None

Has the application documentation been updated for these changes?
N/A

Did someone actually run this code to verify it works?
Yes, I did.

@qnga qnga changed the title Implement support for OAuth Client Credentials OE-215: Implement support for OAuth Client Credentials Mar 9, 2022
@qnga qnga merged commit eb5c4b1 into develop Mar 18, 2022
@qnga qnga deleted the feature/OE-215 branch March 18, 2022 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants