Layer7 API Management

Expand all | Collapse all

creating authorization: Basic header and redirect

Jump to Best Answer
  • 1.  creating authorization: Basic header and redirect

    Posted 11-16-2017 04:43 AM

    Hi,

     

    I have a requirement where i need to create a basic Authorization header using values that i will be storing in context variables and passing it to app endpoint that requires AZ header.

     

    The values that i will be storing in context variables  will be available through http_headers. Is there any assertion available that can be used for this ? I tried looking into assertions but dint find any. 

     

    Thanks in advance.

     

    Regards,

    Yatin..



  • 2.  Re: creating authorization: Basic header and redirect
    Best Answer

    Posted 11-16-2017 09:21 AM

    Hi Yatin,

     

     

    Have you consider using the HTTP Credentials option of the HTTP route assertion?

    We also have the below two assertions that can be used to base64 encode the credentials and add a header depending on your exact use case.

     

    Encode/Decode Data Assertion - CA API Gateway - 9.2 - CA Technologies Documentation 

    Manage Transport Properties/Headers Assertion - CA API Gateway - 9.2 - CA Technologies Documentation