Class AuthorizationService
java.lang.Object
com.predic8.membrane.core.interceptor.oauth2.authorizationservice.AuthorizationService
- Direct Known Subclasses:
GithubAuthorizationService,GoogleAuthorizationService,MembraneAuthorizationService
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected HttpClientConfigurationprotected org.slf4j.Loggerprotected Routerprotected Stringprotected boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapplyAuth(Request.Builder requestBuilder, String body) protected voidprotected voiddoDynamicRegistration(List<String> callbackURLs) voiddynamicRegistration(List<String> callbackURLs) abstract Stringabstract Stringabstract Stringabstract StringgetLoginURL(String securityToken, String callbackURL, String callbackPath) abstract StringgetScope()abstract Stringabstract Stringabstract StringbooleanidTokenIsValid(String idToken) abstract voidinit()voidbooleanrefreshTokenRequest(Session session, OAuth2AnswerParameters params, String wantedScope) resolve(ResolverMap rm, String baseLocation, String url) voidsetClientId(String clientId) protected voidsetClientIdAndSecret(String clientId, String clientSecret) voidsetClientSecret(String clientSecret) voidsetHttpClient(HttpClient httpClient) voidsetHttpClientConfiguration(HttpClientConfiguration httpClientConfiguration) voidvoidsetSslParser(SSLParser sslParser) voidsetUseJWTForClientAuth(boolean useJWTForClientAuth) boolean
-
Field Details
-
log
protected org.slf4j.Logger log -
router
-
httpClientConfiguration
-
scope
-
supportsDynamicRegistration
protected boolean supportsDynamicRegistration
-
-
Constructor Details
-
AuthorizationService
public AuthorizationService()
-
-
Method Details
-
supportsDynamicRegistration
public boolean supportsDynamicRegistration() -
init
- Throws:
Exception
-
init
- Throws:
Exception
-
getIssuer
-
getJwksEndpoint
- Throws:
Exception
-
getEndSessionEndpoint
- Throws:
Exception
-
getLoginURL
-
getUserInfoEndpoint
-
getSubject
-
getTokenEndpoint
-
getRevocationEndpoint
-
doDynamicRegistration
- Throws:
Exception
-
dynamicRegistration
- Throws:
Exception
-
checkForClientIdAndSecret
protected void checkForClientIdAndSecret() -
getHttpClientConfiguration
-
setHttpClientConfiguration
-
getClientId
-
setClientId
-
getClientSecret
-
setClientSecret
-
setClientIdAndSecret
-
getScope
-
setScope
-
getHttpClient
-
setHttpClient
-
doRequest
- Throws:
Exception
-
getSslParser
-
setSslParser
-
isUseJWTForClientAuth
public boolean isUseJWTForClientAuth() -
setUseJWTForClientAuth
public void setUseJWTForClientAuth(boolean useJWTForClientAuth) -
getJwtKeyCertHandler
-
applyAuth
-
refreshTokenRequest
public Response refreshTokenRequest(Session session, OAuth2AnswerParameters params, String wantedScope) throws Exception - Throws:
Exception
-
requestUserEndpoint
- Throws:
Exception
-
idTokenIsValid
-
resolve
- Throws:
Exception
-