File tree Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change
1
+ ## 1.0.0
2
+ - Updated chopper to v8.0.0
3
+ - ** BREAKING** Removed oauth_chopper authenticator. Now only the interceptor is needed.
4
+
1
5
## 0.3.0
2
6
- Fixed issues where credentials where cleared when refreshing token failed on other errors than authorization errors.
3
7
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ This can be override by providing a custom storage implementation.
33
33
## Usage
34
34
35
35
Create a ` oauth_chopper ` client with the needed authorizationEndpoint, identifier and secret.
36
- Add the ` oauth_chopper_authenticator ` + ` oauth_chopper_interceptor ` to your chopper client.
36
+ Add the ` oauth_chopper_interceptor ` to your chopper client.
37
37
Request a OAuthGrant on the ` oauth_chopper ` client.
38
38
39
39
Example:
@@ -49,7 +49,6 @@ Example:
49
49
/// Add the oauth authenticator and interceptor to the chopper client.
50
50
final chopperClient = ChopperClient(
51
51
baseUrl: Uri.parse('https://example.com'),
52
- authenticator: oauthChopper.authenticator(),
53
52
interceptors: [
54
53
oauthChopper.interceptor,
55
54
],
Original file line number Diff line number Diff line change @@ -4,6 +4,12 @@ import 'package:oauth2/oauth2.dart' as oauth;
4
4
/// {@template oauth_grant}
5
5
/// Interface for a OAuth grant.
6
6
/// Grants are used to obtain credentials from an authorization server.
7
+ ///
8
+ /// Currently available grants:
9
+ /// - [ResourceOwnerPasswordGrant]
10
+ /// - [ClientCredentialsGrant]
11
+ /// - [AuthorizationCodeGrant]
12
+ ///
7
13
/// {@endtemplate}
8
14
abstract interface class OAuthGrant {
9
15
/// {@macro oauth_grant}
You can’t perform that action at this time.
0 commit comments