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

feat: built-in login/consent UI for hydra perform authorization-code #3845

Merged
merged 2 commits into from
Oct 10, 2024

Conversation

alnr
Copy link
Contributor

@alnr alnr commented Sep 20, 2024

This allows you to easily test an Authorization Code flow against hydra without having to have a consent UI otherwise available.

If you want to use the built-in UI, configure the login+consent UIs to point to the same server as the redirect URI:

ory patch oauth2-config --project $PROJECT_ID --replace '/urls/login="http://127.0.0.1:4446/login"' --replace '/urls/consent="http://127.0.0.1:4446/consent"'

Then run

ory perform authorization-code --project $PROJECT_ID --client-id xyz --client-secret abc

or

hydra perform authorization-code --client-id xyz --client-secret abc --auth-url http://... --token-url http://...

@alnr alnr requested a review from zepatrik September 20, 2024 11:51
@alnr alnr self-assigned this Sep 20, 2024
@alnr alnr changed the title feat: built-in logon/consent UI for hydra perform authorization-code feat: built-in login/consent UI for hydra perform authorization-code Sep 20, 2024
@aeneasr
Copy link
Member

aeneasr commented Oct 10, 2024

Does this require changes to the docs? Such as the quickstart guides?

@alnr
Copy link
Contributor Author

alnr commented Oct 10, 2024

Does this require changes to the docs? Such as the quickstart guides?

This is for very advanced users only. If someone finds this feature in the source code, they will figure out how to configure Hydra to use it, IMO.

@alnr
Copy link
Contributor Author

alnr commented Oct 10, 2024

All the quickstart tutorials etc continue to function as before.

@aeneasr aeneasr merged commit 7f8bd90 into master Oct 10, 2024
31 checks passed
@aeneasr aeneasr deleted the alnr/perform-auth-code-consent-ui branch October 10, 2024 17:03
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