Skip to content
This repository was archived by the owner on May 31, 2022. It is now read-only.

Issue with RemoteTokenServices decoding the /oauth/check_token result #976

Closed
@calebkiage

Description

@calebkiage

I've set up an authorization server and a resource server to use the remote token services on spring boot.
The authorization server returns the xml below from the /oauth/check_token endpoint:

<Map>
    <aud>resource_1</aud>
    <aud>resource_2</aud>
    <exp>1487025250</exp>
    <user_name>[email protected]</user_name>
    <authorities>ROLE_ADMIN</authorities>
    <authorities>ROLE_USER</authorities>
    <client_id>client_1</client_id>
    <scope>read</scope>
    <scope>write</scope>
</Map>

The issue is that the decoded authentication doesn't decode the authorities and scopes correctly. It seems to convert the list to a string by taking the last item so the authentication only has the ROLE_USER authority and the write scope.

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