你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

WebAppAuthentication.UpdateStages.WithAuthenticationProvider<ParentT> Interface

Type Parameters

ParentT

the return type of the final parent()

public interface WithAuthenticationProvider

A web app authentication update allowing detailed provider information to be specified.

Method Summary

Modifier and Type Method and Description
WebAppAuthentication.Update<ParentT> withActiveDirectory(String clientId, String issuerUrl)

Specifies the provider to be Active Directory and its client ID and issuer URL.

WebAppAuthentication.Update<ParentT> withFacebook(String appId, String appSecret)

Specifies the provider to be Facebook and its app ID and app secret.

WebAppAuthentication.Update<ParentT> withGoogle(String clientId, String clientSecret)

Specifies the provider to be Google and its client ID and client secret.

WebAppAuthentication.Update<ParentT> withMicrosoft(String clientId, String clientSecret)

Specifies the provider to be Microsoft and its client ID and client secret.

WebAppAuthentication.Update<ParentT> withTwitter(String apiKey, String apiSecret)

Specifies the provider to be Twitter and its API key and API secret.

Method Details

withActiveDirectory

public Update 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 ID
issuerUrl - the token issuer URL in the format of https://sts.windows.net/(tenantId)

Returns:

the next stage of the web app authentication update

withFacebook

public Update withFacebook(String appId, String appSecret)

Specifies the provider to be Facebook and its app ID and app secret.

Parameters:

appId - the Facebook app ID
appSecret - the Facebook app secret

Returns:

the next stage of the web app authentication update

withGoogle

public Update 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 ID
clientSecret - the Google app's client secret

Returns:

the next stage of the web app authentication update

withMicrosoft

public Update 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 ID
clientSecret - the Microsoft app's client secret

Returns:

the next stage of the web app authentication update

withTwitter

public Update 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 key
apiSecret - the Twitter app's API secret

Returns:

the next stage of the web app authentication update

Applies to