Skip to content

can't get the access token #40

Description

@zhangyuxiu

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions