how to get auth code and tokens using curl request
Hi I am using jenkins to invoke a curl request. The issue that I have is that I cannot access the auth code from the request. Is there a way I can access the auth code via curl script. The ultimate goal is to use the intermediate the code to get the relevant auth and reset token, to allow access to the BOX resource. Alternatively I can use Python SDK - but does it allow for handling the auth code request in a better way. Please advise.
-
Getting an auth code via curl is somewhat challenging when using the standard OAuth2 mechanism, due to the web login flow. If it works for your use case, I would recommend using the JWT Authentication mechanism, which is better suited for server-to-server use cases.
Please sign in to leave a comment.
Comments
1 comment