AuthCodeClient class
Provides OAuth authorization process.
Corresponds to Authorization Endpoint of OAuth 2.0 spec.
Constructors
- AuthCodeClient.new({AuthApi? authApi, Platform? platform})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
parsePrompts(
List< Prompt> prompts) → String -
request(
{String? clientId, String? redirectUri, String? codeVerifier, List< Prompt> ? prompts, List<String> ? scopes, String? state}) → Future<String> -
Requests authorization code via
Chrome Custom Tabs
(on Android) andASWebAuthenticationSession
(on iOS). -
requestWithAgt(
List< String> scopes, {String? clientId, String? redirectUri}) → Future<String> - Requests authorization code with current access token.
-
requestWithTalk(
{String? clientId, String? redirectUri, List< String> ? scopes, List<Prompt> ? prompts, String? state, String? codeVerifier}) → Future<String> - Requests authorization code via KakaoTalk.
-
retrieveAuthCode(
) → void - Retreives auth code in web environment. (This method is web specific. Use after checking the platform)
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance → AuthCodeClient
-
final
Static Methods
-
codeVerifier(
) → String