你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
WebAppAuthentication.DefinitionStages.WithAuthenticationProvider<ParentT> Interface
Type Parameters
- ParentT
the stage of the parent definition to return to after attaching this definition
public interface WithAuthenticationProvider
A web app authentication definition allowing detailed provider information to be specified.
Method Summary
Modifier and Type | Method and Description |
---|---|
Web |
withActiveDirectory(String clientId, String issuerUrl)
Specifies the provider to be Active Directory and its client ID and issuer URL. |
Web |
withFacebook(String appId, String appSecret)
Specifies the provider to be Facebook and its app ID and app secret. |
Web |
withGoogle(String clientId, String clientSecret)
Specifies the provider to be Google and its client ID and client secret. |
Web |
withMicrosoft(String clientId, String clientSecret)
Specifies the provider to be Microsoft and its client ID and client secret. |
Web |
withTwitter(String apiKey, String apiSecret)
Specifies the provider to be Twitter and its API key and API secret. |
Method Details
withActiveDirectory
public WithAttach
Specifies the provider to be Active Directory and its client ID and issuer URL.
Parameters:
Returns:
withFacebook
public WithAttach
Specifies the provider to be Facebook and its app ID and app secret.
Parameters:
Returns:
withGoogle
public WithAttach
Specifies the provider to be Google and its client ID and client secret.
Parameters:
Returns:
withMicrosoft
public WithAttach
Specifies the provider to be Microsoft and its client ID and client secret.
Parameters:
Returns:
withTwitter
public WithAttach
Specifies the provider to be Twitter and its API key and API secret.
Parameters:
Returns:
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈