open webapi results with login prompt

Hi All,

   i have created a connected services and Integration, in which am calling my WEBAPI , how to call it with authentication,

say if the wanna access this webapi this should key in their credentials, something like this.

thanks in advance

  Discussion posts and replies are publicly visible

Parents
  • Hello vineethk

    Do you need the users to enter their own user and password each time? How is the use case there?

    I just hope you are not calling a webapi from the same environment using an integration object. Please elaborate the use case.

    If I asume you are calling  webapi(outside of Appian) and you are trying to ask the users the credentials before making a call to the webapi which uses basic authentication, you can create your own screen to request those values, please define them as “secure text” request those values to the user

    In the integration ass two rule input parameters as secure text. pass those values to the integration, use the authentication directly on theintegration object as basic authentication, read the values from the rule inputs as an expression.

    I would suggest to do all that on the same screen (preferably) that way you are not passing the values around.

    Hope this helps

    Jose

Reply
  • Hello vineethk

    Do you need the users to enter their own user and password each time? How is the use case there?

    I just hope you are not calling a webapi from the same environment using an integration object. Please elaborate the use case.

    If I asume you are calling  webapi(outside of Appian) and you are trying to ask the users the credentials before making a call to the webapi which uses basic authentication, you can create your own screen to request those values, please define them as “secure text” request those values to the user

    In the integration ass two rule input parameters as secure text. pass those values to the integration, use the authentication directly on theintegration object as basic authentication, read the values from the rule inputs as an expression.

    I would suggest to do all that on the same screen (preferably) that way you are not passing the values around.

    Hope this helps

    Jose

Children