Updated oauth

This commit is contained in:
thomashii@dukefirehawk.com 2023-05-27 09:33:53 +08:00
parent dad2106021
commit d440ebd649
6 changed files with 64 additions and 55 deletions

View file

@ -1,5 +1,10 @@
# Change Log # Change Log
## 8.0.0
* Require Dart >= 3.0
* Issue: `oauth2` does not support `http` 1.0.0
## 7.0.1 ## 7.0.1
* Updated example * Updated example

View file

@ -1,30 +1,30 @@
name: angel3_auth_oauth2 name: angel3_auth_oauth2
version: 7.0.1 version: 8.0.0
description: Angel3 library for authenticating users with external identity providers via OAuth2. description: Angel3 library for authenticating users with external identity providers via OAuth2.
homepage: https://angel3-framework.web.app/ homepage: https://angel3-framework.web.app/
repository: https://github.com/dukefirehawk/angel/tree/master/packages/auth_oauth2 repository: https://github.com/dukefirehawk/angel/tree/master/packages/auth_oauth2
environment: environment:
sdk: '>=3.0.0 <4.0.0' sdk: '>=3.0.0 <4.0.0'
dependencies: dependencies:
angel3_auth: ^7.0.0 angel3_auth: ^8.0.0
angel3_framework: ^7.0.0 angel3_framework: ^8.0.0
http_parser: ^4.0.0 http_parser: ^4.0.0
oauth2: ^2.0.0 oauth2: ^2.0.0
dev_dependencies: dev_dependencies:
logging: ^1.0.1 logging: ^1.2.0
lints: ^2.0.0 lints: ^2.1.0
# dependency_overrides: dependency_overrides:
# angel3_container: angel3_container:
# path: ../container/angel_container path: ../container/angel_container
# angel3_framework: angel3_framework:
# path: ../framework path: ../framework
# angel3_http_exception: angel3_http_exception:
# path: ../http_exception path: ../http_exception
# angel3_model: angel3_model:
# path: ../model path: ../model
# angel3_route: angel3_route:
# path: ../route path: ../route
# angel3_mock_request: angel3_mock_request:
# path: ../mock_request path: ../mock_request
# angel3_auth: angel3_auth:
# path: ../auth path: ../auth

View file

@ -1,5 +1,9 @@
# Change Log # Change Log
## 8.0.0
* Require Dart >= 3.0
## 7.0.0 ## 7.0.0
* Require Dart >= 2.17 * Require Dart >= 2.17

View file

@ -1,43 +1,43 @@
name: angel3_oauth2 name: angel3_oauth2
version: 7.0.0 version: 8.0.0
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://angel3-framework.web.app/ homepage: https://angel3-framework.web.app/
repository: https://github.com/dukefirehawk/angel/tree/master/packages/oauth2 repository: https://github.com/dukefirehawk/angel/tree/master/packages/oauth2
environment: environment:
sdk: '>=3.0.0 <4.0.0' sdk: '>=3.0.0 <4.0.0'
dependencies: dependencies:
angel3_framework: ^7.0.0 angel3_framework: ^8.0.0
angel3_http_exception: ^7.0.0 angel3_http_exception: ^8.0.0
crypto: ^3.0.1 crypto: ^3.0.1
collection: ^1.15.0 collection: ^1.17.0
dev_dependencies: dev_dependencies:
angel3_validate: ^7.0.0 angel3_validate: ^8.0.0
angel3_test: ^7.0.0 angel3_test: ^8.0.0
logging: ^1.0.1 logging: ^1.2.0
oauth2: ^2.0.0 oauth2: ^2.0.0
lints: ^2.0.0 lints: ^2.1.0
test: ^1.21.0 test: ^1.24.0
uuid: ^3.0.4 uuid: ^3.0.0
# dependency_overrides: dependency_overrides:
# angel3_container: angel3_container:
# path: ../container/angel_container path: ../container/angel_container
# angel3_framework: angel3_framework:
# path: ../framework path: ../framework
# angel3_http_exception: angel3_http_exception:
# path: ../http_exception path: ../http_exception
# angel3_model: angel3_model:
# path: ../model path: ../model
# angel3_route: angel3_route:
# path: ../route path: ../route
# angel3_mock_request: angel3_mock_request:
# path: ../mock_request path: ../mock_request
# angel3_test: angel3_test:
# path: ../test path: ../test
# angel3_validate: angel3_validate:
# path: ../validate path: ../validate
# angel3_websocket: angel3_websocket:
# path: ../websocket path: ../websocket
# angel3_client: angel3_client:
# path: ../client path: ../client
# angel3_auth: angel3_auth:
# path: ../auth path: ../auth

View file

@ -176,7 +176,7 @@ class _Server extends AuthorizationServer<PseudoApplication, Map> {
} }
} }
class AuthCodes extends MapBase<String, String> with MapMixin<String, String> { class AuthCodes with MapMixin<String, String> {
var inner = <String, String>{}; var inner = <String, String>{};
@override @override

View file

@ -262,7 +262,7 @@ class _Server extends AuthorizationServer<PseudoApplication, Map> {
} }
} }
class AuthCodes extends MapBase<String, String> with MapMixin<String, String> { class AuthCodes with MapMixin<String, String> {
var inner = <String, String>{}; var inner = <String, String>{};
@override @override