Taiga#458: fixing exception with real JWT from HS Keycloak OIDC (#220)
Co-authored-by: Michael Hoennig <michael@hoennig.de> Reviewed-on: https://dev.hostsharing.net/hostsharing/hs.hsadmin.ng/pulls/220 Reviewed-by: Marc Sandlus <hsh-marcsandlus@noreply.dev.hostsharing.net> Co-authored-by: Michael Hoennig <michael.hoennig@hostsharing.net> Co-committed-by: Michael Hoennig <michael.hoennig@hostsharing.net>
This commit is contained in:
committed by
Timotheus Pokorra
parent
28eebbc95a
commit
a1bac0f764
+2
-2
@@ -100,12 +100,12 @@ function jwtLogin() {
|
||||
fi
|
||||
|
||||
# OAuth2 Resource Owner Password Credentials Grant (public client)
|
||||
trace "+ curl --fail-with-body --show-error -X POST \
|
||||
trace "+ curl --no-progress-meter --fail-with-body --show-error -X POST \
|
||||
-H 'Content-Type: application/x-www-form-urlencoded' \
|
||||
-d \"grant_type=password&client_id=$HSADMINNG_JWT_CLIENT_ID&client_secret=$HSADMINNG_JWT_CLIENT_SECRET&username=$HSADMINNG_JWT_USERNAME&password=$HSADMINNG_JWT_PASSWORD_DISPLAY\" \
|
||||
$HSADMINNG_JWT_TOKEN_URL -o ~/.jwt-token.response"
|
||||
|
||||
JWT_RESPONSE=$(curl --fail-with-body --show-error -X POST \
|
||||
JWT_RESPONSE=$(curl --no-progress-meter --fail-with-body --show-error -X POST \
|
||||
-H 'Content-Type: application/x-www-form-urlencoded' \
|
||||
-d "grant_type=password&client_id=$HSADMINNG_JWT_CLIENT_ID&client_secret=$HSADMINNG_JWT_CLIENT_SECRET&username=$HSADMINNG_JWT_USERNAME&password=$HSADMINNG_JWT_PASSWORD_DISPLAY" \
|
||||
$HSADMINNG_JWT_TOKEN_URL 2>&1 | tee ~/.jwt-token.response)
|
||||
|
||||
Reference in New Issue
Block a user