Interface WebAppAuthentication.DefinitionStages.WithAuthenticationProvider<ParentT>
- Type Parameters:
ParentT
- the stage of the parent definition to return to after attaching this definition
- All Known Subinterfaces:
WebAppAuthentication.Definition<ParentT>
,WebAppAuthentication.DefinitionStages.WithAttach<ParentT>
- Enclosing interface:
- WebAppAuthentication.DefinitionStages
public static interface WebAppAuthentication.DefinitionStages.WithAuthenticationProvider<ParentT>
A web app authentication definition allowing detailed provider information to be specified.
-
Method Summary
Modifier and TypeMethodDescriptionwithActiveDirectory
(String clientId, String issuerUrl) Specifies the provider to be Active Directory and its client ID and issuer URL.withFacebook
(String appId, String appSecret) Specifies the provider to be Facebook and its app ID and app secret.withGoogle
(String clientId, String clientSecret) Specifies the provider to be Google and its client ID and client secret.withMicrosoft
(String clientId, String clientSecret) Specifies the provider to be Microsoft and its client ID and client secret.withTwitter
(String apiKey, String apiSecret) Specifies the provider to be Twitter and its API key and API secret.
-
Method Details
-
withActiveDirectory
WebAppAuthentication.DefinitionStages.WithAttach<ParentT> withActiveDirectory(String clientId, String issuerUrl) Specifies the provider to be Active Directory and its client ID and issuer URL.- Parameters:
clientId
- the AAD app's client IDissuerUrl
- the token issuer URL in the format of https://sts.windows.net/(tenantId)- Returns:
- the next stage of the definition
-
withFacebook
WebAppAuthentication.DefinitionStages.WithAttach<ParentT> withFacebook(String appId, String appSecret) Specifies the provider to be Facebook and its app ID and app secret.- Parameters:
appId
- the Facebook app IDappSecret
- the Facebook app secret- Returns:
- the next stage of the definition
-
withGoogle
WebAppAuthentication.DefinitionStages.WithAttach<ParentT> withGoogle(String clientId, String clientSecret) Specifies the provider to be Google and its client ID and client secret.- Parameters:
clientId
- the Google app's client IDclientSecret
- the Google app's client secret- Returns:
- the next stage of the definition
-
withTwitter
WebAppAuthentication.DefinitionStages.WithAttach<ParentT> withTwitter(String apiKey, String apiSecret) Specifies the provider to be Twitter and its API key and API secret.- Parameters:
apiKey
- the Twitter app's API keyapiSecret
- the Twitter app's API secret- Returns:
- the next stage of the definition
-
withMicrosoft
WebAppAuthentication.DefinitionStages.WithAttach<ParentT> withMicrosoft(String clientId, String clientSecret) Specifies the provider to be Microsoft and its client ID and client secret.- Parameters:
clientId
- the Microsoft app's client IDclientSecret
- the Microsoft app's client secret- Returns:
- the next stage of the definition
-