Skip to content

oauth2-vanilla got "invalid_token" error #150

Closed
@bjdaijun

Description

@bjdaijun

here is my step:

curl acme:acmesecret@localhost:9999/uaa/oauth/token -d "grant_type=password&scope=openid&username=user&password=password"
{"access_token":"470d15dd-0235-4f19-acd2-81e781793d9a","token_type":"bearer","refresh_token":"4a4fb790-10c0-4d24-9217-d1e35b3b95a6","expires_in":9,"scope":"openid"}
TOKEN=470d15dd-0235-4f19-acd2-81e781793d9a
curl -H "Authorization: bearer $TOKEN" localhost:9000
{"error":"invalid_token","error_description":"470d15dd-0235-4f19-acd2-81e781793d9a"}
curl -H "Authorization: bearer $TOKEN" localhost:8080/resource

NO RESULT

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions