Publish 2.2.0

This commit is contained in:
Tobe O 2019-05-02 03:31:02 -04:00
parent 3a152d97eb
commit 961324980d
3 changed files with 4 additions and 4 deletions

View file

@ -313,7 +313,7 @@ abstract class AuthorizationServer<Client, User> {
}).toString(); }).toString();
target = target.replace(fragment: fragment); target = target.replace(fragment: fragment);
res.redirect(target.toString()); await res.redirect(target.toString());
return false; return false;
} on FormatException { } on FormatException {
throw AuthorizationException( throw AuthorizationException(

View file

@ -6,7 +6,7 @@ version: 2.2.0
environment: environment:
sdk: ">=2.0.0-dev <3.0.0" sdk: ">=2.0.0-dev <3.0.0"
dependencies: dependencies:
angel_framework: ^2.0.0-alpha angel_framework: ^2.0.0-rc.0
angel_http_exception: ^1.0.0 angel_http_exception: ^1.0.0
crypto: ^2.0.0 crypto: ^2.0.0
dev_dependencies: dev_dependencies:
@ -16,4 +16,4 @@ dev_dependencies:
oauth2: ^1.0.0 oauth2: ^1.0.0
pedantic: ^1.0.0 pedantic: ^1.0.0
test: ^1.0.0 test: ^1.0.0
uuid: ^1.0.0 uuid: ^2.0.0

View file

@ -143,7 +143,7 @@ class _Server extends AuthorizationServer<PseudoApplication, Map> {
if (state == 'hello') if (state == 'hello')
return 'Hello ${pseudoApplication.id}:${pseudoApplication.secret}'; return 'Hello ${pseudoApplication.id}:${pseudoApplication.secret}';
var authCode = _uuid.v4() as String; var authCode = _uuid.v4();
var authCodes = req.container.make<AuthCodes>(); var authCodes = req.container.make<AuthCodes>();
authCodes[authCode] = state; authCodes[authCode] = state;