Hello, I need in the call to an external web API to pass the token, how should the call be defined? I tried it but it does not work, how is the bearer going? <property as="xs:string" name="oxf.fr.detail.process.save.*.*"> require-valid then save then confirm then suspend then send( uri="http://111.222.33.22:90/api/V1.0/Orbeon/PostFormValues/{xxf:instance('fr-parameters-instance')/app}/{xxf:instance('fr-parameters-instance')/form}/{xxf:instance('fr-parameters-instance')/document}/{xxf:instance('fr-parameters-instance')/form-version}/{xxforms:get-request-parameter('idFormRelease')}/{xxforms:get-request-parameter('idUser')}/{xxforms:get-request-parameter('userRole')}/{xxforms:get-request-parameter('idService')}/{xxforms:get-request-parameter('idCall')}/{xxforms:get-request-parameter('idEmployee')}", method="POST", content="xml", content-type="application/xml", authorization ="bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJMb2dpbk5hbWUiOiJ3aWRnZXQiLCJJc29Db3VudHJ5Q29kZSI6IklUIiwidXNlckRiSWQiOiIwIiwiQ09OX09yYmVvbiI6IlJlYWRXcml0ZSIsIm5iZiI6MTUxODQ0MTk5MCwiZXhwIjoyMTQ3NDY4NDAwLCJpYXQiOjE1MTg0NDE5OTAsImlzcyI6Imh0dHA6Ly9sb2NhbGhvc3QiLCJhdWQiOiJEZW1vQXVkaWVuY2UifQ.D07XueeiGYvvvh-_oDHBbZarNY34GkcB4ecILwgAG8NF58j62h5JL6_YP_QTIvqxJ-wQ5zZbgy9T9GxBT930_y29BN3ZCrq_UKZcowYih2vvNZEA_uDDIBNlsHdtS6CcUeboleIPZu2dcYq7CM5LR7fVGQNxq2XxElPJ_F-qeZFTg_WR72ClH5B0R_Oa-sP1VxXVIsXYDtrvrTcLIgJJYhKrwrlqQllD6dfHRgBXsVAEXzS2TbMaVJX8OENkxfm0OunNtUbDLrEhBD2f06HWJJTyb9TX3VWrKFI8xTWHw7kUJPqwtRvnoNL5qKljJHBmzE5vnNSPiDjjljVfXoLVrg" ) then navigate("/Apps/Closing/FormClose.html") </property> -- Sent from: http://discuss.orbeon.com/ -- You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. |
Administrator
|
Hi Fabio,
Your service uses basic authentication (passing an `Authorization` header), correct? Assuming this is the case, you can use the following syntax as the value of the `uri` parameter: http://username:password@111.222.33.22:90/… You'll let me know if this works for you. Alex ----- -- Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet -- Sent from: http://discuss.orbeon.com/ -- You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Administrator
|
Hi Fabio,
Did you get a chance to try the `username:password@host` syntax with the `send()`? Did it work for you? Alex ----- -- Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet -- Sent from: http://discuss.orbeon.com/ -- You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Hi Alex,
i want send Authorization Bearer without username and passowrd. -- Sent from: http://discuss.orbeon.com/ -- You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. |
Administrator
|
Hi Fabio,
Just to be clear, if you use that `username:password@host` syntax, Orbeon Forms will set the `Authorization` header with a value that encodes the username/password you specified. Are you saying that this isn't what you're looking for? Alex ----- -- Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet -- Sent from: http://discuss.orbeon.com/ -- You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Free forum by Nabble | Edit this page |