Layer7 API Management

 View Only
  • 1.  Get custom fields through portalman?

    Posted Mar 26, 2019 10:10 AM

    Hello,

     

    Are customer fields accessible to portalman when getting details for an apikey?  I see there being a <CustomMetaData/> tag in the output.  I was hoping that application custom fields would be stored here.  However, I don't see anything in the response when i make the call.

     

    https://<host>/portalman/1/api/keys/<apikey>

     

    Is it possible to get this info. for a registered app?  I might not understand the purpose of CustomMetaData tag.    

     

    Thanks!

     

    Alejandro



  • 2.  Re: Get custom fields through portalman?

    Posted May 07, 2019 10:22 AM

    I'm pulling that data from the gateway. 

    Same as OTK Authorization Request Validation



  • 3.  Re: Get custom fields through portalman?

    Posted May 08, 2019 02:37 PM

    Thanks.  I can see how that might work.  However, I'm staring at the response from portalman and I don't see any data populated in the CustomMetaData field.  I added custom fields to the application registration form.  I was hoping to see them  appear as part of the CustomMetaData element, but they do not.  I might be misinterpreting the purpose of this field. 

     

    Here is an example response for a test api key:

     

    <l7:ApiKey>
    <l7:Key>000000000000000000000000000000000000</l7:Key>
    <l7:Status>active</l7:Status>
    <l7:Apis>
    <l7:Api apiId="00000000-0000-0000-0000-000000000000" planId="0000000000000000000000000000000000000000"/>
    </l7:Apis>
    <l7:Secret>000000000000000000000000000000000000</l7:Secret>
    <l7:AccountPlanMappingId>1</l7:AccountPlanMappingId>
    <l7:CustomMetaData/>
    <l7:Label>AClient</l7:Label>
    <l7:Platform>Standard</l7:Platform>
    <l7:Security>
    <l7:OAuth>
    <l7:CallbackUrl/>
    <l7:Scope/>
    <l7:Type/>
    </l7:OAuth>
    </l7:Security>
    </l7:ApiKey>

     

    Is this available?

     

    Thanks,

     

    Alejandro