This commit is contained in:
Tobe O 2019-05-03 02:14:08 -04:00
parent 961324980d
commit eb31a1a2c9
3 changed files with 5 additions and 3 deletions

View file

@ -1,3 +1,6 @@
# 2.2.0+1
* Parse+verify client for `authorization_code`.
# 2.2.0
* Pass `client` to `exchangeAuthorizationCodeForToken`.
* Apply `package:pedantic`.

View file

@ -371,8 +371,7 @@ abstract class AuthorizationServer<Client, User> {
var grantType = await _getParam(req, 'grant_type', state,
body: true, throwIfEmpty: false);
if (grantType != 'authorization_code' &&
grantType != 'urn:ietf:params:oauth:grant-type:device_code' &&
if (grantType != 'urn:ietf:params:oauth:grant-type:device_code' &&
grantType != null) {
var match =
_rgxBasic.firstMatch(req.headers.value('authorization') ?? '');

View file

@ -2,7 +2,7 @@ name: angel_oauth2
author: Tobe O <thosakwe@gmail.com>
description: A class containing handlers that can be used within Angel to build a spec-compliant OAuth 2.0 server.
homepage: https://github.com/angel-dart/oauth2.git
version: 2.2.0
version: 2.2.0+1
environment:
sdk: ">=2.0.0-dev <3.0.0"
dependencies: