public class RoleBasedScopesIssuer extends AbstractScopesIssuer implements org.wso2.carbon.identity.oauth2.validators.scope.ScopeValidator
| Modifier and Type | Field and Description |
|---|---|
static String |
CHECK_ROLES_FROM_SAML_ASSERTION |
protected boolean |
rejectUnregisteredScopes |
static String |
RETRIEVE_ROLES_FROM_USERSTORE_FOR_SCOPE_VALIDATION |
| Constructor and Description |
|---|
RoleBasedScopesIssuer() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
addDomainToName(String username,
String domainName)
Add domain to name
|
protected void |
configureForJWTGrant(org.wso2.carbon.identity.oauth2.token.OAuthTokenReqMessageContext tokReqMsgCtx) |
String |
getName() |
String |
getPrefix()
This method is used to get the prefix of the scope issuer.
|
protected String[] |
getRolesFromAssertion(org.opensaml.saml.saml2.core.Assertion assertion)
Get roles from assertion
|
List<String> |
getScopes(org.wso2.carbon.identity.oauth2.authz.OAuthAuthzReqMessageContext oAuthAuthzReqMessageContext) |
List<String> |
getScopes(org.wso2.carbon.identity.oauth.callback.OAuthCallback scopeValidationCallback)
This method is used to retrieve authorized scopes with respect to an authorization callback.
|
List<String> |
getScopes(org.wso2.carbon.identity.oauth2.token.OAuthTokenReqMessageContext tokReqMsgCtx)
This method is used to retrieve the authorized scopes with respect to a token.
|
protected Set<org.wso2.carbon.identity.oauth2.bean.Scope> |
retrieveScopes(int tenantId) |
boolean |
validateScope(org.wso2.carbon.identity.oauth2.validators.OAuth2TokenValidationMessageContext oAuth2TokenValidationMessageContext) |
boolean |
validateScope(org.wso2.carbon.identity.oauth2.authz.OAuthAuthzReqMessageContext oAuthAuthzReqMessageContext) |
boolean |
validateScope(org.wso2.carbon.identity.oauth2.token.OAuthTokenReqMessageContext oAuthTokenReqMessageContext) |
getAllowedScopes, getAppScopes, getCacheManager, getRealmService, getTenantIdOfUser, isAppScopesEmpty, isWhiteListedScopepublic static final String CHECK_ROLES_FROM_SAML_ASSERTION
public static final String RETRIEVE_ROLES_FROM_USERSTORE_FOR_SCOPE_VALIDATION
protected boolean rejectUnregisteredScopes
public boolean validateScope(org.wso2.carbon.identity.oauth2.authz.OAuthAuthzReqMessageContext oAuthAuthzReqMessageContext)
throws org.wso2.carbon.identity.oauth2.IdentityOAuth2Exception
validateScope in interface org.wso2.carbon.identity.oauth2.validators.scope.ScopeValidatororg.wso2.carbon.identity.oauth2.IdentityOAuth2Exceptionpublic boolean validateScope(org.wso2.carbon.identity.oauth2.token.OAuthTokenReqMessageContext oAuthTokenReqMessageContext)
throws org.wso2.carbon.identity.oauth2.IdentityOAuth2Exception
validateScope in interface org.wso2.carbon.identity.oauth2.validators.scope.ScopeValidatororg.wso2.carbon.identity.oauth2.IdentityOAuth2Exceptionpublic boolean validateScope(org.wso2.carbon.identity.oauth2.validators.OAuth2TokenValidationMessageContext oAuth2TokenValidationMessageContext)
throws org.wso2.carbon.identity.oauth2.IdentityOAuth2Exception
validateScope in interface org.wso2.carbon.identity.oauth2.validators.scope.ScopeValidatororg.wso2.carbon.identity.oauth2.IdentityOAuth2Exceptionprotected Set<org.wso2.carbon.identity.oauth2.bean.Scope> retrieveScopes(int tenantId) throws org.wso2.carbon.identity.oauth2.IdentityOAuth2ScopeServerException
org.wso2.carbon.identity.oauth2.IdentityOAuth2ScopeServerExceptionpublic String getName()
getName in interface org.wso2.carbon.identity.oauth2.validators.scope.ScopeValidatorpublic String getPrefix()
AbstractScopesIssuergetPrefix in class AbstractScopesIssuerpublic List<String> getScopes(org.wso2.carbon.identity.oauth2.authz.OAuthAuthzReqMessageContext oAuthAuthzReqMessageContext)
public List<String> getScopes(org.wso2.carbon.identity.oauth.callback.OAuthCallback scopeValidationCallback)
getScopes in class AbstractScopesIssuerscopeValidationCallback - Authorization callback to validate scopespublic List<String> getScopes(org.wso2.carbon.identity.oauth2.token.OAuthTokenReqMessageContext tokReqMsgCtx)
getScopes in class AbstractScopesIssuertokReqMsgCtx - token message contextprotected String addDomainToName(String username, String domainName)
username - UsernamedomainName - domain nameprotected String[] getRolesFromAssertion(org.opensaml.saml.saml2.core.Assertion assertion)
assertion - Assertionprotected void configureForJWTGrant(org.wso2.carbon.identity.oauth2.token.OAuthTokenReqMessageContext tokReqMsgCtx)
Copyright © 2024 WSO2. All rights reserved.