cancel
Showing results for 
Search instead for 
Did you mean: 

Expression to fetch the Authorization header value from incoming request

SachinS
New Contributor

I have to fetch the Authorization header value and pass it to next REST API call.
Please reply if some one has know. how to retrieve it.

7 REPLIES 7

The HTTP request headers are passed as parameters to the pipeline and can be accessed like other pipe parameters. Here’s an expression that would allow you to access the content_type, note it’s just the name of the header in all caps with an underscore prepended to it.

 _CONTENT_TYPE

For more information on how to use the triggered tasks, this documentation is useful.

https://docs-snaplogic.atlassian.net/wiki/spaces/SD/pages/1438189/How+to+Run+a+Pipeline+from+a+URL+T...

tstack
Former Employee

I just wanted to ask a clarifying question. It sounds like you’re wanting to get the Authorization header that is passed to a triggered task, is that right? What API are you going to be calling in the pipeline that would use the SnapLogic user credentials?

SachinS
New Contributor

Yes, your are correct. Below is the API call:-
/api/1/rest/public/users/UserName