Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

sharepoint reauthentication for sensitive data

I have a page that contains sensitive information that I would like to require reauthentication in order to load. I am using Classic authentication mode, not forms.

The first method i looked at was the PrincipalContext.ValidateCredentials method, but that would require sending login details in plain text (i think).

I have thought about using javascript to turn off cookies so they would have to log back in, but I haven't thought of a way of doing this well.

Has anyone done this before with SharePoint?

like image 758
Nacht Avatar asked Apr 27 '26 21:04

Nacht


1 Answers

what i ended up with:

a web part on the page with sensitive material which forces an HTTP 401, and then redirects to another page.

this other page has a second web part, which then redirects back to the original page after setting some session variable.

like image 175
Nacht Avatar answered Apr 29 '26 12:04

Nacht



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!