From d440ebd6496306aeceebe55599fbe60b4c504d48 Mon Sep 17 00:00:00 2001 From: "thomashii@dukefirehawk.com" Date: Sat, 27 May 2023 09:33:53 +0800 Subject: [PATCH] Updated oauth --- packages/auth_oauth2/CHANGELOG.md | 5 ++ packages/auth_oauth2/pubspec.yaml | 40 +++++++------- packages/oauth2/CHANGELOG.md | 4 ++ packages/oauth2/pubspec.yaml | 66 ++++++++++++------------ packages/oauth2/test/auth_code_test.dart | 2 +- packages/oauth2/test/pkce_test.dart | 2 +- 6 files changed, 64 insertions(+), 55 deletions(-) diff --git a/packages/auth_oauth2/CHANGELOG.md b/packages/auth_oauth2/CHANGELOG.md index 9f1cafdb..ba854ed7 100644 --- a/packages/auth_oauth2/CHANGELOG.md +++ b/packages/auth_oauth2/CHANGELOG.md @@ -1,5 +1,10 @@ # Change Log +## 8.0.0 + +* Require Dart >= 3.0 +* Issue: `oauth2` does not support `http` 1.0.0 + ## 7.0.1 * Updated example diff --git a/packages/auth_oauth2/pubspec.yaml b/packages/auth_oauth2/pubspec.yaml index afdd260f..faf812cb 100644 --- a/packages/auth_oauth2/pubspec.yaml +++ b/packages/auth_oauth2/pubspec.yaml @@ -1,30 +1,30 @@ name: angel3_auth_oauth2 -version: 7.0.1 +version: 8.0.0 description: Angel3 library for authenticating users with external identity providers via OAuth2. homepage: https://angel3-framework.web.app/ repository: https://github.com/dukefirehawk/angel/tree/master/packages/auth_oauth2 environment: sdk: '>=3.0.0 <4.0.0' dependencies: - angel3_auth: ^7.0.0 - angel3_framework: ^7.0.0 + angel3_auth: ^8.0.0 + angel3_framework: ^8.0.0 http_parser: ^4.0.0 oauth2: ^2.0.0 dev_dependencies: - logging: ^1.0.1 - lints: ^2.0.0 -# dependency_overrides: -# angel3_container: -# path: ../container/angel_container -# angel3_framework: -# path: ../framework -# angel3_http_exception: -# path: ../http_exception -# angel3_model: -# path: ../model -# angel3_route: -# path: ../route -# angel3_mock_request: -# path: ../mock_request -# angel3_auth: -# path: ../auth + logging: ^1.2.0 + lints: ^2.1.0 +dependency_overrides: + angel3_container: + path: ../container/angel_container + angel3_framework: + path: ../framework + angel3_http_exception: + path: ../http_exception + angel3_model: + path: ../model + angel3_route: + path: ../route + angel3_mock_request: + path: ../mock_request + angel3_auth: + path: ../auth diff --git a/packages/oauth2/CHANGELOG.md b/packages/oauth2/CHANGELOG.md index 16c31fb9..ecbf2fe7 100644 --- a/packages/oauth2/CHANGELOG.md +++ b/packages/oauth2/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## 8.0.0 + +* Require Dart >= 3.0 + ## 7.0.0 * Require Dart >= 2.17 diff --git a/packages/oauth2/pubspec.yaml b/packages/oauth2/pubspec.yaml index 3623b04b..5959f234 100644 --- a/packages/oauth2/pubspec.yaml +++ b/packages/oauth2/pubspec.yaml @@ -1,43 +1,43 @@ 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. homepage: https://angel3-framework.web.app/ repository: https://github.com/dukefirehawk/angel/tree/master/packages/oauth2 environment: sdk: '>=3.0.0 <4.0.0' dependencies: - angel3_framework: ^7.0.0 - angel3_http_exception: ^7.0.0 + angel3_framework: ^8.0.0 + angel3_http_exception: ^8.0.0 crypto: ^3.0.1 - collection: ^1.15.0 + collection: ^1.17.0 dev_dependencies: - angel3_validate: ^7.0.0 - angel3_test: ^7.0.0 - logging: ^1.0.1 + angel3_validate: ^8.0.0 + angel3_test: ^8.0.0 + logging: ^1.2.0 oauth2: ^2.0.0 - lints: ^2.0.0 - test: ^1.21.0 - uuid: ^3.0.4 -# dependency_overrides: -# angel3_container: -# path: ../container/angel_container -# angel3_framework: -# path: ../framework -# angel3_http_exception: -# path: ../http_exception -# angel3_model: -# path: ../model -# angel3_route: -# path: ../route -# angel3_mock_request: -# path: ../mock_request -# angel3_test: -# path: ../test -# angel3_validate: -# path: ../validate -# angel3_websocket: -# path: ../websocket -# angel3_client: -# path: ../client -# angel3_auth: -# path: ../auth \ No newline at end of file + lints: ^2.1.0 + test: ^1.24.0 + uuid: ^3.0.0 +dependency_overrides: + angel3_container: + path: ../container/angel_container + angel3_framework: + path: ../framework + angel3_http_exception: + path: ../http_exception + angel3_model: + path: ../model + angel3_route: + path: ../route + angel3_mock_request: + path: ../mock_request + angel3_test: + path: ../test + angel3_validate: + path: ../validate + angel3_websocket: + path: ../websocket + angel3_client: + path: ../client + angel3_auth: + path: ../auth \ No newline at end of file diff --git a/packages/oauth2/test/auth_code_test.dart b/packages/oauth2/test/auth_code_test.dart index ccca5471..2212f18b 100644 --- a/packages/oauth2/test/auth_code_test.dart +++ b/packages/oauth2/test/auth_code_test.dart @@ -176,7 +176,7 @@ class _Server extends AuthorizationServer { } } -class AuthCodes extends MapBase with MapMixin { +class AuthCodes with MapMixin { var inner = {}; @override diff --git a/packages/oauth2/test/pkce_test.dart b/packages/oauth2/test/pkce_test.dart index 2c80d632..0b58cc3b 100644 --- a/packages/oauth2/test/pkce_test.dart +++ b/packages/oauth2/test/pkce_test.dart @@ -262,7 +262,7 @@ class _Server extends AuthorizationServer { } } -class AuthCodes extends MapBase with MapMixin { +class AuthCodes with MapMixin { var inner = {}; @override