From 4e672750712064a02ed014691b16017665f67434 Mon Sep 17 00:00:00 2001 From: Son NK Date: Tue, 30 Jul 2019 12:38:40 +0200 Subject: [PATCH] provide oauth2 urls in app detail page, improve UI --- .../templates/developer/client_detail.html | 55 +++++++++++++++-- .../steps/step-authorization-flow.html | 59 ++++++++++++++----- 2 files changed, 95 insertions(+), 19 deletions(-) diff --git a/app/developer/templates/developer/client_detail.html b/app/developer/templates/developer/client_detail.html index 6b43af71..00aeb29e 100644 --- a/app/developer/templates/developer/client_detail.html +++ b/app/developer/templates/developer/client_detail.html @@ -13,14 +13,15 @@

App Info

- + {{ form.name(class="form-control", value=client.name) }} {{ render_field_errors(form.name) }}
- - {{ form.home_url(class="form-control", type="url", value=client.home_url or "") }} + + {{ form.home_url(class="form-control", type="url", value=client.home_url or "", + placeholder="https://mywebsite.com") }} {{ render_field_errors(form.home_url) }}
@@ -68,6 +69,52 @@ +
+ + +
+ + + + +
+
+ +
+ + +
+ + + + +
+
+ +
+ + +
+ + + + +
+ +
+
@@ -89,7 +136,7 @@
- +
diff --git a/app/developer/templates/developer/steps/step-authorization-flow.html b/app/developer/templates/developer/steps/step-authorization-flow.html index 920f4628..5dd2bd2e 100644 --- a/app/developer/templates/developer/steps/step-authorization-flow.html +++ b/app/developer/templates/developer/steps/step-authorization-flow.html @@ -27,24 +27,53 @@

And if you already know this flow, here are the OAuth2 endpoints:

-

- Authorization endpoint: - https://app.simplelogin.io/oauth2/authorize - -

+
+ -

- Token endpoint: - https://app.simplelogin.io/oauth2/token - -

+
+ + + + +
+
-

- UserInfo endpoint: - https://app.simplelogin.io/oauth2/userinfo - -

+
+ +
+ + + + +
+
+ +
+ + +
+ + + + +
+ +
+ +
Please find below your OAuth Client-Id and Client-Secret that are needed for the Authorization Code Flow: