Skip to content

Question about client_credentials #940

Answered by jeevatkm
MaheshVelankar asked this question in Q&A
Discussion options

You must be logged in to vote

@MaheshVelankar

I understand that with net/http and clientcredentials we can get data from any endpoint that requires Oauth2 access token. It "internally" arranges for refresh of token and getting the data with that fresh token.

Is your question about how to use this https://pkg.go.dev/golang.org/x/oauth2/clientcredentials package with Resty?

and can we do such thing with resty ... along with specifying CA certificate?

To add CA certs (root or client root), you could use these methods.


Also, explore godoc to know more about Resty - https://pkg.go.d…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by MaheshVelankar
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #939 on January 04, 2025 07:32.