AuthorizationServerContract Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AuthorizationServerContract() |
Initializes a new instance of the AuthorizationServerContract class. |
AuthorizationServerContract(String, String, String, IList<String>, String, String, String, String, String, IList<Nullable<AuthorizationMethod>>, IList<String>, IList<TokenBodyParameterContract>, String, Nullable<Boolean>, String, IList<String>, String, String, String) |
Initializes a new instance of the AuthorizationServerContract class. |
AuthorizationServerContract()
Initializes a new instance of the AuthorizationServerContract class.
public AuthorizationServerContract ();
Public Sub New ()
Applies to
AuthorizationServerContract(String, String, String, IList<String>, String, String, String, String, String, IList<Nullable<AuthorizationMethod>>, IList<String>, IList<TokenBodyParameterContract>, String, Nullable<Boolean>, String, IList<String>, String, String, String)
Initializes a new instance of the AuthorizationServerContract class.
public AuthorizationServerContract (string displayName, string clientRegistrationEndpoint, string authorizationEndpoint, System.Collections.Generic.IList<string> grantTypes, string clientId, 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 clientSecret = default);
new Microsoft.Azure.Management.ApiManagement.Models.AuthorizationServerContract : string * string * string * System.Collections.Generic.IList<string> * string * 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 -> Microsoft.Azure.Management.ApiManagement.Models.AuthorizationServerContract
Public Sub New (displayName As String, clientRegistrationEndpoint As String, authorizationEndpoint As String, grantTypes As IList(Of String), clientId As String, 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 clientSecret As String = Nothing)
Parameters
- displayName
- String
User-friendly authorization server name.
- clientRegistrationEndpoint
- String
Optional reference to a page where client or app registration for this authorization server is performed. Contains absolute URL to entity being referenced.
- authorizationEndpoint
- String
OAuth authorization endpoint. See http://tools.ietf.org/html/rfc6749#section-3.2.
Form of an authorization grant, which the client uses to request the access token.
- clientId
- String
Client or app id registered with this authorization server.
- id
- String
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
- name
- String
The name of the resource
- type
- String
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- description
- String
Description of the authorization server. Can contain HTML formatting tags.
- authorizationMethods
- IList<Nullable<AuthorizationMethod>>
HTTP verbs supported by the authorization endpoint. GET must be always present. POST is optional.
Method of authentication supported by the token endpoint of this authorization server. Possible values are Basic and/or Body. When Body is specified, client credentials and other parameters are passed within the request body in the application/x-www-form-urlencoded format.
- tokenBodyParameters
- IList<TokenBodyParameterContract>
Additional parameters required by the token endpoint of this authorization server represented as an array of JSON objects with name and value string properties, i.e. {"name" : "name value", "value": "a value"}.
- tokenEndpoint
- String
OAuth token endpoint. Contains absolute URI to entity being referenced.
If true, authorization server will include state parameter from the authorization request to its response. Client may use state parameter to raise protocol security.
- defaultScope
- String
Access token scope that is going to be requested by default. Can be overridden at the API level. Should be provided in the form of a string containing space-delimited values.
Specifies the mechanism by which access token is passed to the API.
- resourceOwnerUsername
- String
Can be optionally specified when resource owner password grant type is supported by this authorization server. Default resource owner username.
- resourceOwnerPassword
- String
Can be optionally specified when resource owner password grant type is supported by this authorization server. Default resource owner password.
- clientSecret
- String
Client or app secret registered with this authorization server. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value.
Applies to
Azure SDK for .NET