diff --git a/app/developer/__init__.py b/app/developer/__init__.py index 0a204cef..c875a5ee 100644 --- a/app/developer/__init__.py +++ b/app/developer/__init__.py @@ -1 +1 @@ -from .views import index, new_client, client_detail +from .views import index, new_client, client_detail, step diff --git a/app/developer/templates/developer/steps/step-0.html b/app/developer/templates/developer/steps/step-0.html new file mode 100644 index 00000000..172d1678 --- /dev/null +++ b/app/developer/templates/developer/steps/step-0.html @@ -0,0 +1,47 @@ +{% extends 'default.html' %} + +{% set active_page = "developer" %} + +{% block title %} + Step 1: Add SimpleLogin button +{% endblock %} + +{% block default_content %} +
The first step is to add the SimpleLogin button onto your website/application.
++ SimpleLogin does not impose any hard guideline on the button color, font, etc + but gives rather some recommendations on + Styling Guide +
+ ++ SimpleLogin will be integrated into your app using + + OAuth2 Authorization Code + flow. +
+ ++ For more details on this flow, please consult our doc on: + + Backend Integration + +
+ +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: ++ By default, SimpleLogin whitelists localhost address that should facilitate the local development. +
+ +
+ We have created some examples along with a step-by-step guide on some framework/libraries,
+ feel free to check them out:
+
+
+ PassportJS (NodeJS)
+
+
+ Requests-OAuthlib
+ (Python)
+
+
SimpleLogin will be integrated into your app using + OAuth 2.0 Implicit Grant flow. +
+ ++ For more details on this flow, please consult our doc on: + Frontend Integration +
+ +And if you already know this flow, here are the corresponding endpoints:
+ ++ Authorization endpoint: + https://app.simplelogin.io/oauth2/authorize + +
+ ++ UserInfo endpoint: + https://app.simplelogin.io/oauth2/userinfo + +
+ + Please find below your OAuth Client-Id that is needed for the Implicit Flow ++ By default, SimpleLogin whitelists localhost address that should facilitate the local development. +
+ + Once you finished SimpleLogin integration, do not forget to add your website as valid redirect_uri + on the app detail page 😀