Skip to content
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 get an access token for detail #63

Open
zeguangzhang opened this issue Jun 17, 2020 · 1 comment
Open

how to get an access token for detail #63

zeguangzhang opened this issue Jun 17, 2020 · 1 comment

Comments

@zeguangzhang
Copy link

I can't understand the following:

from your token provider (oauth2.Endpoint.AuthURL):
% TOKEN=$(curl https://$USER:[email protected]/access_token)

my core code :

var TEAMS []zalando.AccessTuple = []zalando.AccessTuple{
	{"teams", "a", "a"},
}

...
...
...
router.Run(":8001")

I get token like this:
https://a:[email protected]:8001/access_token
but Could not get response. why?

@szuecs
Copy link
Member

szuecs commented Jun 19, 2020

I am sorry, we don't provide a public token provider, so token.oauth2.corp.com is just an example.
zalando module is Zalando specific and does only provide an idea how to use different auth providers. The public usable providers are google, github and I am open to review PRs for any other provider that you wish to contribute.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants