I have my service set behind oauth2-proxy and I am using version 4.0.0.
I am trying to hit an API behind the service, but unfortunately, I always get a 403 forbidden
error because of oauth2-proxy being in the way.
I am looking for a way to authenticate via g-suite using oauth2-proxy
and generate a token that I can then use for the service.
Does oauth2-proxy
support any kind of way to authenticate via cURL or POST call?
It feels to me that your deployment separation is not right. OAuth has a strong focus on separation of web and API concerns. The oauth2-proxy
utility is a web client and should not be deployed in front of APIs since that can limit your options.
SUBOPTIMAL DEPLOYMENT
OPTIMIZED DEPLOYMENT
If I'm misunderstanding anything, maybe clarify your question and post back.