jeudi 28 juillet 2016

Spring Security OAuth 2 minimal password flow

I trying to add OAuth 2 support to existing REST Spring MVC + Spring Security project, using spring-oauth-library. Without formLogin and sessions (now i using basic and custom token authentication). I just need, that user can pass his username/password from browser client to REST-server by POST request, and recieve access_token. And then can access to any resource (in the same project), by authorities, corresponding to his role, that described in Spring SecurityConfig (WebSecurityConfigurerAdapter impl). Can i do this, with minimal extra-code?

Aucun commentaire:

Enregistrer un commentaire