Stratospheric by Björn Wilmsmann and Philip Riecks Tom Hombergs
Author:Björn Wilmsmann and Philip Riecks Tom Hombergs [Tom Hombergs, Björn Wilmsmann and Philip Riecks]
Language: eng
Format: mobi
Publisher: leanpub.com
Published: 2020-11-08T00:00:00+00:00
We make both the logoutUrl (representing the logout endpoint of our Cognito instance, e.g. https://stratospheric...amazoncognito/logout) and the clientId (the app client id of our Todo application) configurable, as these depend on the actual Cognito instance.
The logout_uri parameter is the URL that Cognito will redirect the end user to after the logout. This has to be a valid URL that was configured as part of the LogoutURLs of the app client. For our application, we redirect all users to the base URL of the Todo application.
With this custom LogoutSuccessHandler in place, we can now define it as a bean for our aws profile and inject the relevant environment variables to configure the handler:
1 @Configuration 2 public class LogoutSuccessHandlerConfig { 3 4 @Bean 5 @Profile("aws") 6 public LogoutSuccessHandler cognitoOidcLogoutSuccessHandler( 7 @Value("${COGNITO_CLIENT_ID}") String clientId, 8 @Value("${COGNITO_USER_POOL_LOGOUT_URL}") String userPoolLogoutUrl) { 9 return new CognitoOidcLogoutSuccessHandler(userPoolLogoutUrl, clientId); 10 } 11 }
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Ajax | Assembly Language Programming |
Borland Delphi | C & C++ |
C# | CSS |
Compiler Design | Compilers |
DHTML | Debugging |
Delphi | Fortran |
Java | Lisp |
Perl | Prolog |
Python | RPG |
Ruby | Swift |
Visual Basic | XHTML |
XML | XSL |
Deep Learning with Python by François Chollet(11958)
Hello! Python by Anthony Briggs(9413)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(9375)
The Mikado Method by Ola Ellnestam Daniel Brolund(9343)
Dependency Injection in .NET by Mark Seemann(8888)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(7884)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(7389)
Grails in Action by Glen Smith Peter Ledbrook(7321)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(7150)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(5994)
Kotlin in Action by Dmitry Jemerov(4675)
Practical Vim (for Kathryn Amaral) by Drew Neil(3740)
Cracking the GRE Premium Edition with 6 Practice Tests, 2015 (Graduate School Test Preparation) by Princeton Review(3617)
Linux Device Driver Development Cookbook by Rodolfo Giometti(3499)
Learn Windows PowerShell in a Month of Lunches by Don Jones(3269)
Becoming a Dynamics 365 Finance and Supply Chain Solution Architect by Brent Dawson(3080)
Learning Java by Patrick Niemeyer & Daniel Leuck(2881)
Learning React: Functional Web Development with React and Redux by Banks Alex & Porcello Eve(2858)
Microservices with Go by Alexander Shuiskov(2857)