Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge oauth2 package #290

Merged
merged 170 commits into from
Aug 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
170 commits
Select commit Hold shift + click to select a range
4a2cbe7
Add a package for authenticating via OAuth2.
nex3 Nov 19, 2012
763ffb4
Fix OAuth2 tests, and disable them on non-dart:io platforms.
nex3 Nov 19, 2012
d64fe17
Add TODOs about narrowing JSON catch clauses to the OAuth2 package.
nex3 Nov 19, 2012
d61b3a3
Refactor http.Client and http.BaseClient to allow http.Client in type…
nex3 Nov 19, 2012
581bf27
Add http and oauth2 as SDK packages.
nex3 Nov 28, 2012
3ab7e4f
Add authors and homepages to packages.
dgrove Nov 30, 2012
ff0b112
Make the oauth2 lib handle OAuth2 401 errors.
nex3 Dec 4, 2012
b4fb691
Handle OAuth2 AuthorizationExceptions in pub.
nex3 Dec 5, 2012
0fff24e
Reapply "Fix URI encoding/decoding of + and space""
sgjesse Dec 21, 2012
a5e687c
Big merge from experimental to bleeding edge.
floitschG Jan 7, 2013
a85b692
Fix tests for VM in checked mode.
Jan 7, 2013
7129feb
Fix the OAuth2 documentation to use then rather than chain/transform.
nex3 Jan 9, 2013
b0f1302
Move some core classes to collection library.
floitschG Jan 21, 2013
a8d911f
Stop supporting map literals with 1 type argument
mhausner Jan 22, 2013
65bb581
Fix map literals from change 17410
mhausner Jan 22, 2013
4306201
Rename Date to DateTime.
floitschG Jan 24, 2013
d6aeb07
Rename new Uri.fromString to Uri.parse.
floitschG Jan 24, 2013
b518b2b
Fix build for throwsStateError: remove duplicate definitions in other…
sigmundch Jan 29, 2013
4730fe0
Rename mappedBy to map.
lrhn Jan 31, 2013
3ea8cb9
Revert "Rename mappedBy to map."
floitschG Jan 31, 2013
835c5dd
Reapply "Rename mappedBy to map."
lrhn Jan 31, 2013
7b6ab44
Change Future.delayed to take a Duration.
floitschG Feb 13, 2013
7728aeb
Remove deprecated Strings class.
floitschG Feb 19, 2013
a0c7071
Make oauth2 warning-clean.
nex3 Feb 28, 2013
79112f4
Import packages outside oauth2 via ../../.../pkg/ . This allows packages
dgrove Mar 6, 2013
1a1012e
Moved pkg pubspecs to use dev_dependencies where appropriate
kevmoo Mar 20, 2013
62c5e73
Fix an outdated method call in example code for oauth2.
nex3 Mar 21, 2013
b245c23
Switch pkg packages, pub, and dartdoc to use package: imports.
nex3 Mar 28, 2013
01e9875
Normalize packages' library names.
nex3 Apr 8, 2013
abfb4b0
Remove AsyncError with Expando.
floitschG Apr 15, 2013
7096936
Refactor Future constructors.
floitschG Apr 15, 2013
52b1416
add installation instructions to pkg packages
sethladd Apr 19, 2013
ce7dcf3
Adding Uri.parse to AuthorizationException
nex3 Apr 30, 2013
889ff23
Fix a broken oauth2 test.
nex3 Apr 30, 2013
6c0df1d
Change fromString constructor to parse static method
sgjesse May 6, 2013
4e753ca
Merge the dart:uri library into dart:core and update the Uri class
sgjesse May 28, 2013
276f12e
Remove library dart:crypto
sgjesse May 29, 2013
671e0c6
Remove the HttpRequest.queryParameters getter
sgjesse May 30, 2013
ab8b8d3
Stop working around issue 2644.
nex3 Jun 10, 2013
e25cea7
Change MatchState to Map.
Jun 14, 2013
a1d0ae9
pkg: analysis aided cleanup
kevmoo Aug 6, 2013
8d01b26
Stop working around issue 6775.
nex3 Aug 26, 2013
7f72fce
Remove usage of dart:json.
floitschG Aug 28, 2013
ee69a26
add versions and constraints for packages and samples
Nov 6, 2013
d36a084
Revert "add versions and constraints for packages and samples"
Nov 6, 2013
507e359
Re-land r29957 (add versions and constraints for packages and samples…
dgrove Nov 6, 2013
d276e74
Add utility methods for sending non-form data in pkg/http.
nex3 Nov 12, 2013
f065c0d
Mention that OAuth2 currently only works with dart:io.
nex3 Nov 14, 2013
737df1a
Update oauth2's dependency on http.
nex3 Jan 6, 2014
0e24ded
pkg/unittest: added LICENSE
kevmoo Jan 13, 2014
d7e89d9
Added text/javascript as a possible content-type response to the _val…
nex3 Feb 25, 2014
f728944
pkg/oauth2 bringing tests into 2014
kevmoo Mar 6, 2014
54c66a7
Make BaseRequest.contentType use null rather than -1 as a flag value.
nex3 Mar 17, 2014
f351897
Move the oauth2 library documentation to a README.
nex3 Mar 26, 2014
07b8fd1
Rip out dart:io from pkg/http wherever possible.
nex3 Apr 3, 2014
f3edda7
Mark oauth2 as running outside of dart:io contexts.
nex3 May 5, 2014
b70cc14
Add gitignore, status, and codereview files.
nex3 Dec 17, 2014
29b3bb5
Update the pubspec's homepage link.
nex3 Dec 17, 2014
c16164d
Upgrade to the new test runner.
nex3 Jul 16, 2015
f88677d
Async-ify.
nex3 Aug 24, 2015
4ecf787
Modernize the style.
nex3 Aug 25, 2015
4868e90
Code review changes
nex3 Aug 26, 2015
ace4c79
Revert "Code review changes"
nex3 Aug 26, 2015
9fa27f1
Make a bunch of API changes.
nex3 Aug 26, 2015
f6c2b2e
Use http_parser's AuthenticationChallenge class.
nex3 Aug 26, 2015
0f10895
Add support for Resource Owner Password Credentials grants.
ErikGrimes Sep 14, 2015
053402b
Style changes.
nex3 Sep 14, 2015
77ac781
Merge branch 'resource-owner-password-grant'
nex3 Sep 14, 2015
4c1f80b
Support http_parser 2.0.0.
nex3 Dec 14, 2015
3c24a2c
Fix the toJson/fromJson test.
nex3 Dec 16, 2015
0d193a6
Get rid of all the library tags.
nex3 Jan 13, 2016
48eadf7
Fixing analyzer warning: UNUSED_CATCH_CLAUSE
srawlins Apr 6, 2016
72ee55f
Fix all strong-mode warnings.
nex3 May 5, 2016
009c201
Add scope delimiter option (dart-lang/oauth2#17)
thosakwe Jun 2, 2017
b450893
Remove unused imports. (dart-lang/oauth2#19)
nex3 Jun 2, 2017
17677e0
resourceOwnerPasswordGrant should consistently use HTTP client (dart-…
peterjcarroll Jul 10, 2017
0ea43a8
Homepage: use https (dart-lang/oauth2#22)
kevmoo Aug 2, 2017
28fbd9a
Format the package
nex3 Oct 16, 2017
1f94cd9
Enable strong mode
nex3 Oct 16, 2017
a7455d2
Enable Travis CI
nex3 Oct 16, 2017
226db7e
Merge pull request dart-lang/oauth2#23 from dart-lang/travis
nex3 Oct 16, 2017
9b63a17
Missing semicolon in code example (dart-lang/oauth2#24)
ovo-6 Jan 1, 2018
c6e2e4f
Allow response parsing to be customized (dart-lang/oauth2#20)
thosakwe Mar 26, 2018
9960120
Fix Dart 2 runtime failures in tests (dart-lang/oauth2#28)
nex3 May 2, 2018
95094a6
Remove upper case constants (dart-lang/oauth2#26)
lrhn May 22, 2018
3abf173
dartfmt
kevmoo Jul 10, 2018
1960ebf
Allow the stable 2.0 SDK (dart-lang/oauth2#35)
natebosch Aug 7, 2018
6e365bc
Eliminate deprecated usages, removed collection dependency
kevmoo Oct 26, 2018
bb9ae0e
enable pedantic lints
kevmoo Oct 26, 2018
0f170f4
Support latest pkg:http, prepare for release
kevmoo Oct 26, 2018
239135a
OpenID's id_token implementation
wesleyfantinel Jun 14, 2019
379037c
Update README.md
mit-mit Jun 19, 2019
72b53d8
Merge pull request dart-lang/oauth2#48 from dart-lang/mit-mit-patch-1
jonasfj Jun 19, 2019
6d45378
Documentation improved
wesleyfantinel Jun 19, 2019
d607266
Add tests for the OpenID's id_token
wesleyfantinel Jun 19, 2019
f2ec2a2
Add tests for the OpenID's id_token
wesleyfantinel Jun 19, 2019
fde2aa8
Add tests for the OpenID's id_token, dartfmt
wesleyfantinel Jun 19, 2019
6cab259
Add tests for the OpenID's id_token, dartfmt
wesleyfantinel Jun 19, 2019
bf7c80e
adds onCredentialsRefreshed callback support in Client class, adds on…
tamcy Jun 7, 2019
eb35346
fix style
tamcy Jun 21, 2019
1179d64
update test cases
tamcy Jun 21, 2019
c3ea949
add `onCredentialsRefreshed` parameter to `AuthorizationCodeGrant`
tamcy Jun 21, 2019
b53ae3c
fix variable naming in test case in `resource_owner_password_grant_te…
tamcy Jun 21, 2019
0a71e51
remove the TODO message concerning `onCredentialsRefreshed`
tamcy Jun 21, 2019
0c1dc7a
reformat code
tamcy Jun 21, 2019
c437734
Merge pull request dart-lang/oauth2#46 from tamcy/master
jonasfj Jun 24, 2019
9b7a2f3
Update CHANGELOG.md
jonasfj Jun 24, 2019
cbdb2ad
Update CHANGELOG.md
jonasfj Jun 24, 2019
2de5710
Prepare 1.3.0 release
jonasfj Jun 24, 2019
f4445ba
Merge pull request dart-lang/oauth2#49 from dart-lang/jonasfj-patch-1
jonasfj Jun 26, 2019
06c3513
Support for OpenID id_token
wesleyfantinel Oct 4, 2019
e28c5a6
Merge branch 'master' into master
jonasfj Oct 4, 2019
9689b83
Merge pull request dart-lang/oauth2#47 from wesleyfantinel/master
jonasfj Oct 4, 2019
c05fbae
Add support for client credentials grant (dart-lang/oauth2#45)
thosakwe Nov 19, 2019
d40144d
Prepare release of 1.5.0 (dart-lang/oauth2#57)
jonasfj Nov 21, 2019
149264e
Add PKCE support to AuthorizationCodeGrant (dart-lang/oauth2#69)
michaeldavis-wf Apr 24, 2020
c561274
dart analysis issues fixes (dart-lang/oauth2#71)
roisnir Apr 27, 2020
1b94f30
Add imaginary function examples and OAuth documentation links to READ…
LeviHassel Apr 27, 2020
09f0fdb
Release 1.6.0 (dart-lang/oauth2#70)
jonasfj Apr 27, 2020
1d22d6b
Refresh credentials once (dart-lang/oauth2#73)
Kavantix Jun 8, 2020
e25ff2d
Improve README style (dart-lang/oauth2#80)
natebosch Jul 20, 2020
6b38435
Delete .test_config
kevmoo Jul 29, 2020
003493f
allow code verifier to be passed in constructor of AuthorizationCodeG…
lejtmany Oct 15, 2020
e884400
Migrate to GitHub Actions (dart-lang/oauth2#100)
athomas Feb 1, 2021
101db29
Migrate to null safety (dart-lang/oauth2#102)
natebosch Feb 23, 2021
e9436ca
Fix lint await_only_futures (dart-lang/oauth2#104)
natebosch Mar 4, 2021
6311ae3
Prepare to publish for stable null safety (dart-lang/oauth2#103)
natebosch Mar 4, 2021
f52ed91
Fix formatting (dart-lang/oauth2#106)
kevmoo Mar 21, 2021
374357a
Update LICENSE
franklinyow Apr 2, 2021
e6538c4
Merge pull request dart-lang/oauth2#107 from dart-lang/franklinyow-pa…
franklinyow Apr 2, 2021
b71cee3
Fix expiresIn (convert String to Int)
Apr 7, 2021
36e7b99
Update handle_access_token_response.dart
RaphaelStAlme Apr 7, 2021
620e263
Add dependabot
kevmoo Jun 5, 2021
fc3bc02
Bump dart-lang/setup-dart from 0.3 to 1 (dart-lang/oauth2#115)
dependabot[bot] Jun 5, 2021
5b080b6
Correct in the code comments the name of the FormatException (dart-la…
vital-edu Jul 19, 2021
cbdf3f9
handle expires_in when encoded as string
jonasfj Jul 19, 2021
2c63431
Added a test covering "expires_in" as string
jonasfj Jul 19, 2021
2ceaee0
Merge branch 'patch-1'
jonasfj Jul 19, 2021
402b291
Bump actions/checkout from 2 to 3 (dart-lang/oauth2#125)
dependabot[bot] Mar 2, 2022
6006643
Update pubspec.yaml
devoncarew Apr 29, 2022
1d50b1e
rev to a dev version
devoncarew Apr 29, 2022
27f3e3d
Merge pull request dart-lang/oauth2#127 from dart-lang/devoncarew-pat…
devoncarew May 3, 2022
b8a0a57
use package:lints; rev pubspec version (dart-lang/oauth2#134)
devoncarew Oct 25, 2022
69b8e08
Bump actions/checkout from 3.0.2 to 3.1.0 (dart-lang/oauth2#135)
dependabot[bot] Oct 25, 2022
5c6bd5f
Bump actions/checkout from 3.1.0 to 3.2.0 (dart-lang/oauth2#138)
dependabot[bot] Jan 3, 2023
e7aafdf
Bump actions/checkout from 3.2.0 to 3.3.0 (dart-lang/oauth2#139)
dependabot[bot] Feb 1, 2023
715b623
Bump dart-lang/setup-dart from 1.3 to 1.4 (dart-lang/oauth2#140)
dependabot[bot] Feb 1, 2023
336d232
Bump dart-lang/setup-dart from 1.4.0 to 1.5.0 (dart-lang/oauth2#142)
dependabot[bot] Apr 3, 2023
b76f90d
Bump actions/checkout from 3.3.0 to 3.5.0 (dart-lang/oauth2#143)
dependabot[bot] Apr 3, 2023
a00292d
Bump actions/checkout from 3.5.0 to 3.5.2 (dart-lang/oauth2#145)
dependabot[bot] May 8, 2023
938d3b8
blast_repo fixes (dart-lang/oauth2#147)
devoncarew May 22, 2023
47ac4fc
support 'package:http' 1.0.0 (dart-lang/oauth2#149)
devoncarew May 30, 2023
8078fdd
Bump actions/checkout from 3.5.2 to 3.5.3 (dart-lang/oauth2#151)
dependabot[bot] Jul 1, 2023
220f4d0
Bump actions/checkout from 3.5.3 to 3.6.0 (dart-lang/oauth2#154)
dependabot[bot] Sep 1, 2023
299ba97
Bump dart-lang/setup-dart from 1.5.0 to 1.5.1 (dart-lang/oauth2#155)
dependabot[bot] Oct 1, 2023
9791af7
Bump actions/checkout from 3.6.0 to 4.1.0 (dart-lang/oauth2#156)
dependabot[bot] Oct 3, 2023
e0d5b75
Bump actions/checkout from 4.1.0 to 4.1.1 (dart-lang/oauth2#160)
dependabot[bot] Nov 1, 2023
ed8237a
Bump dart-lang/setup-dart from 1.5.1 to 1.6.0 (dart-lang/oauth2#161)
dependabot[bot] Nov 1, 2023
b37dd1e
Move to latest lints, fixes, bump pkg:http dep (dart-lang/oauth2#162)
kevmoo Dec 5, 2023
bb8c14a
Bump dart-lang/setup-dart from 1.6.0 to 1.6.2 (dart-lang/oauth2#167)
dependabot[bot] Feb 1, 2024
69307be
Bump actions/checkout from 4.1.1 to 4.1.2 (dart-lang/oauth2#169)
dependabot[bot] Apr 1, 2024
944ebaf
Bump dart-lang/setup-dart from 1.6.2 to 1.6.4 (dart-lang/oauth2#172)
dependabot[bot] May 1, 2024
6480cfa
Bump actions/checkout from 4.1.2 to 4.1.4 (dart-lang/oauth2#171)
dependabot[bot] May 1, 2024
95a5abb
blast_repo fixes (dart-lang/oauth2#173)
devoncarew May 7, 2024
4bb146c
Bump actions/checkout from 4.1.4 to 4.1.5 in the github-actions group…
dependabot[bot] May 7, 2024
9b8e457
Bump actions/checkout from 4.1.5 to 4.1.6 in the github-actions group…
dependabot[bot] Jun 1, 2024
653ae26
Bump the github-actions group with 2 updates (dart-lang/oauth2#178)
dependabot[bot] Jul 1, 2024
de2fc8b
Merge package:oauth2 into shared tool repository
mosuem Aug 21, 2024
76c4e02
Merge fixes
mosuem Aug 21, 2024
032078c
Add license to example
mosuem Aug 21, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
79 changes: 79 additions & 0 deletions .github/workflows/oauth2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
name: Dart CI

on:
# Run on PRs and pushes to the default branch.
push:
branches: [ main ]
paths:
- '.github/workflows/oauth2.yml'
- 'pkgs/oauth2/**'
pull_request:
branches: [ main ]
paths:
- '.github/workflows/oauth2.yml'
- 'pkgs/oauth2/**'
schedule:
- cron: "0 0 * * 0"

env:
PUB_ENVIRONMENT: bot.github

jobs:
# Check code formatting and lints against Dart dev, check analyzer warnings
# against the oldest supported SDK.
analyze:
runs-on: ubuntu-latest
defaults:
run:
working-directory: pkgs/oauth2/
strategy:
fail-fast: false
matrix:
sdk: [3.0.0, dev]
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672
with:
sdk: ${{ matrix.sdk }}
- id: install
name: Install dependencies
run: dart pub get
- name: Check formatting
run: dart format --output=none --set-exit-if-changed .
if: matrix.sdk == 'dev' && steps.install.outcome == 'success'
- name: Analyze code
run: dart analyze --fatal-infos
if: matrix.sdk == 'dev' && steps.install.outcome == 'success'
- name: Analyze code
run: dart analyze
if: matrix.sdk != 'dev' && steps.install.outcome == 'success'

# Run tests on a matrix consisting of two dimensions:
# 1. OS: ubuntu-latest, (macos-latest, windows-latest)
# 2. release channel: dev
test:
needs: analyze
runs-on: ${{ matrix.os }}
defaults:
run:
working-directory: pkgs/oauth2/
strategy:
fail-fast: false
matrix:
# Add macos-latest and/or windows-latest if relevant for this package.
os: [ubuntu-latest]
sdk: [stable, beta]
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672
with:
sdk: ${{ matrix.sdk }}
- id: install
name: Install dependencies
run: dart pub get
- name: Run VM tests
run: dart test --platform vm
if: always() && steps.install.outcome == 'success'
- name: Run Chrome tests
run: dart test --platform chrome
if: always() && steps.install.outcome == 'success'
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ don't naturally belong to other topic monorepos (like
| [graphs](pkgs/graphs/) | Graph algorithms that operate on graphs in any representation | [![pub package](https://img.shields.io/pub/v/graphs.svg)](https://pub.dev/packages/graphs) |
| [unified_analytics](pkgs/unified_analytics/) | A package for logging analytics for all Dart and Flutter related tooling to Google Analytics. | [![pub package](https://img.shields.io/pub/v/unified_analytics.svg)](https://pub.dev/packages/unified_analytics) |
| [source_map_stack_trace](pkgs/source_map_stack_trace/) | A package for applying source maps to stack traces. | [![pub package](https://img.shields.io/pub/v/source_map_stack_trace.svg)](https://pub.dev/packages/source_map_stack_trace) |
| [oauth2](pkgs/oauth2/) | A client library for authenticatingand making requests via OAuth2. | [![pub package](https://img.shields.io/pub/v/oauth2.svg)](https://pub.dev/packages/oauth2) |

## Publishing automation

Expand Down
16 changes: 16 additions & 0 deletions pkgs/oauth2/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Don’t commit the following directories created by pub.
.buildlog
.pub/
.dart_tool/
build/
packages
.packages

# Or the files created by dart2js.
*.dart.js
*.js_
*.js.deps
*.js.map

# Include when developing application packages.
pubspec.lock
131 changes: 131 additions & 0 deletions pkgs/oauth2/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
## 2.0.3

* Require `package:http` v1.0.0
* Move to `dart-lang/tools`.

## 2.0.2

* Require Dart 3.0.
* Support `package:http` 1.0.0.

## 2.0.1

* Handle `expires_in` when encoded as string.
* Populate the pubspec `repository` field.
* Increase the minimum Dart SDK to `2.17.0`.

## 2.0.0

* Migrate to null safety.

## 1.6.3

* Added optional `codeVerifier` parameter to `AuthorizationCodeGrant` constructor.

## 1.6.1

* Added fix to make sure that credentials are only refreshed once when multiple calls are made.

## 1.6.0

* Added PKCE support to `AuthorizationCodeGrant`.

## 1.5.0

* Added support for `clientCredentialsGrant`.

## 1.4.0

* OpenID's id_token treated.

## 1.3.0

* Added `onCredentialsRefreshed` option when creating `Client` objects.

## 1.2.3

* Support the latest `package:http` release.

## 1.2.2

* Allow the stable 2.0 SDK.

## 1.2.1

* Updated SDK version to 2.0.0-dev.17.0

## 1.2.0

* Add a `getParameter()` parameter to `new AuthorizationCodeGrant()`, `new
Credentials()`, and `resourceOwnerPasswordGrant()`. This controls how the
authorization server's response is parsed for servers that don't provide the
standard JSON response.

## 1.1.1

* `resourceOwnerPasswordGrant()` now properly uses its HTTP client for requests
made by the OAuth2 client it returns.

## 1.1.0

* Add a `delimiter` parameter to `new AuthorizationCodeGrant()`, `new
Credentials()`, and `resourceOwnerPasswordGrant()`. This controls the
delimiter between scopes, which some authorization servers require to be
different values than the specified `' '`.

## 1.0.2

* Fix all strong-mode warnings.
* Support `crypto` 1.0.0.
* Support `http_parser` 3.0.0.

## 1.0.1

* Support `http_parser` 2.0.0.

## 1.0.0

### Breaking changes

* Requests that use client authentication, such as the
`AuthorizationCodeGrant`'s access token request and `Credentials`' refresh
request, now use HTTP Basic authentication by default. This form of
authentication is strongly recommended by the OAuth 2.0 spec. The new
`basicAuth` parameter may be set to `false` to force form-based authentication
for servers that require it.

* `new AuthorizationCodeGrant()` now takes `secret` as an optional named
argument rather than a required argument. This matches the OAuth 2.0 spec,
which says that a client secret is only required for confidential clients.

* `new Client()` and `Credentials.refresh()` now take both `identifier` and
`secret` as optional named arguments rather than required arguments. This
matches the OAuth 2.0 spec, which says that the server may choose not to
require client authentication for some flows.

* `new Credentials()` now takes named arguments rather than optional positional
arguments.

### Non-breaking changes

* Added a `resourceOwnerPasswordGrant` method.

* The `scopes` argument to `AuthorizationCodeGrant.getAuthorizationUrl()` and
`new Credentials()` and the `newScopes` argument to `Credentials.refresh` now
take an `Iterable` rather than just a `List`.

* The `scopes` argument to `AuthorizationCodeGrant.getAuthorizationUrl()` now
defaults to `null` rather than `const []`.

# 0.9.3

* Update the `http` dependency.

* Since `http` 0.11.0 now works in non-`dart:io` contexts, `oauth2` does as
well.

## 0.9.2

* Expand the dependency on the HTTP package to include 0.10.x.

* Add a README file.
27 changes: 27 additions & 0 deletions pkgs/oauth2/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
Copyright 2014, the Dart project authors.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:

* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following
disclaimer in the documentation and/or other materials provided
with the distribution.
* Neither the name of Google LLC nor the names of its
contributors may be used to endorse or promote products derived
from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Loading
Loading