Condividi tramite


CommunicationIdentityClient.CreateUserAndToken Method

Definition

Overloads

CreateUserAndToken(IEnumerable<CommunicationTokenScope>, CancellationToken)

Creates a new CommunicationUserIdentifier.

CreateUserAndToken(IEnumerable<CommunicationTokenScope>, TimeSpan, CancellationToken)

Creates a new CommunicationUserIdentifier.

CreateUserAndToken(IEnumerable<CommunicationTokenScope>, CancellationToken)

Source:
CommunicationIdentityClient.cs
public virtual Azure.Response<Azure.Communication.Identity.CommunicationUserIdentifierAndToken> CreateUserAndToken (System.Collections.Generic.IEnumerable<Azure.Communication.Identity.CommunicationTokenScope> scopes, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateUserAndToken : seq<Azure.Communication.Identity.CommunicationTokenScope> * System.Threading.CancellationToken -> Azure.Response<Azure.Communication.Identity.CommunicationUserIdentifierAndToken>
override this.CreateUserAndToken : seq<Azure.Communication.Identity.CommunicationTokenScope> * System.Threading.CancellationToken -> Azure.Response<Azure.Communication.Identity.CommunicationUserIdentifierAndToken>
Public Overridable Function CreateUserAndToken (scopes As IEnumerable(Of CommunicationTokenScope), Optional cancellationToken As CancellationToken = Nothing) As Response(Of CommunicationUserIdentifierAndToken)

Parameters

scopes
IEnumerable<CommunicationTokenScope>

The scopes that the token should have.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Applies to

CreateUserAndToken(IEnumerable<CommunicationTokenScope>, TimeSpan, CancellationToken)

Source:
CommunicationIdentityClient.cs
public virtual Azure.Response<Azure.Communication.Identity.CommunicationUserIdentifierAndToken> CreateUserAndToken (System.Collections.Generic.IEnumerable<Azure.Communication.Identity.CommunicationTokenScope> scopes, TimeSpan tokenExpiresIn, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateUserAndToken : seq<Azure.Communication.Identity.CommunicationTokenScope> * TimeSpan * System.Threading.CancellationToken -> Azure.Response<Azure.Communication.Identity.CommunicationUserIdentifierAndToken>
override this.CreateUserAndToken : seq<Azure.Communication.Identity.CommunicationTokenScope> * TimeSpan * System.Threading.CancellationToken -> Azure.Response<Azure.Communication.Identity.CommunicationUserIdentifierAndToken>
Public Overridable Function CreateUserAndToken (scopes As IEnumerable(Of CommunicationTokenScope), tokenExpiresIn As TimeSpan, Optional cancellationToken As CancellationToken = Nothing) As Response(Of CommunicationUserIdentifierAndToken)

Parameters

scopes
IEnumerable<CommunicationTokenScope>

List of CommunicationTokenScope scopes for the token.

tokenExpiresIn
TimeSpan

Custom validity period of the token within [1,24] hours range.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Applies to