ParseOpenID class abstract

A class for authenticating against a parse server using openid.

Constructors

ParseOpenID()
factory
ParseOpenID.internal()
Create a new ParseOpenID in order to login _parse using an openid provider.

Properties

hashCode int
The hash code for this object.
no setterinherited
redirectHost String?
The host used for the redirect url.
no setter
redirectPath String?
The path used for the redirect url.
no setter
redirectScheme String?
The scheme used for the redirect url.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state AuthenticationState
Get the current AuthenticationState.
no setter
stateStream Stream<AuthenticationState>
Get the Stream of AuthenticationStates.
no setter

Methods

authorize(Uri authorizationUrl, StateSetter stateSetter) Future<Uri>
Authorize the grant, using the authorizationUrl. The stateSetter is used to update the AuthenticationState.
createRedirectUrl() Uri
Create the redirect url.
init({Parse? parse, required String authorizationEndpoint, required String tokenEndpoint, required String clientID, String redirectScheme = "com.example.parseopenid", String redirectHost = "parseopenid.example.com", String redirectPath = "openidredirect.html", String? logoutEndpoint}) Future<void>
Init the ParseOpenID. Parse must be initialized first.
login({bool force = false}) Future<void>
Login at the parse server. If the client is already considered to be authenticated or an authentication is in progress, nothing will happen, unless force is set to true.
logout() Future<void>
Logout at the parse server.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

scopes → const List<String>
The scopes requested.