0

Hello I have a rest web service which implement oauth2.0 . Now I have my web application with a login which currently using spring security. I want to use the same login to authenticate with the rest web service using oauth2. My question is: Does this tutorial is suitable for me? https://raymondhlee.wordpress.com/2014/12/21/implementing-oauth2-with-spring-security/

I just want to authenticate my login with the rest webservice. My web application is using hibernate/spring. Please advise. Thanks

Alina
  • 369
  • 3
  • 8
  • 18

1 Answers1

0

The web server client part of the tutorial is useful for you. You are not implementing oauth2 provider. The tutorial uses spring-security-oauth framework.Check developer guide.

Adisesha
  • 5,200
  • 1
  • 32
  • 43
  • Basically from what I have understand,My web application is an oauth consumer ? – Alina Oct 28 '15 at 07:03
  • One more thing, How will I know my which grant type my oauth2 provider is using? – Alina Oct 28 '15 at 07:04
  • Yes, your application is consumer. Check your provider but it is safe to assume that it will be 'authorization_code'. – Adisesha Oct 28 '15 at 07:10
  • I can see this in the rest web service configuration file: authorized-grant-types="password,refresh_token" That means the grant type is password ,same thing as credential password. What about the refresh token? – Alina Oct 28 '15 at 07:17
  • http://stackoverflow.com/questions/19655911/request-new-access-token-using-refresh-token-in-username-password-grant-in-sprin – Adisesha Oct 28 '15 at 07:49