Skip to content

Commit

Permalink
Add exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
Johennes committed Aug 8, 2024
1 parent 17c5efc commit 2f67575
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
19 changes: 17 additions & 2 deletions .github/actions/lint-jsonschema/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ runs:
- name: Verify links
shell: bash
run: |
function warn {
>&2 echo -e "\033[0;33m$@\033[0m"
}
function err {
>&2 echo -e "\033[0;31m$@\033[0m"
}
Expand All @@ -72,8 +76,19 @@ runs:
if ! curl -X OPTIONS --silent --fail "$location" 2>&1 > /dev/null; then
if ! curl --head --silent --fail "$location" 2>&1 > /dev/null; then
if ! curl --silent --fail "$location" 2>&1 > /dev/null; then
err "$file references non-existent location $location"
rc=1
# Some URLs are examples or the endpoints helpfully support neither OPTIONS nor HEAD
if [[ "$location" =~ *example* ]] || \
[[ "$location" = https://idp-ref.app.ti-dienste.de/auth ]] || \
[[ "$location" = https://idp.app.ti-dienste.de/auth ]] || \
[[ "$location" = https://idp-ref.app.ti-dienste.de/token ]] || \
[[ "$location" = https://idp.app.ti-dienste.de/token ]] || \
[[ "$location" = https://idp-ref.app.ti-dienste.de ]];
then
warn "$file references non-verifiable location $location"warn
else
err "$file references non-existent location $location"
rc=1
fi
fi
fi
fi
Expand Down
2 changes: 1 addition & 1 deletion docs/Fachdienst/Registrierungsdienst.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ Für die Signatur des `RegService-OpenID-Token` ist der private Schlüssel des l
TIP: *VZD-FHIR-Directory* Endpunkte: +
- TU: https://fhir-directory-test.vzd.ti-dienste.de/owner-authenticate +
- RU: https://fhir-directory-ref.vzd.ti-dienste.de/owner-authenticate +
- PU: https://vzd-fhir-directory.vzd.ti-dienste.de/owner-authenticate
- PU: https://fhir-directory.vzd.ti-dienste.de/owner-authenticate

=== Austausch des RegService-OpenID-Token
Das `RegService-OpenID-Token` kann am `/owner-authenticate`-Endpunkt des *Auth-Service* gegen ein `owner-accesstoken` eingetauscht werden.
Expand Down

0 comments on commit 2f67575

Please sign in to comment.