Browse Source

keycloak cloud config

cloud-keycloak
Dmitriy Sim 3 years ago
parent
commit
b2ed596b68
2 changed files with 3 additions and 3 deletions
  1. +1
    -1
      demo-client-app/src/index.js
  2. +2
    -2
      demo-resource-server/src/main/resources/application.yml

+ 1
- 1
demo-client-app/src/index.js View File

@ -7,7 +7,7 @@ import reportWebVitals from './reportWebVitals';
import Keycloak from "keycloak-js"; import Keycloak from "keycloak-js";
const initOptions = { const initOptions = {
url: 'http://localhost:8080/auth', realm: 'demorealm', clientId: 'react-app', onLoad: 'login-required'
url: 'https://keycloak.cloud.teslametric.com/auth', realm: 'demorealm', clientId: 'react-app', onLoad: 'login-required'
} }
const keycloak = Keycloak(initOptions); const keycloak = Keycloak(initOptions);


+ 2
- 2
demo-resource-server/src/main/resources/application.yml View File

@ -18,5 +18,5 @@ spring:
oauth2: oauth2:
resourceserver: resourceserver:
jwt: jwt:
issuer-uri: http://localhost:8080/auth/realms/demorealm
jwk-set-uri: http://localhost:8080/auth/realms/demorealm/protocol/openid-connect/certs
issuer-uri: https://keycloak.cloud.teslametric.com/auth/realms/demorealm
jwk-set-uri: https://keycloak.cloud.teslametric.com/auth/realms/demorealm/protocol/openid-connect/certs

Loading…
Cancel
Save