CommunicationIdentityClient.CreateUserAndToken Method
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
CreateUserAndToken(IEnumerable<CommunicationTokenScope>, CancellationToken)
Creates a new CommunicationUserIdentifier.
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)
Creates a new CommunicationUserIdentifier.
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
Azure SDK for .NET
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: Under hela 2024 kommer vi att fasa ut GitHub-problem som feedbackmekanism för innehåll och ersätta det med ett nytt feedbacksystem. Mer information finns i:Skicka och visa feedback för