Click or drag to resize
Authorization Class
Class used to authorize a mobile user against the Mobile Cloud Service.
Inheritance Hierarchy
SystemObject
  Oracle.Cloud.Mobile.AuthorizationAuthorization

Namespace: Oracle.Cloud.Mobile.Authorization
Assembly: Oracle.Cloud.Mobile (in Oracle.Cloud.Mobile.dll) Version: 16.1.3.1 (16.1.3.1)
Syntax
public abstract class Authorization

The Authorization type exposes the following members.

Constructors
  NameDescription
Public methodAuthorization
Internal constructor, use MobileBackend.Authorization property instead.
Top
Properties
  NameDescription
Public propertyAccessToken
The access token returned by the service after a successful call to AuthenticateAsync() or AuthenticateAnonymousAsync().
Public propertyAuthorizedUsername
Returns the username of the current authorized user if any, null otherwise.
Public propertyIsAuthorized
Returns true if a user has been authorized, false otherwise. A user can be authorized by calling AuthenticateAsync() or AuthenticateAnonymousAsync().
Public propertyIsTokenValid
Returns true if the access token returned by the service is still valid.
Top
Methods
  NameDescription
Public methodAuthenticateAnonymousAsync
Authenticates an anonymous user against the service using the scheme specified in the AuthenticationType property. The user remains logged in until LogoutAsync() is called or until the token returned by the service expires and requires a fresh authentication.
Public methodAuthenticateAsync
Authenticates a user with the given credentials against the service using the scheme specified in the AuthenticationType property. The user remains logged in until LogoutAsync() is called or until the token returned by the service expires and requires a fresh authentication.
Public methodClearCachedCredentials
Clears any credentials cached in the Windows PasswordVault.
Public methodCreateHttpFilter
Creates a new instance of IHttpFilter that callers can use with an HttpClient object to add auth headers to service calls. The filter can be chained with other IHttpFilter objects. If no other filter is provided then HttpBaseProtocolFilter will be used.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetCurrentUserAsync
Returns the user resource associated with the logged in user.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodLogoutAsync
Logs out the current user and clears cached credentials and tokens.
Public methodLogoutAsync(Boolean)
Logs out the current user.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRefreshTokenAsync
Refreshes the authentication token if it has expired. The authentication scheme should support refresh.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also