From cc14cd2688202a17f559adaa7746dad21c764e50 Mon Sep 17 00:00:00 2001 From: "robin.hruska@teskalabs.com" Date: Thu, 23 Mar 2023 15:24:19 +0100 Subject: [PATCH] Draft OAuth setup --- asab/api/doc_templates.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/asab/api/doc_templates.py b/asab/api/doc_templates.py index d5e823a5d..b4ce28efb 100644 --- a/asab/api/doc_templates.py +++ b/asab/api/doc_templates.py @@ -103,6 +103,15 @@ SwaggerUIBundle.SwaggerUIStandalonePreset ] }}) + ui.initOAuth({{ + clientId: "my-asab-app-swagger", + clientSecret: "", + realm: "asab-auth", + appName: "My ASAB app", + scopeSeparator: " ", + scopes: "openid profile", + usePkceWithAuthorizationCodeGrant: false + }}) }}