Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Calling inbound API with OAUTH 2.0 via Bearer token but at SNOW end header shows as "Basic"

Nisar2
Mega Guru

In testing an inbound API, I made a call via Postman by passing the Authorization token via Bearer keyword. But in the scripted rest resource, when I do

 

gs.log(request.headers)

 

I get the following in the syslog table.

 

"authorization": "Basic xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

 

So I'm wondering why is it doing so? Why isn't it saying "authorization": "Bearer xxxxxxxxxx"?

0 REPLIES 0