traefik-forward-auth icon indicating copy to clipboard operation
traefik-forward-auth copied to clipboard

Is there an oauth endpoint to get the userinfo?

Open mcleantom opened this issue 3 years ago • 1 comments

On the oauth2-proxy proxy, there is an endpoint to get the userinfo:

/oauth2/userinfo - the URL is used to return user's email from the session in JSON format.

Is there an equivalent way of doing this with traefik-forward-auth?

mcleantom avatar Jan 26 '22 15:01 mcleantom

There is a header that traefik-forward-auth puts in for you that you can leverage: X-Forwarded-User: [email protected]

levex avatar Feb 16 '22 10:02 levex