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 # 2.2.0
* Pass `client` to `exchangeAuthorizationCodeForToken`. * Pass `client` to `exchangeAuthorizationCodeForToken`.
* Apply `package:pedantic`. * Apply `package:pedantic`.

View file

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

View file

@ -2,7 +2,7 @@ name: angel_oauth2
author: Tobe O <thosakwe@gmail.com> 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. 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 homepage: https://github.com/angel-dart/oauth2.git
version: 2.2.0 version: 2.2.0+1
environment: environment:
sdk: ">=2.0.0-dev <3.0.0" sdk: ">=2.0.0-dev <3.0.0"
dependencies: dependencies: