Hello Frederic,
Try using the "Set" Action of the "Credentials" Business Object. Within the input parameters of this action set the "Password" value with your derived "Token" value.
I was recently told that the password input is also mapped to the Token when bearer token credential type is used. I test this and it appears to work for me. Also please be sure to consider the Preconditions:
-A credentials key must be defined within this Blue Prism environment
-Credentials with the specified name must exist
-The credentials must be accessible to the running user, process and resource
Let me know if this works for you.
------------------------------
Regards,
David Flores
Sr. Product Consultant
blue prism
------------------------------
Original Message:
Sent: 01-14-2020 03:08
From: Frederic Taes
Subject: Bearer Token Credential
Hi David,
Thanks for the document. We already checked this out. Unfortunately, this doesn't cover our needs, as we are trying to retrieve a token via a custom authentication method, and subsequently write it to a Blue Prism Credential. As we don't seem to find any method of doing so, we're stuck. Hence my above question: tokens/credentials can only be read, and not written to ?
Kind regards,
Frederic
------------------------------
Frederic Taes
Original Message:
Sent: 01-13-2020 17:11
From: David Flores
Subject: Bearer Token Credential
Hello Frederic,
Please review our documentation on Bearer tokens found on page 18 of the linked document from on our BP Portal:
https://portal.blueprism.com/system/files/documents/v6.4%20User%20Guide%20-%20Web%20APIs_2.pdf
Essentially, the Bearer Token Credential type: "Caters for situations where the token has already been obtained and needs to be sent in the authorization header."
However, I believe what will help your situation is our Custom Credentials, which allow bespoke authentication methods to be used in Blue Prism. More details on this Custom method can be found on page 22 of the same document mentioned above.
Let me know if this helps with your situation?
------------------------------
Regards,
David Flores
Sr. Product Consultant
blue prism
Original Message:
Sent: 10-21-2019 08:13
From: Frederic Taes
Subject: Bearer Token Credential
Dear @Blueprism Support,
We're trying to use the bearer token Credential type. We are trying to fill the Credential with the value of a token we retrieve programmatically.
However, the Credential VBO does not support any interaction with a Credential that doesn't contain username/password.
Does this mean Blue Prism does not support the interaction with other types of Credentials ? A.k.a. a bearer token Credentials can only be hardcoded and read, not written to ?
Kind regards,
------------------------------
Frederic Taes
------------------------------