From 0bf4f50ca1eb157143946b426faba1d5f73a76aa Mon Sep 17 00:00:00 2001 From: realaravinth Date: Mon, 22 Aug 2022 13:33:00 +0530 Subject: [PATCH] feat: document create_oidc cmd --- docs/management-cmd.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 docs/management-cmd.md diff --git a/docs/management-cmd.md b/docs/management-cmd.md new file mode 100644 index 0000000..1120eb3 --- /dev/null +++ b/docs/management-cmd.md @@ -0,0 +1,24 @@ +## 1. Create OIDC application + +### Pre-requisites: + +1. A registered and active/email-verified user + +### Command: + +```bash +python manage.py create_oidc +``` + +### Example: + +```bash +$ python manage.py create_oidc my_application admin https://example.org/sso-redirect +New application foo created successfully. +client_id: U6qi6FIzj5AvbYJehEkf7yzVbvUyOAQsrTwspmsQ +client_secret: OEZjyHT4KBjvpTWod0QIxX8uWmnq8EQi2nsMU5WfZgu94wrzRdHjptEJ57O5SSEWsvOATOFMASVpBqYtboisdyfdpAC43gcMnbbHsP4QRE7dv66e4rYzyIdI9LuBMoh1 +``` + +Configure [relying +party/application](https://openid.net/specs/openid-connect-core-1_0.html#Terminology) +to use `client_id` and `client_secret`