Udostępnij za pośrednictwem


MobileServicePKCEAuthentication Class

Definition

Implementation of the MobileServiceAuthentication that handles PKCE authentication.

public abstract class MobileServicePKCEAuthentication : Microsoft.WindowsAzure.MobileServices.Internal.MobileServiceAuthentication
type MobileServicePKCEAuthentication = class
    inherit MobileServiceAuthentication
Public MustInherit Class MobileServicePKCEAuthentication
Inherits MobileServiceAuthentication
Inheritance
MobileServicePKCEAuthentication

Constructors

MobileServicePKCEAuthentication(MobileServiceClient, String, String, IDictionary<String,String>)

Create a new instance of the MobileServicePKCEAuthentication.

Fields

LoginAsyncDoneUriFragment

Relative URI fragment of the login/done endpoint.

(Inherited from MobileServiceAuthentication)
LoginAsyncUriFragment

Relative URI fragment of the login endpoint.

(Inherited from MobileServiceAuthentication)
WindowsAzureActiveDirectoryRestApiPathName

The name for the Azure Active Directory authentication provider as used by the service REST API.

(Inherited from MobileServiceAuthentication)

Properties

CallbackUri

Uri of the endpoint called when the authentication flow is complete

Client

The MobileServiceClient associated with this MobileServiceAuthentication instance.

(Inherited from MobileServiceAuthentication)
CodeVerifier

The random bytes used to verify the connection.

EndUri

The end Uri to use for authentication. This Uri indicates that the authentication flow has completed. Upon being redirected to any URL that starts with the endUrl, the browser-based control must stop navigating and return the response data.

(Inherited from MobileServiceAuthentication)
LoginUri

Uri of the endpoint used to initiate the authentication flow.

Parameters

Provider specific extra parameters that are sent as query string parameters to login endpoint.

(Inherited from MobileServiceAuthentication)
ProviderName

The name of the authentication provider used by this MobileServiceAuthentication instance.

(Inherited from MobileServiceAuthentication)
StartUri

The start uri to use for authentication. The browser-based control should first navigate to this Uri in order to start the authenication flow.

(Inherited from MobileServiceAuthentication)

Methods

GetAuthorizationCodeAsync()

Returns the authorization code needed to complete the transaction.

GetSha256Hash(String)

SHA-256 hashing followed by Base64 encoding of the string input.

LoginAsync()

Log a user into a Mobile Services application with the provider name and optional token object from this instance.

(Inherited from MobileServiceAuthentication)
LoginAsyncOverride()

Login via OAuth 2.0 PKCE protocol.

Applies to