From 782780234a4d5eefc692b14b4a620fc24444f2db Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Wed, 1 Aug 2018 17:08:07 -0700 Subject: improvements to login UI, upgrades libraries makes the login experience a bit friendlier to non-developer users --- views/auth_callback.php | 16 +++++++++------ views/auth_start.php | 52 +++++++++++++++++++++---------------------------- 2 files changed, 32 insertions(+), 36 deletions(-) (limited to 'views') diff --git a/views/auth_callback.php b/views/auth_callback.php index acdac8f..4d6ad5e 100644 --- a/views/auth_callback.php +++ b/views/auth_callback.php @@ -54,11 +54,15 @@

Token endpoint response

-

Below is the raw response from your token endpoint (tokenEndpoint ?>):

-
- curl_error ?> - response) ?> -
+

Below is the raw response from your token endpoint (tokenEndpoint ?>):

+ + curl_error): ?> +
curl_error ?>
+ + + response): ?> +
response) ?>
+ @@ -70,4 +74,4 @@ - \ No newline at end of file + diff --git a/views/auth_start.php b/views/auth_start.php index d41ffb4..a6df0da 100644 --- a/views/auth_start.php +++ b/views/auth_start.php @@ -1,62 +1,54 @@
-
-

Authorization Endpoint

-

The authorization endpoint tells this app where to direct your browser to sign you in.

+authorizationEndpoint): ?> +
+

Authorization Endpoint

+ +

The authorization endpoint tells this app where to direct your browser to sign you in.

- authorizationEndpoint): ?> -
Found your authorization endpoint: authorizationEndpoint ?>
-
Could not find your authorization endpoint!

You need to set your authorization endpoint in a <link> tag on your home page.

- -
+
+ -
-

Token Endpoint

+tokenEndpoint): ?> +
+

Token Endpoint

-

The token endpoint is where this app will make a request to get an access token after obtaining authorization.

+

The token endpoint is where this app will make a request to get an access token after obtaining authorization.

- tokenEndpoint): ?> -
Found your token endpoint: tokenEndpoint ?>
-
Could not find your token endpoint!

You need to set your token endpoint in a <link> tag on your home page.

- - -
+
+ -
-

Micropub Endpoint

+micropubEndpoint): ?> +
+

Micropub Endpoint

-

The Micropub endpoint is the URL this app will use to post new photos.

+

The Micropub endpoint is the URL this app will use to post new photos.

- micropubEndpoint): ?> -
- Found your Micropub endpoint: micropubEndpoint ?> -
-
Could not find your Micropub endpoint!

You need to set your Micropub endpoint in a <link> tag on your home page.

- +
+ -
authorizationURL): ?> -

Ready!

+

Sign In

-

Clicking the button below will take you to your authorization server which is where you will allow this app to be able to post to your site.

+

Click the button below to go to your website to allow this app to be able to post to your site.

Choose the scope to request:

    -
  • create update
  • +
  • create update media (default)
  • create
  • post (legacy)
-- cgit v1.2.3