[go-nuts] Consume RESTful API Endpoints within a golang application with webtoken

2020-03-14 Thread 'Ingo Oeser' via golang-nuts
I can only recommend https://pkg.go.dev/golang.org/x/oauth2/clientcredentials?tab=doc if you are implementing that. Configure clientcredentials.Config and use the http.Client returned by the Client method of that Config to do all your http calls. It manages all the token refreshing automatical

Re: [go-nuts] Consume RESTful API Endpoints within a golang application with webtoken

2020-03-11 Thread 'Benjamin' via golang-nuts
Easy, Store the expired time in the token, and hash them. When the expired time almost reach, use the old token to get a new token. > On Mar 12, 2020, at 09:25, Renato Marcandier > wrote: > > Hello guys, > do you have any HelloWorld project in GO using RESTful to issue HTTP requests > from wi

[go-nuts] Consume RESTful API Endpoints within a golang application with webtoken

2020-03-11 Thread Renato Marcandier
Hello guys, do you have any HelloWorld project in GO using RESTful to issue HTTP requests from within a Golang application to remote RESTful/API with web token that expires every 60 minutes and then consume any data that is returned? I am trying to get a simple HelloWorld. First, I need to do a P