I've recently started exploring the IBM API Connect Test and Monitor tool on IBM Cloud here: -
https://www.ibm.com/cloud/api-connect/api-test
and was having some fun n' games setting an HTTP Header, using either the basic HTTP Client or the more detailed Test Composer.
My API requires that one send an IAM token, rather than the more Basic Auth of user/password, which is nice :-)
This kept failing with HTTP403 Unauthorized.
Thankfully IBM have a nice active support community on Stack Overflow, so I posted a question here: -
Setting Authorization Headers in IBM API Connect Test and Monitor
and got some rapid feedback from the community.
In essence, I was doing it wrong ....
This is what I needed to do: -
In other words, for the Key/Value Pair (KVP) that comprises the HTTP Header field, I needed to specify Authorization as the key and Bearer XXXXXXXXXXXXXXX as the value ( with a space between the word Bearer and the actual IAM token itself.
So I was holding it wrong .... #Doofus
Apart from the basic HTTP Client, there's also a very spiffing Test Composer, that has the same requirement wrt Authorisation headers: -
For the record, there's also a GitHub project for a native client here: -
https://ibm-apiconnect.github.io/test-and-monitor/
with which I've played a wee bit .....
Geeking in technology since 1985, with IBM Development, focused upon Docker and Kubernetes on the IBM Z LinuxONE platform In the words of Dr Cathy Ryan, "If you don't write it down, it never happened". To paraphrase one of my clients, "Every day is a school day". I do, I learn, I share. The postings on this site are my own and don’t necessarily represent IBM’s positions, strategies or opinions. Remember, YMMV https://infosec.exchange/@davehay
Subscribe to:
Post Comments (Atom)
Note to self - use kubectl to query images in a pod or deployment
In both cases, we use JSON ... For a deployment, we can do this: - kubectl get deployment foobar --namespace snafu --output jsonpath="{...
-
Why oh why do I forget this ? Running this command : - ldapsearch -h ad2012.uk.ibm.com -p 389 -D CN=bpmbind,CN=Users,DC=uk,DC=ibm,DC=com -w...
-
Error "ldap_sasl_interactive_bind_s: Unknown authentication method (-6)" on a LDAPSearch command ...Whilst building my mega Connections / Domino / Portal / Quickr / Sametime / WCM environment recently, I was using the LDAPSearch command tha...
-
Whilst building a new "vanilla" Kubernetes 1.25.4 cluster, I'd started the kubelet service via: - systemctl start kubelet.se...
No comments:
Post a Comment