Quantcast
Channel: Security
Viewing all articles
Browse latest Browse all 4737

FormsAuthentication through JScrip from content page!

$
0
0

A question please

I have a content page in a website using a master page to display contents

The content page contains several javascript functions, that read and authenticate certificate on a smartcard that the user must use

The javascript part is working and it can read the certificate from the smartcard and check that the pincode is correct

From there I need to use FormsAuthentication

So the problem is calling an ASP.NET function that sets the user to be authenticated so that he /she will be able to access the rest of the website

I have used several tricks, tried using JS to set a value to a box in a form (Using getElementById() ) and then submitting the form, the problem is that I ended up with nested forms (the submition form within the main master form) so submit() did not work

I tried calling a static function from within jscript, and I can call such a function but I dont know how to set authentication from within a static function

I am lost here, any help would be much appreciated

Regards


Viewing all articles
Browse latest Browse all 4737

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>