Application Subscription errors in Prototype APIs
Description
APIs with security enabled require an application to be subscribed and generate tokens from a subscribed application to invoke. This applies to pre released (prototype) APIs with security enabled in resources as well. However, prototype APIs do not show up in the Subscribed APIs section API Subscriptions page of an application in devportal. Therefore cannot generate token from an application and subscription validation fails when trying to invoke the API.
https://github.com/user-attachments/assets/5da03bff-2ef3-4c10-a911-2a2dc07d472f
APIs without security enabled do not require an application to be subscribed and generate tokens from a subscribed application to be invoked. These can be invoked without a token and tokens from applications that are not subscribed to the API too. But, a warning "Please subscribe to an application" is displayed in api console in tryout in dev portal. The issue of prototype APIs do not show up in the Subscribed APIs section API Subscriptions page of an application in devportal is still there in this case too.
https://github.com/user-attachments/assets/5defa3c3-8274-4a9d-83ae-72c8df7a36e5
Steps to Reproduce
- From the publisher portal, Create a new API with security enabled for all resources, deploy it and then pre release it.
- Inside the Dev Portal create an application.
- From the dev portal, select the created application and go to the subscriptions page and click subscribe button in the Subscribed APIs section.
- Observe that the prototype API does not appear in the API list to be subscribed.
- In the publisher portal go to the previously created API and disable security for all resources. Save and redeploy the API.
- In the devportal to to the created API and click tryout in api console.
- Observe that a warning "Please subscribe to an application" is displayed in the security section in the tryout console.
Version
4.6.0 - Alpha2
Environment Details (with versions)
No response
@thivindu, @tharikaGitHub Can I take this issue.
Hi @Sivasuthan9 I have assigned this issue to you. You can start working on it.
Hi @Sivasuthan9 how is the progress of this issue?
@tharikaGitHub working on this, pr will be soon
Hi @Sivasuthan9, hope everything is going well on your side. Were you able to open a PR for this task? If yes, could you please mention it here so that the team can review and share feedback?
Hi @Sivasuthan9 Do you have any update on the progress of this issue?