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

Authentication problem #2

Open
nbxtruong opened this issue Jan 10, 2020 · 2 comments
Open

Authentication problem #2

nbxtruong opened this issue Jan 10, 2020 · 2 comments

Comments

@nbxtruong
Copy link

I can get access token. But, I do not how to put it into your service. How your service read access token?

@nbxtruong
Copy link
Author

req.Header.Add("Accept", acceptHeader)
req.Header.Add("Content-Type", "application/json")
req.Header.Add("User-Agent", userAgent)

This is the request Header. It does not has 'Authorization'. I do not know how your service can make request without read 'token'

@codeofthrone
Copy link

req.Header.Add("Accept", acceptHeader)
req.Header.Add("Content-Type", "application/json")
req.Header.Add("User-Agent", userAgent)

This is the request Header. It does not has 'Authorization'. I do not know how your service can make request without read 'token'

should look like this
req.Header.Add("Authorization", tok.TokenType+" "+tok.AccessToken)

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