default password change
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
STATUS_CODE="$(curl -s -o /dev/null -w '%{http_code}' http://imxc-keycloak-http/auth/realms/exem)"
|
||||
|
||||
if [ $STATUS_CODE -eq 404 ]; then
|
||||
TOKEN="$(curl -s -d "client_id=admin-cli" -d "username=admin" -d "password=admin" -d "grant_type=password" http://imxc-keycloak-http/auth/realms/master/protocol/openid-connect/token | jq -r '.access_token')"
|
||||
TOKEN="$(curl -s -d "client_id=admin-cli" -d "username=admin" -d "password=cmoaA13!#" -d "grant_type=password" http://imxc-keycloak-http/auth/realms/master/protocol/openid-connect/token | jq -r '.access_token')"
|
||||
|
||||
echo $TOKEN
|
||||
|
||||
@@ -17,7 +17,7 @@ if [ $STATUS_CODE -eq 404 ]; then
|
||||
|
||||
echo "create admin and owner"
|
||||
# create admin and owner
|
||||
curl -s -v POST -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d '{"firstName":"","lastName":"", "username":"admin","email":"admin@example.com", "enabled":"true","credentials":[{"type":"password","value":"admin","temporary":false}]}' http://imxc-keycloak-http/auth/admin/realms/exem/users
|
||||
curl -s -v POST -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d '{"firstName":"","lastName":"", "username":"admin","email":"admin@example.com", "enabled":"true","credentials":[{"type":"password","value":"cmoaA13!#","temporary":false}]}' http://imxc-keycloak-http/auth/admin/realms/exem/users
|
||||
curl -s -v POST -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d '{"firstName":"","lastName":"", "username":"owner","email":"owner@example.com", "enabled":"true","credentials":[{"type":"password","value":"admin","temporary":false}]}' http://imxc-keycloak-http/auth/admin/realms/exem/users
|
||||
|
||||
JWT_KEY="$(curl -s -XGET http://imxc-keycloak-http/auth/realms/exem | jq -r '.public_key')"
|
||||
|
||||
@@ -86,7 +86,7 @@ global:
|
||||
KEYCLOAK_AUTH_SERVER_URL: http://111.111.111.111:31082/auth
|
||||
KEYCLOAK_RESOURCE: authorization_server
|
||||
KEYCLOAK_MASTER_USERNAME: admin
|
||||
KEYCLOAK_MASTER_PASSWORD: admin
|
||||
KEYCLOAK_MASTER_PASSWORD: cmoaA13!#
|
||||
IMXC_PORTAL_INFO_URL:
|
||||
KEYCLOAK_REALM: exem
|
||||
# added by EunHye Kim 2021-08-25
|
||||
|
||||
Reference in New Issue
Block a user