Open ismorodin opened 8 years ago
Can you describe the scenario a bit more (UserAuthenticationConverter
is used in a few places)? What do you need to validate, and when?
The scenario I have is a Spring Boot application secured by Spring Security OAuth SSO using Github.
I would like to restrict access to the application to members of a specific Github org.
Is the above code along the right lines?
Thanks.
@klyall I don't think so. It would be easier to use one of the *Extractor
strategies in spring boot (https://github.com/spring-projects/spring-boot/tree/1.5.x/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/oauth2/resource), probably. There's always more than one way to do things, but the code above is aware of the client details service which is not a client app concern.
How to create filter after OAuth2 success Authentication, i need to receive value from a token and to make validation on it! I'm using custom
UserAuthenticationConverter