-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Ability to curl with cached access token #334
Comments
@ac111 you could go to your browsers network tab and "copy as curl" The link will contain the cookie which curl can use to auth. |
Thanks for the suggestion! This works nicely -- wondering if you have any experience in generating the token programmatically in a similar way to generate the request? |
I'm not sure how to generate the token, but I can recommend an alternative that works for me: Use the nginx auth_request option(see bottom of readme). With the above setup, the reverse proxy can authenticate with either a valid JWT token or through the normal oauth request strategy in the browser. |
Thanks, I'll give this a try! Much appreciated |
@ac111 I'm trying to achieve something similar as well - do you think it would be possible to leverage Google service accounts for this? Very interested to hear if you can make this work. @groob, how do you generate your JWT tokens? |
Same question @groob could you share how do you do this with JWT? |
Just a general question (quite new to using oauth2) -- I have an auth2 proxy server (google auth) running locally and proxying requests to an upstream Nexus server. I can successfully authenticate using a standard browser, and can re-use the session to download artifacts from a Nexus repo. Is there a way to perform a similar artifact download using curl or wget by re-using a token?
The text was updated successfully, but these errors were encountered: