How to check for user data on a oauth protected rest service from second application which has spring security? -


i have rest application secured oauth2 (a1) , 1 (a2) calls a1 login , in general data.

the problem login don't want call a2 user entity , register in a1 (which has spring security integrated => need register credential data including password it)

i think making rest call a2 (send userid , user role , password) not solution because not secure. can call a2 id , user data including password , role.

what approach here? how can user stuff register in spring security (integrated in a1)? , don't want a1 connect same db a2

i don't know if understood correctly, think want authenticate user a2 using same authentication use on a1.

you may use sso (single sign-on) authenticate in both a1 , a2. spring security oauth provides means that: https://spring.io/blog/2015/02/03/sso-with-oauth2-angular-js-and-spring-security-part-v


Comments

Popular posts from this blog

php - How to display all orders for a single product showing the most recent first? Woocommerce -

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -