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

Add support for scope validation for Opaque tokens in Websocket and GraphQL subscription APIs #1331

Closed
dushaniw opened this issue Jan 27, 2023 · 1 comment

Comments

@dushaniw
Copy link
Contributor

Problem

Currently WSO2 API-M 4.2 supports JWT tokens by default. Even though Opaque tokens are deprecated, they are may be cases where users are migrating from older Opaque toke issuer apps. Prior to API-M 4.x, Websocket APIs did not support scopes. However, if a user prior to 4.x, who were using Opaque tokens for Websocket APIs migrate to 4.2, they may get a requirement to add new scopes to old resources and try them with old apps which generate opaque tokens.

Currently we API-M 4.2 does not support scopes for Websocket APIs as well as GraphQL subscriptions (which works on top of Websocket API) with Opaque tokens.

Solution

Support Scope validation for Opaque tokens during Websocket handshake.
Support Scope validation for Opaque tokens during GraphQL subscription operation frame read.

Affected Component

APIM

Version

4.2

Implementation

No response

Related Issues

No response

Suggested Labels

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants