Layer7 API Management

 View Only

 How to register OAuth client information through portalman

daesik park's profile image
daesik park posted Mar 07, 2024 02:53 AM

hello.
Is there a way to register OAuth client information without going through OAuth Manager?

I would like to register OAuth Client information through /portalman/1/api/keys. How is this possible?

Gregory Thompson's profile image
Broadcom Employee Gregory Thompson

Are you using the API Portal? If so, there are Portal APIs (PAPI) for this. If you're just using OTK without portal, then there is the Dynamic Client Registration endpoints provided. If you can provide some more context we can help point you in the right direction.

daesik park's profile image
daesik park
Thank for your good answer.
 
I am not using API Portal.
However, I was wondering if there was a way to register an OAuth client at the same time when registering an app using Portalman. This is because there was OAuth-related information in the Security tag in the message through Portalman.
 
What I wanted was to use the same APP key and OAuth Client_Id when registering the APP with a single registration.
 
 
[Partial text of App registration]
<l7:Security>
             <l7:OAuth> <l7:CallbackUrl>https://HOST:8443/oauth/v2/client/authcode,https://HOST:8443
  /oauth/v2/client/implicit</l7:CallbackUrl>
                 <l7:Scope>oob</l7:Scope>
                 <l7:Type>confidential</l7:Type>
             </l7:OAuth>
         </l7:Security>
Gregory Thompson's profile image
Broadcom Employee Gregory Thompson

OK, the portalman endpoint is meant as a private endpoint to be used by the portal to communicate with the gateway. You really should not use portalman directly (it's not documented for external use). It would be helpful to better understand what you are trying to achieve and why you would use the portal. Without portal, you should really use OTK Dynamic Client Registration directly and publish APIs to the gateway using Graphman or Restman.