Skip to content

Commit 73dbce0

Browse files
Ilyas GasanovIlyasDevelopment
authored andcommitted
Fix keycloak docs
1 parent 8f94d5f commit 73dbce0

File tree

4 files changed

+32
-29
lines changed

4 files changed

+32
-29
lines changed

config.docker.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,14 @@ auth:
1818

1919
# Keycloak Auth
2020
# provider: syncmaster.server.providers.auth.keycloak_provider.KeycloakAuthProvider
21-
# server_url: http://keycloak:8080
22-
# realm_name: manually_created
23-
# client_id: manually_created
24-
# client_secret: generated_by_keycloak
25-
# redirect_uri: http://localhost:3000/auth/callback
26-
# scope: email
27-
# verify_ssl: False
21+
# keycloak:
22+
# server_url: http://keycloak:8080
23+
# realm_name: manually_created
24+
# client_id: manually_created
25+
# client_secret: generated_by_keycloak
26+
# redirect_uri: http://localhost:3000/auth/callback
27+
# scope: email
28+
# verify_ssl: False
2829

2930

3031
ui:
@@ -51,7 +52,6 @@ server:
5152
expose_headers: [X-Request-ID, Location, Access-Control-Allow-Credentials]
5253

5354

54-
5555
scheduler:
5656
transfer_fetching_timeout_seconds: 200
5757

config.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,14 @@ auth:
1818

1919
# Keycloak Auth
2020
# provider: syncmaster.server.providers.auth.keycloak_provider.KeycloakAuthProvider
21-
# server_url: http://localhost:8080
22-
# realm_name: manually_created
23-
# client_id: manually_created
24-
# client_secret: generated_by_keycloak
25-
# redirect_uri: http://localhost:3000/auth/callback
26-
# scope: email
27-
# verify_ssl: False
21+
# keycloak:
22+
# server_url: http://localhost:8080
23+
# realm_name: manually_created
24+
# client_id: manually_created
25+
# client_secret: generated_by_keycloak
26+
# redirect_uri: http://localhost:3000/auth/callback
27+
# scope: email
28+
# verify_ssl: False
2829

2930

3031
ui:

syncmaster/server/settings/auth/keycloak.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,14 @@ class KeycloakAuthProviderSettings(BaseModel):
2525
2626
auth:
2727
provider: syncmaster.server.providers.auth.keycloak_provider.KeycloakAuthProvider
28-
server_url: http://localhost:8080/auth
29-
client_id: my_keycloak_client
30-
client_secret: keycloak_client_secret
31-
realm_name: my_realm
32-
redirect_uri: http://localhost:8000/auth/realms/my_realm/protocol/openid-connect/auth
33-
verify_ssl: false
34-
scope: openid
28+
keycloak:
29+
server_url: http://localhost:8080/auth
30+
client_id: my_keycloak_client
31+
client_secret: keycloak_client_secret
32+
realm_name: my_realm
33+
redirect_uri: http://localhost:8000/auth/realms/my_realm/protocol/openid-connect/auth
34+
verify_ssl: false
35+
scope: openid
3536
"""
3637

3738
keycloak: KeycloakSettings = Field(

syncmaster/server/settings/auth/oauth2_gateway.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,14 @@ class OAuth2GatewayProviderSettings(BaseModel):
1616
1717
auth:
1818
provider: syncmaster.server.providers.auth.oauth2_gateway_provider.OAuth2GatewayProvider
19-
server_url: http://localhost:8080/auth
20-
client_id: my_keycloak_client
21-
client_secret: keycloak_client_secret
22-
realm_name: my_realm
23-
redirect_uri: http://localhost:8000/auth/realms/my_realm/protocol/openid-connect/auth
24-
verify_ssl: false
25-
scope: openid
19+
keycloak:
20+
server_url: http://localhost:8080/auth
21+
client_id: my_keycloak_client
22+
client_secret: keycloak_client_secret
23+
realm_name: my_realm
24+
redirect_uri: http://localhost:8000/auth/realms/my_realm/protocol/openid-connect/auth
25+
verify_ssl: false
26+
scope: openid
2627
"""
2728

2829
keycloak: KeycloakSettings = Field(

0 commit comments

Comments
 (0)