Class IdentityProviderClient
Inherited Members
Namespace: System.Dynamic.ExpandoObject
Syntax
public class IdentityProviderClient : ClientBase
Constructors
IdentityProviderClient(Contract.IPictureparkServiceSettings, Http.HttpClient)
Declaration
public IdentityProviderClient(Contract.IPictureparkServiceSettings configuration, Http.HttpClient httpClient)
Parameters
Picturepark.SDK.V1.Contract.IPictureparkServiceSettings
configuration
|
System.Net.Http.HttpClient
httpClient
|
Properties
JsonSerializerSettings
Declaration
protected Newtonsoft.Json.JsonSerializerSettings JsonSerializerSettings { get; }
Property Value
Newtonsoft.Json.JsonSerializerSettings
|
ReadResponseAsString
Declaration
public bool ReadResponseAsString { get; set; }
Property Value
System.Boolean
|
Methods
GetAllAsync(CancellationToken)
Get all identity providers
Declaration
public virtual async Task<ICollection<IdentityProvider>> GetAllAsync(CancellationToken cancellationToken = default(CancellationToken))
Parameters
System.Threading.CancellationToken
cancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
System.Threading.Tasks.Task<System.Collections.Generic.ICollection<IdentityProvider>>
Array of identity providers |
Remarks
Gets all identity providers configured
GetAllBasicInfosAsync(CancellationToken)
Get basic info for all providers
Declaration
public virtual async Task<ICollection<IdentityProviderBasicInfo>> GetAllBasicInfosAsync(CancellationToken cancellationToken = default(CancellationToken))
Parameters
System.Threading.CancellationToken
cancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
System.Threading.Tasks.Task<System.Collections.Generic.ICollection<IdentityProviderBasicInfo>>
Array of identity provider basic information |
Remarks
Gets basic information for all identity providers configured
GetAsync(String, CancellationToken)
Get identity provider
Declaration
public virtual async Task<IdentityProvider> GetAsync(string id, CancellationToken cancellationToken = default(CancellationToken))
Parameters
System.String
id
Identity provider ID. |
System.Threading.CancellationToken
cancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
System.Threading.Tasks.Task<IdentityProvider>
Represents an identity provider defined in IdentityServer and its Picturepark configuration |
GetSynchronizableAttributesAsync(CancellationToken)
Get synchronizable attributes
Declaration
public virtual async Task<ICollection<string>> GetSynchronizableAttributesAsync(CancellationToken cancellationToken = default(CancellationToken))
Parameters
System.Threading.CancellationToken
cancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
System.Threading.Tasks.Task<System.Collections.Generic.ICollection<System.String>>
Names of user attributes |
Remarks
Returns names of user attributes that can be synchronized from identity provider claims and therefore can be used in ClaimMapping.
ReadObjectResponseAsync<T>(Http.HttpResponseMessage, IReadOnlyDictionary<String, IEnumerable<String>>, CancellationToken)
Declaration
protected virtual async Task<IdentityProviderClient.ObjectResponseResult<T>> ReadObjectResponseAsync<T>(Http.HttpResponseMessage response, IReadOnlyDictionary<string, IEnumerable<string>> headers, CancellationToken cancellationToken)
Parameters
System.Net.Http.HttpResponseMessage
response
|
System.Collections.Generic.IReadOnlyDictionary<System.String, System.Collections.Generic.IEnumerable<System.String>>
headers
|
System.Threading.CancellationToken
cancellationToken
|
Returns
System.Threading.Tasks.Task<IdentityProviderClient.ObjectResponseResult<T>>
|
Type Parameters
T
|
UpdateAsync(String, IdentityProviderEditable, CancellationToken)
Update identity provider
Declaration
public virtual async Task<IdentityProvider> UpdateAsync(string id, IdentityProviderEditable provider, CancellationToken cancellationToken = default(CancellationToken))
Parameters
System.String
id
Identity provider ID. |
IdentityProviderEditable
provider
Update request |
System.Threading.CancellationToken
cancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
System.Threading.Tasks.Task<IdentityProvider>
Represents an identity provider defined in IdentityServer and its Picturepark configuration |
Remarks
Identity provider has to be already created via UI