Add scheme/protocol variable for OAuth2 redirectUriTemplate
See original GitHub issueCurrently most of us use the default redirect URL:
{baseUrl}/{action}/oauth2/code/{registrationId}
These variables are populated in DefaultOAuth2AuthorizationRequestResolver#expandRedirectUri.
Due to our platform setup and constraints we need all our redirect URIs to start with https:// We would like to reuse the default URL but change only the protocol part.
Suggestion: add variables scheme, serverName and serverPort (naming aligned with ServletRequest for redirect URI templating.
Issue Analytics
- State:
- Created 5 years ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
12. OAuth2 - Spring
The default redirect URI template is {baseUrl}/login/oauth2/code/{registrationId} . The registrationId is a unique identifier for the ClientRegistration.
Read more >Spring 5 Security OAuth2 Login Redirect Loop - Stack Overflow
redirect-uri-template is an alias for redirect-uri (they're the same variable). I found the redirect-uri in another stackoverflow post:.
Read more >Spring Security 5 - OAuth2 Login - Baeldung
Learn how to authenticate users with Facebook, Google or other credentials using OAuth2 in Spring Security 5.
Read more >Spring Security with OAuth2 Login Guide - amitph
Spring (Non Spring Boot) Dependency. If you have a Spring non-boot application, you need to add next two dependencies in your Maven configuration....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yeah, I’ll have a look.
On Fri, May 17, 2019, 22:17 Rob Winch notifications@github.com wrote:
Thanks for the nudge @zeratul021! Is this something you could provide a PR for?