You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def user = tokenStorageService.loadUserByToken(refreshToken)
User principal = user ? user as User : null
the cast throws
org.codehaus.groovy.runtime.typehandling.GroovyCastException : Cannot cast object
with class 'org.springframework.security.ldap.userdetails.Person'
to class 'org.springframework.security.core.userdetails.User'
Thank you.
The text was updated successfully, but these errors were encountered:
Here's a quick hack that might fix it.
Now to figure out how to get this fix installed so I can test and update for my users.
User principal
if (user && user.username && user.authorities) {
principal = new User(user.username, '', user.authorities)
} else {
principal = user ? user as User : null
}
I am getting 403 when I try to refresh a token when I am using LDAP.
using:
compile 'org.grails.plugins:spring-security-core:3.1.2'
compile 'org.grails.plugins:spring-security-rest:2.0.0.M2'
compile 'org.grails.plugins:spring-security-ldap:3.0.2'
grails.plugin.springsecurity.rest.RestOauthController.line.127
the cast throws
org.codehaus.groovy.runtime.typehandling.GroovyCastException : Cannot cast object
with class 'org.springframework.security.ldap.userdetails.Person'
to class 'org.springframework.security.core.userdetails.User'
Thank you.
The text was updated successfully, but these errors were encountered: