ac_oauth2 2.1.3
ac_oauth2: ^2.1.3 copied to clipboard
A clone of original Dart OAuth2 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. Uses Can [...]
2.1.3 #
- Update from upstream, rename the package from oauth2 to ac_oauth2.
2.1.2 #
- Support for Cancelable Token HTTP Client
2.0.4-wip #
- Require Dart 3.4
2.0.3 #
- Require
package:httpv1.0.0 - Move to
dart-lang/tools.
2.0.2 #
- Require Dart 3.0.
- Support
package:http1.0.0.
2.0.1 #
- Handle
expires_inwhen encoded as string. - Populate the pubspec
repositoryfield. - Increase the minimum Dart SDK to
2.17.0.
2.0.0 #
- Migrate to null safety.
1.6.3 #
- Added optional
codeVerifierparameter toAuthorizationCodeGrantconstructor.
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
onCredentialsRefreshedoption when creatingClientobjects.
1.2.3 #
- Support the latest
package:httprelease.
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 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.
1.1.1 #
resourceOwnerPasswordGrant()now properly uses its HTTP client for requests made by the OAuth2 client it returns.
1.1.0 #
- 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' '.
1.0.2 #
- Fix all strong-mode warnings.
- Support
crypto1.0.0. - Support
http_parser3.0.0.
1.0.1 #
- Support
http_parser2.0.0.
1.0.0 #
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.2 #
-
Expand the dependency on the HTTP package to include 0.10.x.
-
Add a README file.