Hello.
I am using version 1.5.1 of the plugin. I can login using a local account (GORM) and use the rest token successfully in my client application.
Trying to use google as oauth provider problem:
When I login via google, I get forwarded to my configured "frontendCallbackUrl", my frontend receives and sends (in subsequent rest call) the correct rest token. Rest token is in database. There is no user in the database that matches the profile.id, "111665385303429083134"
Here are logs for a rest call:
2015-06-27 10:06:14,775 [http-bio-8180-exec-9] DEBUG bearer.BearerTokenReader - Looking for bearer token in Authorization header, query string or Form-Encoded body parameter
2015-06-27 10:06:14,775 [http-bio-8180-exec-9] DEBUG bearer.BearerTokenReader - Found bearer token in Authorization header
2015-06-27 10:06:14,776 [http-bio-8180-exec-9] DEBUG rest.RestTokenValidationFilter - Token found: 6mmhjmqr1oprsqdtuso883gg01ikcd3g
2015-06-27 10:06:14,777 [http-bio-8180-exec-9] DEBUG rest.RestTokenValidationFilter - Trying to authenticate the token
2015-06-27 10:06:14,776 [http-bio-8180-exec-8] DEBUG rest.RestTokenValidationFilter - Token found: 6mmhjmqr1oprsqdtuso883gg01ikcd3g
2015-06-27 10:06:14,777 [http-bio-8180-exec-8] DEBUG rest.RestTokenValidationFilter - Trying to authenticate the token
2015-06-27 10:06:14,792 [http-bio-8180-exec-9] DEBUG rest.RestAuthenticationProvider - Trying to validate token 6mmhjmqr1oprsqdtuso883gg01ikcd3g
2015-06-27 10:06:14,792 [http-bio-8180-exec-8] DEBUG rest.RestAuthenticationProvider - Trying to validate token 6mmhjmqr1oprsqdtuso883gg01ikcd3g
2015-06-27 10:06:14,836 [http-bio-8180-exec-9] WARN userdetails.GormUserDetailsService - User not found: 111665385303429083134
2015-06-27 10:06:14,836 [http-bio-8180-exec-8] WARN userdetails.GormUserDetailsService - User not found: 111665385303429083134
2015-06-27 10:06:14,839 [http-bio-8180-exec-8] DEBUG rest.RestTokenValidationFilter - Authentication failed: User not found
2015-06-27 10:06:14,839 [http-bio-8180-exec-9] DEBUG rest.RestTokenValidationFilter - Authentication failed: User not found
It looks like it is failing because the userdetails.GormUserDetailsService needs to have a user, which hasn't been created. Should the plugin be creating a user?
Thanks for any help on this. I check the sample apps out put did not see any solution to this.
Phillip