Skip to content

Commit

Permalink
Migrate to new authelia api
Browse files Browse the repository at this point in the history
  • Loading branch information
nikarh committed Aug 9, 2024
1 parent 9b0d10d commit 732cfde
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ fi
# Verify that user has access to FORWARDED_HOST
curl -sf \
-b "$cookie" \
-H 'X-Original-Url: '$FORWARDED_HOST'' -H 'X-Forwarded-Method: GET' \
"$AUTHELIA_URL/api/verify"
-H "X-Original-URL: $FORWARDED_HOST" -H 'X-Original-Method: GET' \
"$AUTHELIA_URL/api/authz/auth-request"

echo "Auth verify ok"
exit 0
exit 0
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ fi
# Verify that user has access to FORWARDED_HOST
curl -sf \
-b "$cookie" \
-H 'X-Original-Url: '$FORWARDED_HOST'' -H 'X-Forwarded-Method: GET' \
"$AUTHELIA_URL/api/verify"
-H "X-Original-URL: $FORWARDED_HOST" -H 'X-Original-Method: GET' \
"$AUTHELIA_URL/api/authz/auth-request"

exit 0
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ fi
# Verify that user has access to FORWARDED_HOST
curl -sf \
-b "$cookie" \
-H 'X-Original-Url: '$FORWARDED_HOST'' -H 'X-Forwarded-Method: GET' \
"$AUTHELIA_URL/api/verify"
-H "X-Original-URL: $FORWARDED_HOST" -H 'X-Original-Method: GET' \
"$AUTHELIA_URL/api/authz/auth-request"

# Get display name
response="$(curl -sf \
Expand Down

0 comments on commit 732cfde

Please sign in to comment.