Servlet unable to get hash fragment from URL

274 Views Asked by At

Hi after redirection from OAuth server, I am unable to get the complete URL in my JAVA Servlet.My URL looks like below -

https://host.vp.com/gui/MainPage.gdi#scope=openid%20profile&id_token=eyJ0eXAiOiJKV86sada0ajdasJUUEB343KHFKK

I tried request.getRequestURL() , request.getRequestURL(), request.getPathInfo(), no luck in getting the part of the URL which starts after #, i.e., scope=openid%20profile&id_token=eyJ0eXAiOiJKV86sada0ajdasJUUEB343KHFKK, Can someone help me here?

1

There are 1 best solutions below

0
On

Your Query string should start with ? instead of # to be able to read in the Selvlet.