Skip to content

"Spaces" and "AuthorizedUserId" are not considered when granting token #155

@olizarevichroman

Description

@olizarevichroman

In 6.0.8 release both GrantTokenOperation.AuthorizedUuid and PNTokenPermissionMappingBase.Channels are marked with [Obsolete] attribute and it's recommended to use GrantTokenOperation.AuthorizedUserId and PNTokenPermissionMappingBase.Spaces accordingly. But neither Spaces nor AuthorizedUserId are taken into account when granting access token.

When using Spaces instead of Channel server returns 400 status code with error message This grant contains no permissions. Usage of AuthorizedUserId instead of AuthorizedUuid results in the loss of information about the authorized user in access token (value of authorized_uuid property of parsed access token is null)

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