[Feature]: Support Legacy App based Subscriptions for Migrated Customers for Platform GW
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 71
- Forks
- 111
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 110
Description
Please select the area the issue is related to
Area/Gateway (Routing, API deployment in gateway etc.)
Please select the aspect the issue is related to
Aspect/API (API backends, definitions, contracts, interfaces, OpenAPI)
Suggested Feature
Support Legacy App based Subscriptions for Migrated Customers for Platform GW
Currently API Platform supports only Sub-Token Based Subscriptions.
Hence, need to support Legacy subscription which is JWT auth token based subscription. Currently Subscription Validation policy has two ways of validation,
- Sub-Token based validation(Already implemented - Default flow)
- No Sub Token based validation(Flow implemented for Migrated scenario)- If no sub-token is provided and if the subscription validation is enabled for the API validate the subscription with a fallback logic where subscription is validated against request context app id(can be whaterever unique to app like client-id)
Need to implement JWT Auth Policy to identify which app this JWT token belongs to and set the app-id/client-id to the request context so then by the time Subscription validation happens app-id/client-id is present in the request context.
Currently GW and Platform-API Subscriptions REST API has the ability to create subscriptions by following two approaches,
- API ID - Policy ID - Sub Token (This is default approach which is already implemented)
- API ID - Policy - App ID (Legacy approach which is not fully supported)- When a Legacy subscription is migrated Bijira Cloud to API Platform need to fully implement this REST API and websocket flows.
Also, need to implement Migration ETL tool related changes to use these REST APIs to migrate the legacy subscriptions.
Related Issues
No response
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the gateway and Platform-API subscription REST APIs, the JWT authentication policy, and the migration ETL tool mentioned in the issue. Done means legacy app-based subscriptions work through the REST and WebSocket flows, with the ETL migration changes included.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- api, authentication, backend-api-design, data-engineering
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100