Extract Variables appended with "#" tag in URL

Not applicable

Hi,

I am sending a request ---https://*****-test.apigee.net/token#id_token=********

I need to extract id_token value. I tried "message.uri","proxy.url" etc pre defined flow variables,but not able to get.

Kindly suggest the way to get the value.

Thanks

0 5 248
5 REPLIES 5

Not applicable

Hi Ishan,

Any specific reason you are using a hash instead of question mark in the uri ?

Not applicable

@snehal chakraborty

As a part of 3 legged Oauth okta is redirecting token to the url -"https://*****-test.apigee.net/token" by appending with # and not as query parameter.

faijahmad
Participant V

Try to use URI path pattern to extract value and see if this can work.

<ExtractVariables name="ExtractVariables-1">
   <DisplayName>Extract a portion of the url path</DisplayName>
   <Source>request</Source>
   <URIPath>
      <Pattern ignoreCase="true">/accounts/{id}</Pattern>
   </URIPath>
   <VariablePrefix>urirequest</VariablePrefix>
   <IgnoreUnresolvedVariables>true</IgnoreUnresolvedVariables>
</ExtractVariables>