Skip to content

Commit 964f6ad

Browse files
authored
Merge pull request #4 from DutchCodingCompany/release/0.1.1
Create release 0.1.1
2 parents 3117e90 + 22fe367 commit 964f6ad

File tree

4 files changed

+21
-3
lines changed

4 files changed

+21
-3
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
## 0.1.1
2+
3+
- Export OauthToken class
4+
5+
## 0.1.0
6+
7+
- Add support for AuthorizationCodeGrant
8+
19
## 0.0.5
210

311
- Update Chopper

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ This can be override by providing a custom storage implementation.
2828

2929
- ✅ ResourceOwnerPasswordGrant
3030
- ✅ ClientCredentialsGrant
31-
- AuthorizationCodeGrant (*TODO*)
31+
- AuthorizationCodeGrant
3232

3333
## Usage
3434

@@ -62,6 +62,15 @@ Example:
6262
password: 'password',
6363
),
6464
);
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+
);
6574
```
6675

6776
If you want to persist the OAuth2 credential information you can provide a custom OAuthStorage

lib/oauth_chopper.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ export 'package:oauth2/src/expiration_exception.dart';
88

99
export 'src/oauth_chopper.dart';
1010
export 'src/oauth_grant.dart';
11+
export 'src/oauth_token.dart';
1112
export 'src/storage/oauth_storage.dart';

pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
name: oauth_chopper
22
description: Add and manage OAuth2 authentication for your Chopper client.
3-
version: 0.0.5
3+
version: 0.1.1
44
homepage: https://github.com/DutchCodingCompany/oauth_chopper
55

66
environment:
7-
sdk: '>=2.17.0 <4.0.0'
7+
sdk: '>=3.0.0 <4.0.0'
88

99
dependencies:
1010
chopper: ^6.1.3

0 commit comments

Comments
 (0)