cancel
Showing results for 
Search instead for 
Did you mean: 

How to add realm key to Authorization header

SOLVED
Highlighted
New Contributor

How to add realm key to Authorization header

I am trying to add the realm key to the Authorization header.

 

Authorization: OAuth realm="3756461_SB1",oauth_consumer_key="abcdefg",oauth_token="hijklmn",oauth_signature_method="HMAC-SHA1",oauth_timestamp="1594934754",oauth_nonce="KA5LacXTM3R",oauth_version="1.0",oauth_signature="x0ca%2F5rYCIk0vJYb3QH1ulEyQyE%3D"

 

I don't see a way to do this in the "Authenthentication and Security related settings" section of UI.

 

Any ideas?

 

Thanks!

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Hero

Hey @ElvisATX,

yeah i wouldn't expect your nonce or signature parm values to be static. I assumed you'd need a bit of groovy to extract (nonce) and generate (signature) values

Ta

Rich
if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the Subject header field of the post to something more descriptive? This will help people when searching for problems. Ta

View solution in original post

5 REPLIES 5
Highlighted
Community Leader

@ElvisATX :

 

You can add Authentication by clicking Auth Tab, refer below Screenshot.

 

HimanshuTayal_0-1594962053046.png

 


Click "Accept as Solution" if my answer has helped,
Remember to give "Kudos" 🙂 ↓↓↓↓↓



Thanks and Regards,
Himanshu Tayal
Highlighted
New Contributor

Hi, Yes I already clicked on that tab but there is no option add the "Realm" key.  It only allows adding:

  • Access Token
  • Token Secret
  • Consumer Key
  • Comsumer Secret

 

Thanks

Highlighted
Community Hero

Hi @ElvisATX,

I dont know whether this can help, but i am aware you could manually add in an Authorization header and hard code parameters labels and use property expansions to generate the values.
If you did this you wouldn't use the auth tab or the authorisation/authentication functionality, but the approach i'm suggesting would enable you to configure exactly the parms/parm values you have in your Authorization header. I've actually done this before to get around something similar so i know it works.

Nice one

Rich
if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the Subject header field of the post to something more descriptive? This will help people when searching for problems. Ta
Highlighted
New Contributor

HI @richie 

 

Thanks for the suggestion.  This works but then I run into two problems:

 

1) the oauth_nonce attribute needs to be updated each time

2) the oath_signature needs to be recalculated via HMAC-SHA1 hash.

 

I am able to generate the correct HTTP request via PostMan, copy/paste the Authorization section into the SoapUI as a manual value for the Authorization Header value.  This works but only once.  I have to go back to Soap UI and generate a new set of values each time!

 

 

Highlighted
Community Hero

Hey @ElvisATX,

yeah i wouldn't expect your nonce or signature parm values to be static. I assumed you'd need a bit of groovy to extract (nonce) and generate (signature) values

Ta

Rich
if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the Subject header field of the post to something more descriptive? This will help people when searching for problems. Ta

View solution in original post

New Here?
Join us and watch the welcome video:
Top Kudoed Authors