Java Spring: Accepting JWT
Accepting JWT Tokens from IndustryApps
Configuring your Third-Party Application to accept JWT tokens acquired from IndustryApps
Handling multiple JWT issuers with Spring Security 5
_@Override
protected void configure(HttpSecurity http) throws Exception {
JwtIssuerAuthenticationManagerResolver authenticationManagerResolver = new JwtIssuerAuthenticationManagerResolver(
"https://iapp-keycloak/auth/realms/iapp-realm",
"http://thirdparty-app-existing-auth2/openid"
);
http.cors()
.and()
.authorizeRequests()
.anyRequest()
.authenticated()
.and()
.oauth2ResourceServer(oauth2 -> oauth2.authenticationManagerResolver(authenticationManagerResolver))
.csrf()
.disable();
} Controller
Existing User Role Mapping with the IndustryApp JWT Token
Last updated