你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Get-AzApiManagementIdentityProvider
获取标识提供者配置详细信息。
语法
Get-AzApiManagementIdentityProvider
-Context <PsApiManagementContext>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzApiManagementIdentityProvider
-Context <PsApiManagementContext>
-Type <PsApiManagementIdentityProviderType>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
说明
获取标识提供者配置详细信息。 不会将 ClientSecret 包含在结果详细信息中。 若要获取客户端机密,请使用 Get-AzApiManagementIdentityProviderClientSecret。
示例
示例 1:获取所有标识提供者
$apimContext = New-AzApiManagementContext -ResourceGroupName "Api-Default-WestUS" -ServiceName "contoso"
Get-AzApiManagementIdentityProvider -Context $apimContext
获取服务上的所有标识提供者配置。
示例 2:获取 AAD 类型标识提供者
$apimContext = New-AzApiManagementContext -ResourceGroupName "Api-Default-WestUS" -ServiceName "contoso"
Get-AzApiManagementIdentityProvider -Context $apimContext -Type Aad
Type : Aad
ClientId : aaa
ClientSecret : xxxxx
AllowedTenants : {contosotest.onmicrosoft.com}
Authority : login.microsoftonline.com
SignupPolicyName :
SigninPolicyName :
ProfileEditingPolicyName :
PasswordResetPolicyName :
SigninTenant :
Id : /subscriptions/a200340d-6b82-494d-9dbf-687ba6e33f9e/resourceGroups/Api-Default-West-US/providers/Microsoft.ApiManagement/service/contoso/identityProviders/Aad
ResourceGroupName : Api-Default-West-US
ServiceName : contoso
获取 Azure Active Directory 的标识提供者配置。
示例 3:获取 AAD B2C 类型标识提供者
$context = New-AzApiManagementContext -ResourceGroupName "Api-Default-WestUS" -ServiceName "contoso"
Get-AzApiManagementIdentityProvider -Context $context -Type AadB2C
Type : AadB2C
ClientId : f02dafe2-b8b8-48ec-a38e-27e5c16c51e5
ClientSecret : xxxxxx
AllowedTenants : {contosoaadb2c.onmicrosoft.com}
Authority : login.microsoftonline.com
SignupPolicyName : B2C_1_policy-signup
SigninPolicyName : B2C_1_policy-signin
ProfileEditingPolicyName :
PasswordResetPolicyName :
SigninTenant : contosoaadb2c.onmicrosoft.com
Id : /subscriptions/a200340d-6b82-494d-9dbf-687ba6e33f9e/resourceGroups/Api-Default-West-US/providers/Microsoft.ApiManagement/service/contoso/identityProviders/AadB2C
ResourceGroupName : Api-Default-West-US
ServiceName : contoso
获取 Azure Active Directory 的标识提供者配置。
参数
-Context
PsApiManagementContext 的实例。 此参数是必需的。
Type: | PsApiManagementContext |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-DefaultProfile
用于与 Azure 通信的凭据、帐户、租户和订阅。
Type: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Type
标识提供者的标识符。 如果指定,将尝试按标识符查找标识提供者配置。 此参数是可选的。
Type: | PsApiManagementIdentityProviderType |
Accepted values: | Facebook, Google, Microsoft, Twitter, Aad, AadB2C |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
输入
PsApiManagementIdentityProviderType
输出
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈