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

AoG support for the "Auth Code" OAuth flows. #837

Merged
merged 1 commit into from
Feb 2, 2022

Conversation

ebardsley
Copy link
Contributor

It appears that Implicit flows are not available for new projects, so this
implements support for Auth Code flows. It:

  • adds support for grant_type=authentication_code in /auth
  • adds a /tokens endpoint to implement token exchange
  • adds support for expiration to tokens and simplifies map handling a bit
  • fixes argument parsing to use CGI, which correctly handles things like URLs in POST
    request arguments
  • runs perltidy

This follows the flow outlined at https://developers.google.com/assistant/identity/oauth2

It appears that Implicit flows are not available for new projects, so this
implements support for Auth Code flows. It:
 - adds support for grant_type=authentication_code in /auth
 - adds a /tokens endpoint to implement token exchange
 - adds support for expiration to tokens and simplifies map handling a bit
 - fixes argument parsing to use CGI, which correctly handles things like URLs in POST
   request arguments
 - runs perltidy

This follows the flow outlined at https://developers.google.com/assistant/identity/oauth2
@hollie
Copy link
Owner

hollie commented Nov 22, 2021

In an attempt to rerun the CI tests I will close and re-open this pull request.

@hollie hollie closed this Nov 22, 2021
@hollie hollie reopened this Nov 22, 2021
@hplato hplato merged commit 187085d into hollie:master Feb 2, 2022
@hplato hplato mentioned this pull request Aug 22, 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.

3 participants