Add debug output to auth url fetch

This commit is contained in:
TheSpad
2024-01-03 17:56:41 +00:00
parent b6cf5a3569
commit ed33ad778c
+1
View File
@@ -239,6 +239,7 @@ get_auth_url() {
local scope
# Call to get manifests and extract www-authenticate header
auth_header=$(curl -sLI ${CURL_NOISE_LEVEL} "${1}/${2}" | grep -i www-authenticate | tr -d '\r')
write_debug "${auth_header}"
if [[ -n "${auth_header}" ]]; then
# Extract realm URL from www-authenticate header
realm_url=$(echo "$auth_header" | grep -oP 'realm="\K[^"]+')