Use better name
This commit is contained in:
parent
d0afeefd4f
commit
a48088e9cf
@ -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,
|
||||
)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user