Skip to content

Add Device Code authorization to the supported OAuth Flows #2964

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

Merged

Conversation

LikeLakers2
Copy link

@LikeLakers2 LikeLakers2 commented Jul 2, 2022

Clone of PR #2401, resubmitted against the v3.2.0-dev branch as requested by webron. Note that this is not submitted against the main branch, but I will happily resubmit it against the main branch upon request.

Description of the original PR follows, with some extraneous details edited out:


Closes #2381.

This is a PR for the Device Authorization OAuth Flow, based on RFC8628. I suggested this over at #2381 and was asked to make a PR for it.

The URL used for this flow is named deviceAuthorizationUrl, separate from authorizationUrl as the two have completely different semantics and usages, so I was concerned that using authorizationUrl for both might be confusing. That said, I would be happy to merge this into authorizationUrl if requested.

@karenetheridge
Copy link
Member

I see that schemas/v3.2 doesn't exist yet, but if this PR is accepted, some schema changes should be made as well.

@LikeLakers2
Copy link
Author

LikeLakers2 commented Jul 10, 2022

@karenetheridge Apologies for taking so long to respond, but are you suggesting I should create (and edit appropriately) the v3.2 schema folder? Or is that simply a note for whomever reviews this PR?

@karenetheridge
Copy link
Member

Yes, I think the v3.2 schema folder (with schemas) should be created in the v3.2.0-dev branch (by the maintainers), so you can merge your changes on top.

Copy link

@ericallam ericallam left a comment

Choose a reason for hiding this comment

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

Checked this change against https://datatracker.ietf.org/doc/html/rfc8628 and also a real world usage on GitHub REST Device Flow and it all looks good.

@LikeLakers2 LikeLakers2 force-pushed the oauth-flows-device-code-320 branch from 3d2193d to 045e0aa Compare August 15, 2022 08:13
@MikeRalphson
Copy link
Member

@karenetheridge as the markdown is the source of truth and the schema a (mere) artifact (though a useful one), it's normal that the creation / update of the schema can lag the creation of a new dev branch and initial changes.

Copy link
Member

@MikeRalphson MikeRalphson left a comment

Choose a reason for hiding this comment

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

LGTM - thanks.

@darrelmiller darrelmiller merged commit 33f8888 into OAI:v3.2.0-dev May 18, 2023
@handrews handrews added this to the v3.2.0 milestone May 17, 2024
handrews pushed a commit to handrews/OpenAPI-Specification that referenced this pull request Oct 21, 2024
handrews pushed a commit to handrews/OpenAPI-Specification that referenced this pull request Oct 24, 2024
handrews pushed a commit to handrews/OpenAPI-Specification that referenced this pull request Nov 10, 2024
handrews pushed a commit to handrews/OpenAPI-Specification that referenced this pull request Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants