Package com.adobe.granite.auth.oauth
Interface ProviderConfig
-
public interface ProviderConfig
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getCallBackUrl()
java.lang.String
getClientId()
java.lang.String
getClientSecret()
java.lang.String
getConfigId()
OAuthConfig
getOAuthConfig(java.lang.String callbackUrl)
OAuthService
getOAuthService(Provider provider, java.lang.String callbackUrl)
java.lang.String
getPid()
java.lang.String
getProviderId()
java.lang.String
getScope()
-
-
-
Method Detail
-
getConfigId
java.lang.String getConfigId()
- Returns:
- the configuration Id
-
getPid
java.lang.String getPid()
- Returns:
- the Pid of the configuration
-
getProviderId
java.lang.String getProviderId()
- Returns:
- the configured Provider Id
-
getClientId
java.lang.String getClientId()
- Returns:
- the configured OAuth client Id
-
getClientSecret
java.lang.String getClientSecret()
- Returns:
- the configured OAuth client secret
-
getCallBackUrl
java.lang.String getCallBackUrl()
- Returns:
- the configured callback url
-
getScope
java.lang.String getScope()
- Returns:
- configured scope
-
getOAuthConfig
OAuthConfig getOAuthConfig(java.lang.String callbackUrl)
- Parameters:
callbackUrl
-- Returns:
- the
OAuthConfig
given the the custom callback url
-
getOAuthService
OAuthService getOAuthService(Provider provider, java.lang.String callbackUrl)
- Parameters:
provider
-callbackUrl
-- Returns:
- the
OAuthService
given theProvider
and the custom callback url
-
-