Skip to content

How to implement a custom authorization page? #772

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

Closed
dangcom123 opened this issue Jun 9, 2022 · 3 comments
Closed

How to implement a custom authorization page? #772

dangcom123 opened this issue Jun 9, 2022 · 3 comments
Assignees
Labels
for: stackoverflow A question that's better suited to stackoverflow.com

Comments

@dangcom123
Copy link

Expected Behavior

Current Behavior

Context

@dangcom123 dangcom123 added the type: enhancement A general enhancement label Jun 9, 2022
@sjohnr
Copy link
Member

sjohnr commented Jun 9, 2022

@dangcom123 thanks for your interest in the project!

Please add more details to your request, as it is not obvious to me what you're looking for with this title alone. Also, please clarify if you're requesting a new how-to guide or simply asking a question.

@sjohnr sjohnr self-assigned this Jun 9, 2022
@sjohnr sjohnr added the status: waiting-for-feedback We need additional information before we can continue label Jun 9, 2022
@dangcom123
Copy link
Author

Hello, I want to customize the authorization page when using the authorization code mode. I trace the source code and find that the authorization page is spliced with strings in the OAuth2AuthorizationEndpointFilter and sent to the page through the response. How can I customize the authorization content?

@spring-projects-issues spring-projects-issues added status: feedback-provided Feedback has been provided and removed status: waiting-for-feedback We need additional information before we can continue labels Jun 10, 2022
@sjohnr
Copy link
Member

sjohnr commented Jun 10, 2022

Thanks @dangcom123. It sounds like you are looking to customize the authorization consent page.

You can configure a redirect to a custom consent page. You can view the custom consent sample which includes a full example as well as the docs.

I'm going to close this as answered but if you have more advanced requirements, you may consider adding a comment to gh-740.

@sjohnr sjohnr closed this as completed Jun 10, 2022
@sjohnr sjohnr added for: stackoverflow A question that's better suited to stackoverflow.com and removed status: feedback-provided Feedback has been provided type: enhancement A general enhancement labels Jun 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
for: stackoverflow A question that's better suited to stackoverflow.com
Projects
None yet
Development

No branches or pull requests

3 participants