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
Hi Ishan,
Any specific reason you are using a hash instead of question mark in the uri ?
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.
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>
More in documentation
https://docs.apigee.com/api-services/reference/extract-variables-policy