You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
authUrl="http://keycloak:8080/auth"// keycloak server internal url
54
-
publicUrl="http://localhost:28080/auth"// keycloak server public url (jwt issuer)
55
-
origin="http://localhost:3000"// request origin, note: it is optional, if request doesn't have Origin header it is not validated
52
+
realmId="user-management"// keycloak realm name
53
+
authUrl="http://keycloak:8080/auth"// keycloak server internal url
54
+
origin="http://localhost:3000"// request origin, note: it is optional, if request doesn't have Origin header it is not validated
56
55
)
57
56
58
57
realmInfo:= auth.KeycloakRealmInfo{
59
58
RealmId: realmId,
60
59
AuthServerInternalUrl: authUrl,
61
-
AuthServerPublicUrl: publicUrl,
62
60
}
63
61
64
62
authorizer, err:=auth.NewKeycloakAuthorizer(realmInfo, authorizerKeycloakMock) // NOTE: authorizerKeycloakMock only used for mocking keycloak cert response in this example, do not use outside tests!
authUrl="http://keycloak:8080/auth"// keycloak server internal url
106
-
publicUrl="http://localhost:28080/auth"// keycloak server public url (jwt issuer)
107
-
origin="http://localhost:3000"// request origin, note: it is optional, if request doesn't have Origin header it is not validated
102
+
realmId="user-management"// keycloak realm name
103
+
authUrl="http://keycloak:8080/auth"// keycloak server internal url
104
+
origin="http://localhost:3000"// request origin, note: it is optional, if request doesn't have Origin header it is not validated
108
105
)
109
106
110
107
realmInfo:= auth.KeycloakRealmInfo{
111
108
RealmId: realmId,
112
109
AuthServerInternalUrl: authUrl,
113
-
AuthServerPublicUrl: publicUrl,
114
110
}
115
111
116
112
authorizer, err:=auth.NewKeycloakAuthorizer(realmInfo, authorizerKeycloakMock) // NOTE: authorizerKeycloakMock only used for mocking keycloak cert response in this example, do not use outside tests!
0 commit comments