question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add scheme/protocol variable for OAuth2 redirectUriTemplate

See original GitHub issue

Currently 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:closed
  • Created 5 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
zeratul021commented, May 18, 2019

Yeah, I’ll have a look.

On Fri, May 17, 2019, 22:17 Rob Winch notifications@github.com wrote:

Thanks for the nudge @zeratul021 https://github.com/zeratul021! Is this something you could provide a PR for?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/spring-projects/spring-security/issues/6239?email_source=notifications&email_token=AAFY4ART6FNHX2LWVRMI7ALPV4HGFA5CNFSM4GIQJ4NKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVVYMFQ#issuecomment-493585942, or mute the thread https://github.com/notifications/unsubscribe-auth/AAFY4ATMZMP6ZQLJDEMW7DLPV4HGFANCNFSM4GIQJ4NA .

0reactions
rwinchcommented, May 17, 2019

Thanks for the nudge @zeratul021! Is this something you could provide a PR for?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found