Use better name

This commit is contained in:
decentral1se 2021-06-11 16:24:11 +02:00
parent d0afeefd4f
commit a48088e9cf
Signed by: decentral1se
GPG Key ID: 92DAD76BD9567B8A

View File

@ -11,7 +11,7 @@ from starlette.middleware.sessions import SessionMiddleware
APP_SECRET_KEY = environ.get("APP_SECRET_KEY")
KEYCLOAK_CLIENT_ID = environ.get("KEYCLOAK_CLIENT_ID")
KEYCLOAK_CLIENT_SECRET = environ.get("KEYCLOAK_CLIENT_SECRET")
KEYCLOAK_DOMAIN = environ.get("KEYCLOAK_DOMAIN")
KEYCLOAK_METADATA_URL = environ.get("KEYCLOAK_DOMAIN")
app = FastAPI()
app.add_middleware(SessionMiddleware, secret_key=APP_SECRET_KEY)
@ -23,7 +23,7 @@ oauth.register(
client_kwargs={"scope": "openid profile email"},
client_id=KEYCLOAK_CLIENT_ID,
client_secret=KEYCLOAK_CLIENT_SECRET,
server_metadata_url=KEYCLOAK_DOMAIN,
server_metadata_url=KEYCLOAK_METADATA_URL,
)