Skip to content

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

Merged
aeneasr merged 2 commits intomasterfrom
alnr/perform-auth-code-consent-ui
Oct 10, 2024
Merged

feat: built-in login/consent UI for hydra perform authorization-code#3845
aeneasr merged 2 commits intomasterfrom
alnr/perform-auth-code-consent-ui

Conversation

@alnr
Copy link
Copy Markdown
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 requested review from aeneasr and hperl as code owners September 20, 2024 11:51
@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
Copy Markdown
Member

aeneasr commented Oct 10, 2024

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

@alnr
Copy link
Copy Markdown
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
Copy Markdown
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
@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