api-manager icon indicating copy to clipboard operation
api-manager copied to clipboard

Application Subscription errors in Prototype APIs

Open thivindu opened this issue 3 months ago • 6 comments

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

  1. From the publisher portal, Create a new API with security enabled for all resources, deploy it and then pre release it.
  2. Inside the Dev Portal create an application.
  3. From the dev portal, select the created application and go to the subscriptions page and click subscribe button in the Subscribed APIs section.
  4. Observe that the prototype API does not appear in the API list to be subscribed.

  1. In the publisher portal go to the previously created API and disable security for all resources. Save and redeploy the API.
  2. In the devportal to to the created API and click tryout in api console.
  3. 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 avatar Sep 19 '25 11:09 thivindu

@thivindu, @tharikaGitHub Can I take this issue.

Sivasuthan9 avatar Oct 01 '25 10:10 Sivasuthan9

Hi @Sivasuthan9 I have assigned this issue to you. You can start working on it.

tharikaGitHub avatar Oct 01 '25 10:10 tharikaGitHub

Hi @Sivasuthan9 how is the progress of this issue?

tharikaGitHub avatar Oct 09 '25 06:10 tharikaGitHub

@tharikaGitHub working on this, pr will be soon

Sivasuthan9 avatar Oct 10 '25 06:10 Sivasuthan9

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?

pavinduLakshan avatar Oct 20 '25 04:10 pavinduLakshan

Hi @Sivasuthan9 Do you have any update on the progress of this issue?

tharikaGitHub avatar Oct 28 '25 12:10 tharikaGitHub