asp.net mvc - Hiding parameters (sensitive information) from URL of an MVC 5 application -


i working on asp.net mvc 5. when click link (placed in website) navigate userdetails.cshtml page. basically 3rd party site passing username & password site & using authorize & display further user info.

it's fine url looking

localhost:8080//admin/userdetails/username/pwd.

i don't want show username & password in url i.e url should :

localhost:8080//admin/userdetails/

one possible solution rewrite url in iis (http://www.hanselman.com/blog/aspnetmvcandthenewiis7rewritemodule.aspx)

but believe there easier way handle using routing mechanism of mvc.

please me figure out same.

edit : many of confused why not doing form post here, let me re-frame question. have no control on third party application, cant request them form post mvc application. again 3rd party application oracle reporting application (obi), doing post application might not feasible too...

let me reverse engineer requirements question:

i want have uri when invoked give access secured section of website. uri must clicked visitors of third-party site, whom give uri to. want hide credentials uri.

you cannot this, requirements conflicting. cannot hand out uris authenticate fires request uri.

you token (like http://your-site/auth/$token), still, access uri can use authenticate themselves, or put on own website.

if have data want expose third-party site, let site perform http request (with tokens, usernames, headers or whatever want use authenticate) in background site, , display response in site. visitor won't see traffic, can't share uri , secure.


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -