Scripted rest api authorization header is encrypted

Community Alums
Not applicable

Hello, 
I have a scripted rest api that will be accessible using the oauth access token. I need the scripted rest api to call the record producer api and to do that i need to be able to supply the record producer api with an authorization header containing the bearer token which was supplied in the initial request of the scripted api. The problem im facing is that if i for example have the following in the authorization header "Bearer e_yCNLLsosA25Zi5E7IlNw8R0PQO9ASBC_7rKlVc_TQvaSVzQmTL8s4Bbxz2OFUjvv9m4vklvjqp-wd0IbtKMA" when i try to read it in the scripted rest api, i get a different value "$s$me7p9xHHyjP8IJve$Zf2NTE5eaLV6MKf6V0Tjb9RJoXUoAJyF/ayQX8a9lhs=

Why does this happen? and is there a way to decode this and get the real value of the token?

5 REPLIES 5

For info, I've changed how my module works, so I actually no longer require to decode the bearer token back to it's original clear text version, but it would still be useful to know if/how it can be done.