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

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

Open
olizarevichroman opened this issue Aug 22, 2022 · 0 comments

Comments

@olizarevichroman
Copy link

olizarevichroman commented Aug 22, 2022

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)

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