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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET