-
Notifications
You must be signed in to change notification settings - Fork 293
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to create Authorizer (and client) without doing authorization in Go? #134
Comments
What happens if you pass an empty string to NewAuthenticator? By the way, #123 shows how you can pass a pre-initialized http client into this library. You could just initialize yours by creating the client, setting up OAuth2 on it and passing the created http client in. |
Pardon me for necro-ing this issue but I believe this might be useful.
|
This issue has been stalling here for quite some time, but anyways can be helpful I just opened this PR #172 that showcases this use case. |
I'm going to go ahead and close as @bretanac93's demo shows this. If this re-occurs, please open a new ticket. |
I use javascript (frontend) to do the authorization. Now I want to use Go as backend and use this client to do API calls against the Spotify API.
In this example: https://github.com/zmb3/spotify/blob/master/examples/authenticate/authcode/authenticate.go you do the authentication and stuff in go.
How can I initialize
auth
without doing the newAuthorization in Go?client := auth.NewClient(tok)
Currently I have it working but I still need to define the callback URL in the auth section while I would think it's unnecessary in my case:
The text was updated successfully, but these errors were encountered: