OAuthGrant class
What a client holds for one MCP server: the token and where it came from.
- Annotations
-
- @immutable
Constructors
-
OAuthGrant({required String issuer, required String resource, required String tokenEndpoint, required String clientId, required OAuthToken token, required List<
String> scopes}) -
const
-
OAuthGrant.fromJson(Map<
String, dynamic> json) -
factory
Properties
- clientId → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- issuer → String
-
The authorization server that issued token.
final
- resource → String
-
The canonical URI of the MCP server the token is for.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
scopes
→ List<
String> -
The scopes asked for (the token's own
scopewhen it reports one).final - token → OAuthToken
-
final
- tokenEndpoint → String
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited