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

AuthorizationServerUpdateContract 构造函数

定义

重载

AuthorizationServerUpdateContract()

初始化 AuthorizationServerUpdateContract 类的新实例。

AuthorizationServerUpdateContract(String, String, String, String, IList<Nullable<AuthorizationMethod>>, IList<String>, IList<TokenBodyParameterContract>, String, Nullable<Boolean>, String, IList<String>, String, String, String, String, String, IList<String>, String, String)

初始化 AuthorizationServerUpdateContract 类的新实例。

AuthorizationServerUpdateContract()

初始化 AuthorizationServerUpdateContract 类的新实例。

public AuthorizationServerUpdateContract ();
Public Sub New ()

适用于

AuthorizationServerUpdateContract(String, String, String, String, IList<Nullable<AuthorizationMethod>>, IList<String>, IList<TokenBodyParameterContract>, String, Nullable<Boolean>, String, IList<String>, String, String, String, String, String, IList<String>, String, String)

初始化 AuthorizationServerUpdateContract 类的新实例。

public AuthorizationServerUpdateContract (string id = default, string name = default, string type = default, string description = default, System.Collections.Generic.IList<Microsoft.Azure.Management.ApiManagement.Models.AuthorizationMethod?> authorizationMethods = default, System.Collections.Generic.IList<string> clientAuthenticationMethod = default, System.Collections.Generic.IList<Microsoft.Azure.Management.ApiManagement.Models.TokenBodyParameterContract> tokenBodyParameters = default, string tokenEndpoint = default, bool? supportState = default, string defaultScope = default, System.Collections.Generic.IList<string> bearerTokenSendingMethods = default, string resourceOwnerUsername = default, string resourceOwnerPassword = default, string displayName = default, string clientRegistrationEndpoint = default, string authorizationEndpoint = default, System.Collections.Generic.IList<string> grantTypes = default, string clientId = default, string clientSecret = default);
new Microsoft.Azure.Management.ApiManagement.Models.AuthorizationServerUpdateContract : string * string * string * string * System.Collections.Generic.IList<Nullable<Microsoft.Azure.Management.ApiManagement.Models.AuthorizationMethod>> * System.Collections.Generic.IList<string> * System.Collections.Generic.IList<Microsoft.Azure.Management.ApiManagement.Models.TokenBodyParameterContract> * string * Nullable<bool> * string * System.Collections.Generic.IList<string> * string * string * string * string * string * System.Collections.Generic.IList<string> * string * string -> Microsoft.Azure.Management.ApiManagement.Models.AuthorizationServerUpdateContract
Public Sub New (Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, Optional description As String = Nothing, Optional authorizationMethods As IList(Of Nullable(Of AuthorizationMethod)) = Nothing, Optional clientAuthenticationMethod As IList(Of String) = Nothing, Optional tokenBodyParameters As IList(Of TokenBodyParameterContract) = Nothing, Optional tokenEndpoint As String = Nothing, Optional supportState As Nullable(Of Boolean) = Nothing, Optional defaultScope As String = Nothing, Optional bearerTokenSendingMethods As IList(Of String) = Nothing, Optional resourceOwnerUsername As String = Nothing, Optional resourceOwnerPassword As String = Nothing, Optional displayName As String = Nothing, Optional clientRegistrationEndpoint As String = Nothing, Optional authorizationEndpoint As String = Nothing, Optional grantTypes As IList(Of String) = Nothing, Optional clientId As String = Nothing, Optional clientSecret As String = Nothing)

参数

id
String

资源的完全限定的资源 ID。 例如 - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

name
String

资源的名称

type
String

资源类型。 例如“Microsoft.Compute/virtualMachines”或“Microsoft.Storage/storageAccounts”

description
String

授权服务器的说明。 可以包含采用 HTML 格式的标记。

authorizationMethods
IList<Nullable<AuthorizationMethod>>

授权终结点支持的 HTTP 谓词。 GET 必须始终存在。 POST 是可选的。

clientAuthenticationMethod
IList<String>

此授权服务器的令牌终结点支持的身份验证方法。 可能的值为 Basic 和/或 Body。 指定 Body 时,客户端凭据和其他参数以 application/x-www-form-urlencoded 格式在请求正文中传递。

tokenBodyParameters
IList<TokenBodyParameterContract>

此授权服务器的令牌终结点所需的其他参数,表示为具有名称和值字符串属性的 JSON 对象的数组,即 {“name” : “name value”, “value”: “a value”}。

tokenEndpoint
String

OAuth 令牌终结点。 包含所引用实体的绝对 URI。

supportState
Nullable<Boolean>

如果为 true,授权服务器将包含授权请求中对其响应的状态参数。 客户端可以使用状态参数来引发协议安全性。

defaultScope
String

将按默认请求的访问令牌作用域。 可以在 API 级别重写。 应以包含空格分隔值的字符串形式提供。

bearerTokenSendingMethods
IList<String>

指定用于向 API 传递访问令牌的机制。

resourceOwnerUsername
String

当此授权服务器支持资源所有者密码授权类型时,可以根据需要指定。 默认的资源所有者用户名。

resourceOwnerPassword
String

当此授权服务器支持资源所有者密码授权类型时,可以根据需要指定。 默认的资源所有者密码。

displayName
String

用户友好的授权服务器名称。

clientRegistrationEndpoint
String

对执行此授权服务器的客户端或应用程序注册时所在页的可选引用。 包含所引用实体的绝对 URL。

authorizationEndpoint
String

OAuth 授权终结点。 请参阅 http://tools.ietf.org/html/rfc6749#section-3.2

grantTypes
IList<String>

授权的形式,客户端使用该授权请求访问令牌。

clientId
String

已注册到此授权服务器的客户端或应用程序 ID。

clientSecret
String

已注册到此授权服务器的客户端或应用程序机密。 此属性不会在“GET”操作上填充! 使用“/listSecrets”POST 请求获取值。

适用于