Class OAuth2AuthorizationServerInterceptor
java.lang.Object
com.predic8.membrane.core.interceptor.AbstractInterceptor
com.predic8.membrane.core.interceptor.oauth2.OAuth2AuthorizationServerInterceptor
- All Implemented Interfaces:
Interceptor
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classNested classes/interfaces inherited from interface com.predic8.membrane.core.interceptor.Interceptor
Interceptor.Flow -
Field Summary
Fields inherited from class com.predic8.membrane.core.interceptor.AbstractInterceptor
name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgetPath()handleRequest(Exchange exc) handleResponse(Exchange exc) voidbooleanbooleanbooleanbooleanvoidsetAccountBlocker(AccountBlocker accountBlocker) voidsetClaimList(ClaimList claimList) voidsetClientList(ClientList clientList) voidsetConsentFile(String consentFile) voidsetConsentPageFile(ConsentPageFile consentPageFile) voidsetExposeUserCredentialsToSession(boolean exposeUserCredentialsToSession) voidsetIssueNonSpecIdTokens(boolean issueNonSpecIdTokens) voidsetIssueNonSpecRefreshTokens(boolean issueNonSpecRefreshTokens) voidvoidsetLocation(String location) voidsetLoginViewDisabled(boolean loginViewDisabled) voidsetMessage(String message) voidvoidsetProcessors(OAuth2Processors processors) voidsetRefreshTokenConfig(OAuth2AuthorizationServerInterceptor.RefreshTokenConfig refreshTokenConfig) voidsetRefreshTokenGenerator(TokenGenerator refreshTokenGenerator) voidvoidsetSessionFinder(SessionFinder sessionFinder) voidsetSessionManager(SessionManager sessionManager) voidsetStatistics(OAuth2Statistics statistics) voidsetSupportedAuthorizationGrants(HashSet<String> supportedAuthorizationGrants) voidsetTokenGenerator(TokenGenerator tokenGenerator) voidsetUserDataProvider(UserDataProvider userDataProvider) voidsetWellknownFile(WellknownFile wellknownFile) Methods inherited from class com.predic8.membrane.core.interceptor.AbstractInterceptor
getDisplayName, getFlow, getHelpId, getLongDescription, getMessage, getRule, handleAbort, init, setDisplayName, setFlow
-
Constructor Details
-
OAuth2AuthorizationServerInterceptor
public OAuth2AuthorizationServerInterceptor()
-
-
Method Details
-
init
- Specified by:
initin interfaceInterceptor- Overrides:
initin classAbstractInterceptor- Throws:
Exception
-
handleRequest
- Specified by:
handleRequestin interfaceInterceptor- Overrides:
handleRequestin classAbstractInterceptor- Throws:
Exception
-
handleResponse
- Specified by:
handleResponsein interfaceInterceptor- Overrides:
handleResponsein classAbstractInterceptor- Throws:
Exception
-
getUserDataProvider
-
setUserDataProvider
-
getSessionManager
-
setSessionManager
-
getLocation
-
setLocation
- Description
- Base path under which the login dialog will be served.
- Example
- logindialog
-
getPath
-
setPath
-
getMessage
-
setMessage
-
getAccountBlocker
-
setAccountBlocker
-
isExposeUserCredentialsToSession
public boolean isExposeUserCredentialsToSession() -
setExposeUserCredentialsToSession
public void setExposeUserCredentialsToSession(boolean exposeUserCredentialsToSession) -
getClientList
-
setClientList
-
getTokenGenerator
-
setTokenGenerator
-
getRouter
- Specified by:
getRouterin interfaceInterceptor- Overrides:
getRouterin classAbstractInterceptor
-
setRouter
-
getSupportedAuthorizationGrants
-
setSupportedAuthorizationGrants
-
getProcessors
-
setProcessors
-
getSessionFinder
-
setSessionFinder
-
getJwtGenerator
-
getIssuer
-
setIssuer
-
getClaimList
-
setClaimList
-
getWellknownFile
-
setWellknownFile
-
getConsentFile
-
setConsentFile
-
getConsentPageFile
-
setConsentPageFile
-
getShortDescription
- Specified by:
getShortDescriptionin interfaceInterceptor- Overrides:
getShortDescriptionin classAbstractInterceptor
-
addSupportedAuthorizationGrants
public void addSupportedAuthorizationGrants() -
getStatistics
-
setStatistics
-
getRefreshTokenGenerator
-
setRefreshTokenGenerator
-
isLoginViewDisabled
public boolean isLoginViewDisabled() -
setLoginViewDisabled
public void setLoginViewDisabled(boolean loginViewDisabled) -
isIssueNonSpecIdTokens
public boolean isIssueNonSpecIdTokens() -
setIssueNonSpecIdTokens
public void setIssueNonSpecIdTokens(boolean issueNonSpecIdTokens) - Default
- false
- Description
- Issue id-tokens also in credentials-flow and password-flow . The OIDC specification, which brings in id-tokens, does not handle those flows, which is why the default value is false.
-
isIssueNonSpecRefreshTokens
public boolean isIssueNonSpecRefreshTokens() -
setIssueNonSpecRefreshTokens
public void setIssueNonSpecRefreshTokens(boolean issueNonSpecRefreshTokens) - Default
- false
- Description
- Issue refresh-tokens also in credentials-flow. The OAuth2 specification does not issue refresh tokens in the credentials-flow, which is why the default value is false.
-
getRefreshTokenConfig
-
setRefreshTokenConfig
public void setRefreshTokenConfig(OAuth2AuthorizationServerInterceptor.RefreshTokenConfig refreshTokenConfig) -
computeBasePath
-
getBasePath
-