From df0bc31047597d95f02f754bd5e4446b8bd4669f Mon Sep 17 00:00:00 2001 From: Justin Reese Date: Wed, 24 Jun 2020 02:53:57 -0500 Subject: [PATCH] Add SSO Plugin This commit adds the first version of the SSO Plugin, including: - A settings control for app owners to set the Auth0 API credentials (domain and client ID). - A plugin widget for negotiating with the Auth0 API, determining authentication status, offering the user the ability to login via popup, saving the resulting user object to local storage, and instructing the user to go to the RSS plugin. It does not yet automatically forward the user to the RSS plugin automatically. Also, the plugin.json file may need further tweaking as we understand its intended contents. Affects #3 --- ssoPlugin/control/settings/index.html | 194 ++++++++++++++++++ ssoPlugin/plugin.json | 21 ++ ssoPlugin/widget/index.html | 278 ++++++++++++++++++++++++++ 3 files changed, 493 insertions(+) create mode 100644 ssoPlugin/control/settings/index.html create mode 100644 ssoPlugin/plugin.json create mode 100644 ssoPlugin/widget/index.html diff --git a/ssoPlugin/control/settings/index.html b/ssoPlugin/control/settings/index.html new file mode 100644 index 0000000..da4e15f --- /dev/null +++ b/ssoPlugin/control/settings/index.html @@ -0,0 +1,194 @@ + + + + + + + + + + +
+
+
+ Auth0 API Settings +
+ + +
+
+ + +
+
+ + +
+
+
+
+ + + + diff --git a/ssoPlugin/plugin.json b/ssoPlugin/plugin.json new file mode 100644 index 0000000..00d8a28 --- /dev/null +++ b/ssoPlugin/plugin.json @@ -0,0 +1,21 @@ +{ + "author": "Bad Idea Factory", + "pluginName": "SSO Management", + "pluginDescription": "Allow users to sign into your application.", + "supportEmail": "biffuddotcom@biffud.com", + "control": { + "content": { + "enabled": false + }, + "design": { + "enabled": false + }, + "settings": { + "enabled": true + } + }, + "widget": { + }, + "features": [], + "languages": ["en"] +} \ No newline at end of file diff --git a/ssoPlugin/widget/index.html b/ssoPlugin/widget/index.html new file mode 100644 index 0000000..9068c58 --- /dev/null +++ b/ssoPlugin/widget/index.html @@ -0,0 +1,278 @@ + + + + + + + + + + + + +
Widget - SSO
+ +
+
+ +
+

Initializing...

+
+ +
+

Click the button below to authenticate.

+ +
+ +
+

Successfully authenticated!

+
+
+ + + + \ No newline at end of file