auth/csharp/AuthServiceExtensions.cs
/// <summary>
/// Provides a login endpoint that can generate an auth code for the user given
/// valid user credentials.
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='body'>
/// </param>
/// <param name='clientId'>
/// identifier of the oauth client
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
Provides a login endpoint that can generate an auth code for the user given
valid user credentials.
Provides a login endpoint that can generate an auth code for the user given valid user credentials .
public static async Task<UserLoginResponse> LoginUserAsync(this IAuthService operations, UserLoginRequest body, string clientId = default(string), CancellationToken cancellationToken = default(CancellationToken))
            {
                using (var _result = await operations.LoginUserWithHttpMessagesAsync(body, clientId, null, cancellationToken).ConfigureAwait(false))
                {
                    return _result.Body;
                }
            }
public static async Task < UserLoginResponse > LoginUserAsync ( this IAuthService operations , UserLoginRequest body , string clientId = default ( string ) , CancellationToken cancellationToken = default ( CancellationToken ) ) { using ( var _result = await operations . LoginUserWithHttpMessagesAsync ( body , clientId , null , cancellationToken ) . ConfigureAwait ( false ) ) { return _result . Body ; } }
Provides a login endpoint that can generate an auth code for the user given
valid user credentials.
Provides a login endpoint that can generate an auth code for the user given valid user credentials .
IAuthService
this
body
UserLoginRequest
None
clientId
string
identifier of the oauth client
identifier of the oauth client
cancellationToken
CancellationToken
The cancellation token.
The cancellation token .
operations
The operations group for this extension method.
The operations group for this extension method .