st2 icon indicating copy to clipboard operation
st2 copied to clipboard

Ability to add a bearer token for authorization for st2client

Open cwilson21 opened this issue 1 year ago • 1 comments

With the introduction of Stackstorm-k8s, comes features of systems like Google with IAP. I want to be able to use st2client with IAP , to do this there needs to be the ability to add a header to all requests , an Authorization header with a bearer token that can be retrieved via gcloud commands.

Authorization: Bearer $token

It would be super nice if this is something that someone might be able to add, I am going to look into doing so however.

cwilson21 avatar Jul 13 '24 02:07 cwilson21

This might be a moot thing, I tried doing this only to realize that st2auth transforms said header and tries to use it for authorization to Stackstorm, which would not allow for this to work anyway.

cwilson21 avatar Jul 15 '24 22:07 cwilson21