@groovy.util.logging.Slf4j @groovy.transform.CompileStatic class DefaultAccessTokenJsonRenderer extends java.lang.Object
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
Type | Name and description |
---|---|
java.lang.String |
authoritiesPropertyName |
java.lang.String |
tokenPropertyName |
java.lang.Boolean |
useBearerToken |
java.lang.String |
usernamePropertyName |
Type Params | Return 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() |