#Bearer token to access website behind OIDC

1 messages · Page 1 of 1 (latest)

ashen heath
#

Hi,

I'm using Icinga with Authentik. I configured OIDC in Apache which works fine.
But I'd like to use the Icinga Director API via cURL (or Python, whatever is easiest).
I don't understand how I do the authentication via Authentik first.
Could someone help me out, please?

Thank you!

tame agate
#

hey, i dont have an answer to the problem but would also be interested in the solution. i would guess that you could get that working via the api and a cli based totp to get a valid token and then calling icinga while passing the token in the request.

other than that i would suggest doing a tunnel via wireguard to bypass the need to do that

or if you have a static ip you could just bypass the authentik login via your ip with apaches location block with require any and having oidc or your ip in it