public class AuthorizationDetails extends Object implements Serializable
AuthorizationRequestSource
is needed as OAuth scopes are also parsed into AuthorizationDetails
to standardize the way authorization data is managed in Keycloak. Scopes parsed as AuthorizationDetails will need
to be treated as normal OAuth scopes in places like TokenMappers and included in the "scopes" JWT claim as such.Constructor and Description |
---|
AuthorizationDetails(ClientScopeModel clientScope) |
AuthorizationDetails(ClientScopeModel clientScope,
AuthorizationRequestSource source,
AuthorizationDetailsJSONRepresentation authorizationDetails) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
AuthorizationDetailsJSONRepresentation |
getAuthorizationDetails() |
ClientScopeModel |
getClientScope() |
String |
getDynamicScopeParam()
Returns the Dynamic Scope parameter from the underlying
AuthorizationDetailsJSONRepresentation representation |
AuthorizationRequestSource |
getSource() |
int |
hashCode() |
boolean |
isDynamicScope()
Returns whether the current
AuthorizationDetails object is a dynamic scope |
void |
setAuthorizationDetails(AuthorizationDetailsJSONRepresentation authorizationDetails) |
void |
setClientScope(ClientScopeModel clientScope) |
void |
setSource(AuthorizationRequestSource source) |
String |
toString() |
public AuthorizationDetails(ClientScopeModel clientScope, AuthorizationRequestSource source, AuthorizationDetailsJSONRepresentation authorizationDetails)
public AuthorizationDetails(ClientScopeModel clientScope)
public ClientScopeModel getClientScope()
public void setClientScope(ClientScopeModel clientScope)
public AuthorizationRequestSource getSource()
public void setSource(AuthorizationRequestSource source)
public AuthorizationDetailsJSONRepresentation getAuthorizationDetails()
public void setAuthorizationDetails(AuthorizationDetailsJSONRepresentation authorizationDetails)
public boolean isDynamicScope()
AuthorizationDetails
object is a dynamic scopepublic String getDynamicScopeParam()
AuthorizationDetailsJSONRepresentation
representationCopyright © 2025 JBoss by Red Hat. All rights reserved.