File tree Expand file tree Collapse file tree 4 files changed +21
-3
lines changed Expand file tree Collapse file tree 4 files changed +21
-3
lines changed Original file line number Diff line number Diff line change
1
+ ## 0.1.1
2
+
3
+ - Export OauthToken class
4
+
5
+ ## 0.1.0
6
+
7
+ - Add support for AuthorizationCodeGrant
8
+
1
9
## 0.0.5
2
10
3
11
- Update Chopper
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ This can be override by providing a custom storage implementation.
28
28
29
29
- ✅ ResourceOwnerPasswordGrant
30
30
- ✅ ClientCredentialsGrant
31
- - ❌ AuthorizationCodeGrant ( * TODO * )
31
+ - ✅ AuthorizationCodeGrant
32
32
33
33
## Usage
34
34
@@ -62,6 +62,15 @@ Example:
62
62
password: 'password',
63
63
),
64
64
);
65
+
66
+ // Authorization Cod eGrant
67
+ oauth_chopper.AuthorizationCodeGrant grant = oauth_chopper.AuthorizationCodeGrant(
68
+ tokenEndpoint: Uri.parse("tokenEndpoint"),
69
+ scopes: ["scope1", "scope2"],
70
+ redirectUrl: Uri.parse("redirectUrl"),
71
+ redirect: redirect,
72
+ listen: listen,
73
+ );
65
74
```
66
75
67
76
If you want to persist the OAuth2 credential information you can provide a custom OAuthStorage
Original file line number Diff line number Diff line change @@ -8,4 +8,5 @@ export 'package:oauth2/src/expiration_exception.dart';
8
8
9
9
export 'src/oauth_chopper.dart' ;
10
10
export 'src/oauth_grant.dart' ;
11
+ export 'src/oauth_token.dart' ;
11
12
export 'src/storage/oauth_storage.dart' ;
Original file line number Diff line number Diff line change 1
1
name : oauth_chopper
2
2
description : Add and manage OAuth2 authentication for your Chopper client.
3
- version : 0.0.5
3
+ version : 0.1.1
4
4
homepage : https://github.com/DutchCodingCompany/oauth_chopper
5
5
6
6
environment :
7
- sdk : ' >=2.17 .0 <4.0.0'
7
+ sdk : ' >=3.0 .0 <4.0.0'
8
8
9
9
dependencies :
10
10
chopper : ^6.1.3
You can’t perform that action at this time.
0 commit comments