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

refactor(client): OAuth2 Client IDs have UUID V4 enforced #3154

Merged
merged 7 commits into from
Jun 17, 2022
Merged

Conversation

aeneasr
Copy link
Member

@aeneasr aeneasr commented Jun 14, 2022

BREAKING CHANGE: It is no longer possible to set arbitrary client IDs. Instead, IDs have to be UUID V4 from now on. Clients created before the 2.0 release will continue to work with their legacy IDs.

Closes #2911

Related issue(s)

Checklist

  • I have read the contributing guidelines.
  • I have referenced an issue containing the design document if my change introduces a new feature.
  • I am following the contributing code guidelines.
  • I have read the security policy.
  • I confirm that this pull request does not address a security vulnerability. If this pull request addresses a security.
    vulnerability, I confirm that I got green light (please contact security@ory.sh) from the
    maintainers to push the changes.
  • I have added tests that prove my fix is effective or that my feature works.
  • I have added or changed the documentation.

Further Comments

@aeneasr aeneasr self-assigned this Jun 14, 2022
@aeneasr aeneasr force-pushed the fix-2911 branch 3 times, most recently from ca1d981 to 1f7b007 Compare June 15, 2022 07:25
@codecov
Copy link

codecov bot commented Jun 15, 2022

Codecov Report

❗ No coverage uploaded for pull request base (v2.x@ef27780). Click here to learn what that means.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             v2.x    #3154   +/-   ##
=======================================
  Coverage        ?   78.01%           
=======================================
  Files           ?      114           
  Lines           ?     8489           
  Branches        ?        0           
=======================================
  Hits            ?     6623           
  Misses          ?     1487           
  Partials        ?      379           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ef27780...9d03440. Read the comment docs.

BREAKING CHANGE: To improve security and scalability (in particular sharding), OAuth 2.0 Client IDs can no longer be chosen but are always assigned a random generated UUID V4. OAuth 2.0 Clients created with custom IDs before the v2.0 release will continue working with their legacy Client ID in Ory Hydra v2.x.

Additionally, the `hydra create client` command no longer supports flag `--id` and flag `--callbacks` has been renamed to `--redirect-uris`.

Closes #2911
Copy link
Member Author

@aeneasr aeneasr left a comment

Choose a reason for hiding this comment

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

Reviewed

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.

1 participant