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

can't get the access token #40

Open
zhangyuxiu opened this issue Jan 7, 2013 · 0 comments
Open

can't get the access token #40

zhangyuxiu opened this issue Jan 7, 2013 · 0 comments

Comments

@zhangyuxiu
Copy link

When I am trying to get the access token by the following way:

curl -i http://localhost:3000/oauth/token
-H "Accept: application/json"
-X POST -d '{
"code": "g2VDXwrT0S6iZeUeYQBYi2stxRy",
"grant_type": "authorization_code",
"client_id": "http://localhost:30000/clients/a918F2fs3",
"client_secret": "a34a7afe4731e745de9d61iZeUeY"
}'

I got the following answers,instead of infomation including an access token:

HTTP/1.1 302 Found
Location: http://localhost:3000/
Content-Type: text/html; charset=utf-8
Cache-Control: no-cache
X-Ua-Compatible: IE=Edge
X-Runtime: 0.396399
Server: WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
Date: Mon, 07 Jan 2013 16:00:13 GMT
Content-Length: 88
Connection: Keep-Alive
Set-Cookie: _lelylan_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFRiIlYTlkMGZhZmEwNDlhNDlmY2UzZjdjZWY1MDBkMTM0MGVJIgpmbGFzaAY7AEZJQzolQWN0aW9uRGlzcGF0Y2g6OkZsYXNoOjpGbGFzaEhhc2h7BjoKYWxlcnRJIhNKc29uIG5vdCB2YWxpZAY7AEYGOgpAdXNlZG86CFNldAY6CkBoYXNoewA%3D--8ec07234d92ed18474760fab9b206d9137ffa24e; path=/; HttpOnly

When I am trying the command: curl http://localhost:3000/ .I also can't get the access token.
Do you know what the problem is?

I am looking forward to your reply.

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

1 participant