CommunicationIdentityClient.CreateUserAndToken Method

Definition

Overloads

CreateUserAndToken(IEnumerable<CommunicationTokenScope>, CancellationToken)

Source:
CommunicationIdentityClient.cs
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
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

CreateUserAndToken(String, IEnumerable<CommunicationTokenScope>, CancellationToken)

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

Parameters

customId
String

Custom Id to be associated with the user.

scopes
IEnumerable<CommunicationTokenScope>

List of CommunicationTokenScope scopes for the token.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Applies to

CreateUserAndToken(String, IEnumerable<CommunicationTokenScope>, TimeSpan, CancellationToken)

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

Parameters

customId
String

Custom Id to be associated with the user.

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