org.entur.oauth2.RorAuthenticationConverter Maven / Gradle / Ivy
The newest version!
package org.entur.oauth2;
import org.springframework.security.oauth2.server.resource.authentication.JwtAuthenticationConverter;
/**
* Authentication converter that transforms the JWT claims into Spring Security Granted Authorities.
*/
public class RorAuthenticationConverter extends JwtAuthenticationConverter {
public RorAuthenticationConverter() {
this.setJwtGrantedAuthoritiesConverter(
new RorGrantedAuthoritiesConverter()
);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy