PackageTrack
Sign in Get early access

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 2025
2013 2015 2017 2019 2021 2023 2025
Release Pre-release

Releases

latest 60 of 97
  1. 2.0.5 20 Oct 2025
    Release notes
    • Make underlying HTTP client non-nullable to inherit its close behavior.
    Open source →
  2. 2.0.3 21 Aug 2024
    Release notes
    • Require package:http v1.0.0
    • Move to dart-lang/tools.
    Open source →
  3. 2.0.2 30 May 2023
    Release notes
    • Require Dart 3.0.
    • Support package:http 1.0.0.
    Open source →
  4. 2.0.1 26 Oct 2022
    Release notes
    • Handle expires_in when encoded as string.
    • Populate the pubspec repository field.
    • Increase the minimum Dart SDK to 2.17.0.
    Open source →
  5. 2.0.0 08 Mar 2021
    Release notes
    • Migrate to null safety.
    Open source →
  6. 1.6.3 15 Oct 2020
    Release notes
    • Added optional codeVerifier parameter to AuthorizationCodeGrant constructor.
    Open source →
  7. 1.6.1 08 Jun 2020
    Release notes
    • Added fix to make sure that credentials are only refreshed once when multiple calls are made.
    Open source →
  8. 1.6.0 27 Apr 2020
    Release notes
    • Added PKCE support to AuthorizationCodeGrant.
    Open source →
  9. 1.5.0 21 Nov 2019
    Release notes
    • Added support for clientCredentialsGrant.
    Open source →
  10. 1.4.0 04 Oct 2019
    Release notes
    • OpenID's id_token treated.
    Open source →
  11. 1.3.0 26 Jun 2019
    Release notes
    • Added onCredentialsRefreshed option when creating Client objects.
    Open source →
  12. 1.2.3 26 Oct 2018
    Release notes
    • Support the latest package:http release.
    Open source →
  13. 1.2.2 07 Aug 2018
    Release notes
    • Allow the stable 2.0 SDK.
    Open source →
  14. 1.2.1 25 May 2018
    Release notes
    • Updated SDK version to 2.0.0-dev.17.0
    Open source →
  15. 1.2.0 26 Mar 2018
    Release notes
    • 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.
    Open source →
  16. 1.1.0 02 Jun 2017
    Release notes
    • 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 ' '.
    Open source →
  17. 1.0.2 05 May 2016
    Release notes
    • Fix all strong-mode warnings.
    • Support crypto 1.0.0.
    • Support http_parser 3.0.0.
    Open source →
  18. 1.0.1 14 Dec 2015
    Release notes
    • Support http_parser 2.0.0.
    Open source →
  19. 1.0.0 14 Sep 2015
    Release notes

    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.

    Open source →
  20. 0.9.3 05 May 2014

    Nothing published for this version

  21. 0.9.2 26 Mar 2014
    Release notes
    • Expand the dependency on the HTTP package to include 0.10.x.

    • Add a README file.

    Open source →
  22. 0.9.1 06 Jan 2014

    Nothing published for this version

  23. 0.9.0 06 Nov 2013

    Nothing published for this version

  24. 0.8.10 01 Nov 2013

    Nothing published for this version

  25. 0.8.10+3 04 Nov 2013

    Nothing published for this version

  26. 0.8.10+4 05 Nov 2013

    Nothing published for this version

  27. 0.8.9 31 Oct 2013

    Nothing published for this version

  28. 0.8.8 30 Oct 2013

    Nothing published for this version

  29. 0.8.7 28 Oct 2013

    Nothing published for this version

  30. 0.8.6 24 Oct 2013

    Nothing published for this version

  31. 0.8.5 21 Oct 2013

    Nothing published for this version

  32. 0.8.4 19 Oct 2013

    Nothing published for this version

  33. 0.8.3 17 Oct 2013

    Nothing published for this version

  34. 0.8.2 14 Oct 2013

    Nothing published for this version

  35. 0.8.1 04 Oct 2013

    Nothing published for this version

  36. 0.8.0 03 Oct 2013

    Nothing published for this version

  37. 0.7.6 27 Sep 2013

    Nothing published for this version

  38. 0.7.6+4 01 Oct 2013

    Nothing published for this version

  39. 0.7.5 20 Sep 2013

    Nothing published for this version

  40. 0.7.4 18 Sep 2013

    Nothing published for this version

  41. 0.7.3+1 16 Sep 2013

    Nothing published for this version

  42. 0.7.2 06 Sep 2013

    Nothing published for this version

  43. 0.7.2+1 08 Sep 2013

    Nothing published for this version

  44. 0.7.1 03 Sep 2013

    Nothing published for this version

  45. 0.7.0 28 Aug 2013

    Nothing published for this version

  46. 0.6.21+3 26 Aug 2013

    Nothing published for this version

  47. 0.6.20+1 22 Aug 2013

    Nothing published for this version

  48. 0.6.19 19 Aug 2013

    Nothing published for this version

  49. 0.6.17 10 Aug 2013

    Nothing published for this version

  50. 0.6.17+2 12 Aug 2013

    Nothing published for this version

  51. 0.6.15+2 05 Aug 2013

    Nothing published for this version

  52. 0.6.15+3 06 Aug 2013

    Nothing published for this version

  53. 0.6.14 02 Aug 2013

    Nothing published for this version

  54. 0.6.13 30 Jul 2013

    Nothing published for this version

  55. 0.6.12 26 Jul 2013

    Nothing published for this version

  56. 0.6.11 25 Jul 2013

    Nothing published for this version

  57. 0.6.9 22 Jul 2013

    Nothing published for this version

  58. 0.6.9+2 24 Jul 2013

    Nothing published for this version

  59. 0.6.8 19 Jul 2013

    Nothing published for this version

  60. 0.6.6 17 Jul 2013

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive