FHIDev / fhi.helseid

Fhi.HelseId component for accessing NHN HelseId
MIT License
7 stars 5 forks source link

Skip Auth header if Anonymous-Options is given to request message #380

Closed martsve closed 5 months ago

martsve commented 5 months ago

In some cases we might wish to call an API before we are authenticated (health endpoints, kodeverk, etc..).

To make the HttpAuthHandler not add authentication headers to a single request you can add an Option to the request with the key name "Anonymous"

sonarcloud[bot] commented 5 months ago

Quality Gate Failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarCloud

martsve commented 5 months ago

I have updated the wiki with the new functionallity:

https://github.com/folkehelseinstituttet/fhi.helseid/wiki/step-by-step-guide