@groovy.util.logging.Slf4j class DefaultAccessTokenJsonRenderer
Generates a JSON response like the following: {"username":"john.doe","roles":["USER","ADMIN"],"access_token":"1a2b3c4d"}
.
If the principal is an instance of OauthUser, also "email" (org.pac4j.core.profile.CommonProfile#getEmail()) and
"displayName" (org.pac4j.core.profile.CommonProfile#getDisplayName()) will be rendered
Constructor and description |
---|
DefaultAccessTokenJsonRenderer
() |
Type | Name and description |
---|---|
java.lang.String |
generateJson(AccessToken accessToken) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Groovy Documentation