Verify Your Identity
We\'ve sent a 6-digit code via voice phone call to the following phone number:
From 457c0196f2e855256b84b22eca84e0d43438570d Mon Sep 17 00:00:00 2001 From: Sergiu Ghitea <28300158+sergiught@users.noreply.github.com> Date: Thu, 9 Mar 2023 19:17:55 +0100 Subject: [PATCH 1/4] Restore the storybook preview on the universal login templates update --- README.md | 19 +- .../auth0_universal-login_templates_update.md | 3 +- go.mod | 3 + go.sum | 7 + .../cli/data/branding/default-template.liquid | 9 + .../cli/data/branding/footer-template.liquid | 55 +++ .../cli/data/branding/image-template.liquid | 34 ++ .../0.911f6e12e6c467f018fc.manager.bundle.js | 1 + .../4.cf0090def79b2a470b55.manager.bundle.js | 2 + ...f79b2a470b55.manager.bundle.js.LICENSE.txt | 8 + .../5.ff3f0a1f2e8a30b74056.manager.bundle.js | 1 + .../6.4440048971a86fb21870.manager.bundle.js | 2 + ...71a86fb21870.manager.bundle.js.LICENSE.txt | 12 + .../7.42237ad1d38f983b1508.manager.bundle.js | 1 + .../8.d0cb72dd4a648b65de96.manager.bundle.js | 1 + .../cli/data/branding/storybook/favicon.ico | Bin 0 -> 32988 bytes .../cli/data/branding/storybook/iframe.html | 135 ++++++ .../cli/data/branding/storybook/index.html | 55 +++ ...ain.10eb9558f241369aaa99.manager.bundle.js | 1 + .../storybook/main.6c9f50ac.iframe.bundle.js | 1 + ...ain.61b5b68c70da183b7397.manager.bundle.js | 1 + .../runtime~main.b0af52cf.iframe.bundle.js | 1 + .../vendors~main.048b7983.iframe.bundle.js | 3 + ...main.048b7983.iframe.bundle.js.LICENSE.txt | 74 +++ ...vendors~main.048b7983.iframe.bundle.js.map | 1 + ...ain.f2c971dea89201865b97.manager.bundle.js | 2 + ...a89201865b97.manager.bundle.js.LICENSE.txt | 88 ++++ internal/cli/data/branding/tenant-data.js | 4 + internal/cli/universal_login.go | 136 ------ internal/cli/universal_login_templates.go | 454 ++++++++++++++++++ 30 files changed, 972 insertions(+), 142 deletions(-) create mode 100644 internal/cli/data/branding/default-template.liquid create mode 100644 internal/cli/data/branding/footer-template.liquid create mode 100644 internal/cli/data/branding/image-template.liquid create mode 100644 internal/cli/data/branding/storybook/0.911f6e12e6c467f018fc.manager.bundle.js create mode 100644 internal/cli/data/branding/storybook/4.cf0090def79b2a470b55.manager.bundle.js create mode 100644 internal/cli/data/branding/storybook/4.cf0090def79b2a470b55.manager.bundle.js.LICENSE.txt create mode 100644 internal/cli/data/branding/storybook/5.ff3f0a1f2e8a30b74056.manager.bundle.js create mode 100644 internal/cli/data/branding/storybook/6.4440048971a86fb21870.manager.bundle.js create mode 100644 internal/cli/data/branding/storybook/6.4440048971a86fb21870.manager.bundle.js.LICENSE.txt create mode 100644 internal/cli/data/branding/storybook/7.42237ad1d38f983b1508.manager.bundle.js create mode 100644 internal/cli/data/branding/storybook/8.d0cb72dd4a648b65de96.manager.bundle.js create mode 100644 internal/cli/data/branding/storybook/favicon.ico create mode 100644 internal/cli/data/branding/storybook/iframe.html create mode 100644 internal/cli/data/branding/storybook/index.html create mode 100644 internal/cli/data/branding/storybook/main.10eb9558f241369aaa99.manager.bundle.js create mode 100644 internal/cli/data/branding/storybook/main.6c9f50ac.iframe.bundle.js create mode 100644 internal/cli/data/branding/storybook/runtime~main.61b5b68c70da183b7397.manager.bundle.js create mode 100644 internal/cli/data/branding/storybook/runtime~main.b0af52cf.iframe.bundle.js create mode 100644 internal/cli/data/branding/storybook/vendors~main.048b7983.iframe.bundle.js create mode 100644 internal/cli/data/branding/storybook/vendors~main.048b7983.iframe.bundle.js.LICENSE.txt create mode 100644 internal/cli/data/branding/storybook/vendors~main.048b7983.iframe.bundle.js.map create mode 100644 internal/cli/data/branding/storybook/vendors~main.f2c971dea89201865b97.manager.bundle.js create mode 100644 internal/cli/data/branding/storybook/vendors~main.f2c971dea89201865b97.manager.bundle.js.LICENSE.txt create mode 100644 internal/cli/data/branding/tenant-data.js create mode 100644 internal/cli/universal_login_templates.go diff --git a/README.md b/README.md index e91747631..f8659fca0 100644 --- a/README.md +++ b/README.md @@ -124,13 +124,24 @@ There are two ways to authenticate: ## Customization -To change the text editor used for editing templates, rules, and actions, -set the environment variable `EDITOR` to your preferred editor. Example: +To change the text editor used for editing templates, rules, and actions, set the environment variable `EDITOR` to your +preferred editor. If choosing a non-terminal editor, ensure that the command starts the editor and waits for the files +to be closed before returning. + +Examples: ```shell -export EDITOR="code -w" -# or +# Uses vscode with the --wait flag. +export EDITOR="code --wait" + +# Uses sublime text with the --wait flag. +export EDITOR="subl --wait" + +# Uses nano, a terminal based editor. export EDITOR="nano" + +# Uses vim, a terminal based editor. +export EDITOR="vim" ``` ## Anonymized Analytics Disclosure diff --git a/docs/auth0_universal-login_templates_update.md b/docs/auth0_universal-login_templates_update.md index b4423def1..0aaa80300 100644 --- a/docs/auth0_universal-login_templates_update.md +++ b/docs/auth0_universal-login_templates_update.md @@ -5,7 +5,7 @@ has_toc: false --- # auth0 universal-login templates update -Update the custom template for Universal Login. +Update the custom template for the New Universal Login Experience. ## Usage ``` @@ -17,7 +17,6 @@ auth0 universal-login templates update [flags] ``` auth0 universal-login templates update auth0 ul templates update - cat path/to/body.html | auth0 ul templates update ``` diff --git a/go.mod b/go.mod index 767879b2f..a3a498616 100644 --- a/go.mod +++ b/go.mod @@ -7,10 +7,12 @@ require ( github.com/auth0/go-auth0 v0.15.1 github.com/briandowns/spinner v1.23.0 github.com/charmbracelet/glamour v0.6.0 + github.com/fsnotify/fsnotify v1.6.0 github.com/getsentry/sentry-go v0.19.0 github.com/golang/mock v1.6.0 github.com/google/go-cmp v0.5.9 github.com/google/uuid v1.3.0 + github.com/guiguan/caster v0.0.0-20191104051807-3736c4464f38 github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 github.com/lestrrat-go/jwx v1.2.25 github.com/logrusorgru/aurora v2.0.3+incompatible @@ -25,6 +27,7 @@ require ( github.com/tidwall/pretty v1.2.1 github.com/zalando/go-keyring v0.2.2 golang.org/x/oauth2 v0.6.0 + golang.org/x/sync v0.1.0 golang.org/x/sys v0.6.0 golang.org/x/term v0.6.0 golang.org/x/text v0.8.0 diff --git a/go.sum b/go.sum index af470793a..8b807eb14 100644 --- a/go.sum +++ b/go.sum @@ -45,6 +45,8 @@ github.com/dsnet/golib v0.0.0-20171103203638-1ea166775780/go.mod h1:Lj+Z9rebOhdf github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= github.com/fatih/color v1.13.0 h1:8LOYc1KYPPmyKMuN8QV2DNRWNbLo6LZ0iLs8+mlH53w= github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= +github.com/fsnotify/fsnotify v1.6.0 h1:n+5WquG0fcWoWp6xPWfHdbskMCQaFnG6PfBrh1Ky4HY= +github.com/fsnotify/fsnotify v1.6.0/go.mod h1:sl3t1tCWJFWoRz9R8WJCbQihKKwmorjAbSClcnxKAGw= github.com/getsentry/sentry-go v0.19.0 h1:BcCH3CN5tXt5aML+gwmbFwVptLLQA+eT866fCO9wVOM= github.com/getsentry/sentry-go v0.19.0/go.mod h1:y3+lGEFEFexZtpbG1GUE2WD/f9zGyKYwpEqryTOC/nE= github.com/go-errors/errors v1.4.2 h1:J6MZopCL4uSllY1OfXM374weqZFFItUbrImctkmUxIA= @@ -69,6 +71,8 @@ github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/gorilla/css v1.0.0 h1:BQqNyPTi50JCFMTw/b67hByjMVXZRwGha6wxVGkeihY= github.com/gorilla/css v1.0.0/go.mod h1:Dn721qIggHpt4+EFCcTLTU/vk5ySda2ReITrtgBl60c= +github.com/guiguan/caster v0.0.0-20191104051807-3736c4464f38 h1:oWETJozNAt29o9b03jPJ8mjQTk8XklRXEZiXBECoNpg= +github.com/guiguan/caster v0.0.0-20191104051807-3736c4464f38/go.mod h1:giU/iWwQIOg/ND1ecR8raoyROxojrXL9osppnuI7MRY= github.com/hinshun/vt10x v0.0.0-20220119200601-820417d04eec h1:qv2VnGeEQHchGaZ/u7lxST/RaJw+cv273q79D81Xbog= github.com/hinshun/vt10x v0.0.0-20220119200601-820417d04eec/go.mod h1:Q48J4R4DvxnHolD5P8pOtXigYlRuPLGl6moFx3ulM68= github.com/inconshreveable/mousetrap v1.0.1 h1:U3uMjPSQEBMNp1lFxmllqCPM6P5u/Xq7Pgzkat/bFNc= @@ -203,6 +207,8 @@ golang.org/x/oauth2 v0.6.0 h1:Lh8GPgSKBfWSwFvtuWOfeI3aAAnbXTSutYxJiOJFgIw= golang.org/x/oauth2 v0.6.0/go.mod h1:ycmewcwgD4Rpr3eZJLSB4Kyyljb3qDh40vJ8STE5HKw= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.1.0 h1:wsuoTGHzEhffawBOhz5CYhcrV4IdKZbEyZjBMuTp12o= +golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -219,6 +225,7 @@ golang.org/x/sys v0.0.0-20210819135213-f52c844e1c1c/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220422013727-9388b58f7150/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220908164124-27713097b956/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0 h1:MVltZSvRTcU2ljQOhs94SXPftV6DCNnZViHeQps87pQ= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= diff --git a/internal/cli/data/branding/default-template.liquid b/internal/cli/data/branding/default-template.liquid new file mode 100644 index 000000000..43b3e9fc7 --- /dev/null +++ b/internal/cli/data/branding/default-template.liquid @@ -0,0 +1,9 @@ + + +
+ {%- auth0:head -%} + + + {%- auth0:widget -%} + + diff --git a/internal/cli/data/branding/footer-template.liquid b/internal/cli/data/branding/footer-template.liquid new file mode 100644 index 000000000..f34243fd0 --- /dev/null +++ b/internal/cli/data/branding/footer-template.liquid @@ -0,0 +1,55 @@ + + + + {%- auth0:head -%} + +&CMj1w
z+VK^%-<_Yre&hT|##o!zVLs&xA`_v{Xooo8KyUPUXouW>4xm4E7<8&der8{}wgfnc
zg|W@lKZ$HvuS-@(_C5Q_gnwY8ze^ja%jbEjO0{{(?80*SkF@7ElgL9R<->*?PTI3v
zK2OZV@DhAr|Hhbs{X-v4KhJl{(I2|~Nb Sorry, but you either have no stories or none are selected somehow. If the problem persists, check the browser console, or the terminal you've run Storybook from. We\'ve sent a 6-digit code via voice phone call to the following phone number:No Preview
Verify Your Identity