From b95d97384d73e77d7ab0f445eb807cde95c58573 Mon Sep 17 00:00:00 2001 From: Anirudh Pratap Singh <36331702+flutterninja9@users.noreply.github.com> Date: Mon, 14 Mar 2022 14:41:28 +0530 Subject: [PATCH 1/4] added support for auth0-spa-1.20 --- auth0_flutter_web/lib/src/options.dart | 14 ++++++++++++-- example/web/index.html | 2 +- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/auth0_flutter_web/lib/src/options.dart b/auth0_flutter_web/lib/src/options.dart index 338870e..1b80c43 100644 --- a/auth0_flutter_web/lib/src/options.dart +++ b/auth0_flutter_web/lib/src/options.dart @@ -17,6 +17,9 @@ class BaseLoginOptions { external String get scope; external String get audience; external String? get connection; + external String? get organization; + external String? get invitation; + external String? get screen_hint; external factory BaseLoginOptions({ String display, @@ -28,7 +31,10 @@ class BaseLoginOptions { String acr_values, String scope, String audience, - String? connection + String? connection, + String? organization, + String? invitation, + String? screen_hint, }); } @@ -57,6 +63,8 @@ class Auth0ClientOptions extends BaseLoginOptions { external bool get useCookiesForTransactions; external AdvancedOptions get advancedOptions; external num get sessionCheckExpiryDays; + external num get httpTimeoutInSeconds; + external bool get useFormData; external factory Auth0ClientOptions({ String display, @@ -80,7 +88,9 @@ class Auth0ClientOptions extends BaseLoginOptions { bool legacySameSiteCookie, bool useCookiesForTransactions, AdvancedOptions advancedOptions, - num sessionCheckExpiryDays + num sessionCheckExpiryDays, + num httpTimeoutInSeconds, + bool useFormData, }); } diff --git a/example/web/index.html b/example/web/index.html index 844224d..3a6c3b9 100644 --- a/example/web/index.html +++ b/example/web/index.html @@ -26,7 +26,7 @@ - + auth0_web_integration From 28e2f790cb7cf17d24c2123190575672e0bb9dcd Mon Sep 17 00:00:00 2001 From: Anirudh Pratap Singh <36331702+flutterninja9@users.noreply.github.com> Date: Mon, 14 Mar 2022 15:16:47 +0530 Subject: [PATCH 2/4] updated missing args --- auth0_flutter_web/lib/src/options.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/auth0_flutter_web/lib/src/options.dart b/auth0_flutter_web/lib/src/options.dart index 1b80c43..c7879c2 100644 --- a/auth0_flutter_web/lib/src/options.dart +++ b/auth0_flutter_web/lib/src/options.dart @@ -91,6 +91,7 @@ class Auth0ClientOptions extends BaseLoginOptions { num sessionCheckExpiryDays, num httpTimeoutInSeconds, bool useFormData, + String? organization, }); } @@ -107,7 +108,8 @@ class PopupLoginOptions extends BaseLoginOptions{ String acr_values, String scope, String audience, - String? connection + String? connection, + String? organization, }); } From c2d9aec43c566925b972c2f1be3b64762757b721 Mon Sep 17 00:00:00 2001 From: Anirudh Pratap Singh <36331702+flutterninja9@users.noreply.github.com> Date: Wed, 30 Mar 2022 13:27:27 +0530 Subject: [PATCH 3/4] added invitation field --- auth0_flutter_web/lib/src/options.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/auth0_flutter_web/lib/src/options.dart b/auth0_flutter_web/lib/src/options.dart index c7879c2..5c3a04d 100644 --- a/auth0_flutter_web/lib/src/options.dart +++ b/auth0_flutter_web/lib/src/options.dart @@ -110,6 +110,7 @@ class PopupLoginOptions extends BaseLoginOptions{ String audience, String? connection, String? organization, + String? invitation, }); } From 63112e928c03f74db445b948273713280c5df832 Mon Sep 17 00:00:00 2001 From: Anirudh Pratap Singh <36331702+flutterninja9@users.noreply.github.com> Date: Thu, 31 Mar 2022 12:34:33 +0530 Subject: [PATCH 4/4] added option for screen_hint --- auth0_flutter_web/lib/src/options.dart | 36 +++++++++++++------------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/auth0_flutter_web/lib/src/options.dart b/auth0_flutter_web/lib/src/options.dart index 5c3a04d..d4bc560 100644 --- a/auth0_flutter_web/lib/src/options.dart +++ b/auth0_flutter_web/lib/src/options.dart @@ -43,9 +43,7 @@ class BaseLoginOptions { class AdvancedOptions { external String? get defaultScope; - external factory AdvancedOptions({ - String? defaultScope - }); + external factory AdvancedOptions({String? defaultScope}); } @JS() @@ -65,7 +63,7 @@ class Auth0ClientOptions extends BaseLoginOptions { external num get sessionCheckExpiryDays; external num get httpTimeoutInSeconds; external bool get useFormData; - + external factory Auth0ClientOptions({ String display, String prompt, @@ -92,12 +90,14 @@ class Auth0ClientOptions extends BaseLoginOptions { num httpTimeoutInSeconds, bool useFormData, String? organization, + String? invitation, + String? screen_hint, }); } @JS() @anonymous -class PopupLoginOptions extends BaseLoginOptions{ +class PopupLoginOptions extends BaseLoginOptions { external factory PopupLoginOptions({ String display, String prompt, @@ -111,24 +111,24 @@ class PopupLoginOptions extends BaseLoginOptions{ String? connection, String? organization, String? invitation, + String? screen_hint, }); } @JS() @anonymous class GetTokenWithPopupOptions extends PopupLoginOptions { - external factory GetTokenWithPopupOptions({ - String display, - String prompt, - Object max_age, - String ui_locales, - String id_token_hint, - String login_hint, - String acr_values, - String scope, - String audience, - String? connection - }); + external factory GetTokenWithPopupOptions( + {String display, + String prompt, + Object max_age, + String ui_locales, + String id_token_hint, + String login_hint, + String acr_values, + String scope, + String audience, + String? connection}); } @JS() @@ -167,7 +167,7 @@ class LogoutOptions { @JS() @anonymous -class GetUserOptions{ +class GetUserOptions { external String get scope; external String get audience;