oauth2
A client library for authenticating with a remote service via OAuth2 on behalf of a user, and making authorized HTTP requests with the user's OAuth2 credentials.
2.0.5
392K downloads/mo
#589 most downloaded on pub.dev
dart-lang/tools
What this package is like to depend on
Last release 10 months ago
20 Oct 2025
Release timing varies
gaps range from 6 weeks to 1.6 years
Rarely documented
notes for 21 of 96 stable releases
Nothing withdrawn
no release was ever pulled
14 years old
97 releases · first in 2012
1 release in the last 12 months
see the full history below
Release timeline
97 releases · Nov 2012 to Oct 2025Releases
latest 60 of 97-
2.0.520 Oct 2025 -
2.0.321 Aug 2024 -
2.0.230 May 2023 -
2.0.126 Oct 2022Release notes
Open source →- Handle
expires_inwhen encoded as string. - Populate the pubspec
repositoryfield. - Increase the minimum Dart SDK to
2.17.0.
- Handle
-
2.0.008 Mar 2021 -
1.6.315 Oct 2020Release notes
Open source →- Added optional
codeVerifierparameter toAuthorizationCodeGrantconstructor.
- Added optional
-
1.6.108 Jun 2020Release notes
Open source →- Added fix to make sure that credentials are only refreshed once when multiple calls are made.
-
1.6.027 Apr 2020 -
1.5.021 Nov 2019 -
1.4.004 Oct 2019 -
1.3.026 Jun 2019 -
1.2.326 Oct 2018 -
1.2.207 Aug 2018 -
1.2.125 May 2018 -
1.2.026 Mar 2018Release notes
Open source →- Add a
getParameter()parameter tonew AuthorizationCodeGrant(),new Credentials(), andresourceOwnerPasswordGrant(). This controls how the authorization server's response is parsed for servers that don't provide the standard JSON response.
- Add a
-
1.1.002 Jun 2017Release notes
Open source →- Add a
delimiterparameter tonew AuthorizationCodeGrant(),new Credentials(), andresourceOwnerPasswordGrant(). This controls the delimiter between scopes, which some authorization servers require to be different values than the specified' '.
- Add a
-
1.0.205 May 2016Release notes
Open source →- Fix all strong-mode warnings.
- Support
crypto1.0.0. - Support
http_parser3.0.0.
-
1.0.114 Dec 2015 -
1.0.014 Sep 2015Release notes
Open source →Breaking changes
-
Requests that use client authentication, such as the
AuthorizationCodeGrant's access token request andCredentials' refresh request, now use HTTP Basic authentication by default. This form of authentication is strongly recommended by the OAuth 2.0 spec. The newbasicAuthparameter may be set tofalseto force form-based authentication for servers that require it. -
new AuthorizationCodeGrant()now takessecretas 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()andCredentials.refresh()now take bothidentifierandsecretas 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
resourceOwnerPasswordGrantmethod. -
The
scopesargument toAuthorizationCodeGrant.getAuthorizationUrl()andnew Credentials()and thenewScopesargument toCredentials.refreshnow take anIterablerather than just aList. -
The
scopesargument toAuthorizationCodeGrant.getAuthorizationUrl()now defaults tonullrather thanconst [].
0.9.3
-
Update the
httpdependency. -
Since
http0.11.0 now works in non-dart:iocontexts,oauth2does as well.
-
-
0.9.305 May 2014Nothing published for this version
-
0.9.226 Mar 2014Release notes
Open source →-
Expand the dependency on the HTTP package to include 0.10.x.
-
Add a README file.
-
-
0.9.106 Jan 2014Nothing published for this version
-
0.9.006 Nov 2013Nothing published for this version
-
0.8.1001 Nov 2013Nothing published for this version
-
0.8.10+304 Nov 2013Nothing published for this version
-
0.8.10+405 Nov 2013Nothing published for this version
-
0.8.931 Oct 2013Nothing published for this version
-
0.8.830 Oct 2013Nothing published for this version
-
0.8.728 Oct 2013Nothing published for this version
-
0.8.624 Oct 2013Nothing published for this version
-
0.8.521 Oct 2013Nothing published for this version
-
0.8.419 Oct 2013Nothing published for this version
-
0.8.317 Oct 2013Nothing published for this version
-
0.8.214 Oct 2013Nothing published for this version
-
0.8.104 Oct 2013Nothing published for this version
-
0.8.003 Oct 2013Nothing published for this version
-
0.7.627 Sep 2013Nothing published for this version
-
0.7.6+401 Oct 2013Nothing published for this version
-
0.7.520 Sep 2013Nothing published for this version
-
0.7.418 Sep 2013Nothing published for this version
-
0.7.3+116 Sep 2013Nothing published for this version
-
0.7.206 Sep 2013Nothing published for this version
-
0.7.2+108 Sep 2013Nothing published for this version
-
0.7.103 Sep 2013Nothing published for this version
-
0.7.028 Aug 2013Nothing published for this version
-
0.6.21+326 Aug 2013Nothing published for this version
-
0.6.20+122 Aug 2013Nothing published for this version
-
0.6.1919 Aug 2013Nothing published for this version
-
0.6.1710 Aug 2013Nothing published for this version
-
0.6.17+212 Aug 2013Nothing published for this version
-
0.6.15+205 Aug 2013Nothing published for this version
-
0.6.15+306 Aug 2013Nothing published for this version
-
0.6.1402 Aug 2013Nothing published for this version
-
0.6.1330 Jul 2013Nothing published for this version
-
0.6.1226 Jul 2013Nothing published for this version
-
0.6.1125 Jul 2013Nothing published for this version
-
0.6.922 Jul 2013Nothing published for this version
-
0.6.9+224 Jul 2013Nothing published for this version
-
0.6.819 Jul 2013Nothing published for this version
-
0.6.617 Jul 2013Nothing published for this version