-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New Oauth token generating for a user each time we hit the token url #7
Comments
@nayankWebonise How are you producing the war file? |
@bobbywarner grails war |
@vjnathe-webonise @nayankWebonise Can you please try |
Hi @bobbywarner : we tried Following is the error we are getting on debugging on tomcat server :- ERROR 2015-12-04 13:08:42,863 org.springframework.security.oauth2.provider.token.store.JdbcTokenStore - Could not extract access token for authentication org.springframework.security.oauth2.provider.OAuth2Authentication@f9ea55ec: Principal: org.springframework.security.core.userdetails.User@5437f414: Username: [email protected]; Password: [PROTECTED]; Enabled: true; AccountNonExpired: true; credentialsNonExpired: true; AccountNonLocked: true; Granted Authorities: ROLE_ADMIN; Credentials: [PROTECTED]; Authenticated: true; Details: null; Granted Authorities: ROLE_ADMIN java.lang.IllegalArgumentException: java.io.StreamCorruptedException: invalid stream header: BB656430 |
Hi Bobby,
Excellent sample code!!!
we are facing one issue where in for a particular user we are getting separate token each time we hit the url.
On embedded tomcat it is working fine but when we create a separate WAR file and deploy it, it starts behaving this way.
On oauth2_access_token table there are multiple entries for the same user.
environment :- Ubuntu 14.04, Grails 3 , Postgres 9.4 and Tomcat 8.0.23
http://stackoverflow.com/questions/34072814/grails-3-oauth2-not-working-with-tomcat-8
is it related to Tomcat?
The text was updated successfully, but these errors were encountered: