Skip to content

Commit 4ddac04

Browse files
authored
Hostname localhost (#908)
* keycloak needs to match localhost * black
1 parent 51c5e89 commit 4ddac04

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

backend/app/config.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
21
from typing import List
32

43
from pydantic import BaseSettings, AnyHttpUrl
54

65

76
class Settings(BaseSettings):
87
APP_NAME: str = "Clowder"
9-
API_HOST: str = "http://127.0.0.1:8000"
8+
API_HOST: str = "http://localhost:8000"
109
API_V2_STR: str = "/api/v2"
1110
admin_email: str = "[email protected]"
1211
frontend_url: str = "http://localhost:3000"

backend/app/routers/keycloak.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ async def login() -> RedirectResponse:
3737
keycloak_openid.auth_url(
3838
redirect_uri=settings.auth_redirect_uri,
3939
scope="openid email",
40-
state=token_urlsafe(32)
40+
state=token_urlsafe(32),
4141
)
4242
)
4343

0 commit comments

Comments
 (0)