Hello.
I am using a vb script to get my application to prompt me for the smart card upon its removal instead of keeping me signed in.
The authentication to this app is managed by adfs as my idp (Saml 2.0) certificate based authentication only.
The idea was to set the vbs in a schedules task that- when detects smart card is removed- does particular actions:
Delete cookies on the browser
Delete my certificate from the personal store, so that adfs prompts me for my identity again.
On computers with edge chromium, it works perfectly:
Set WshShell = CreateObject("WScript.Shell")
WshShell.Run "msedge.exe https://myRP/logoutpage"
Wscript.Sleep 900
WshShell.SendKeys "^+{DELETE}"
Wscript.Sleep 900
WshShell.SendKeys "{TAB 10}"
Wscript.Sleep 300
WshShell.SendKeys "{ENTER}"
Wscript.Sleep 300
WshShell.SendKeys "^w"
Set objShell = CreateObject("Wscript.Shell")
objShell.Run("powershell.exe -windowstyle hidden -command Get-ChildItem -recurse cert:\currentuser\My | ? subject -match 'my_username' | remove-item")
But on computers with the older microsft edge, same script doesnt work, as in it keeps my identity somewhere other than in the cookies and cert store.
Set WshShell = CreateObject("WScript.Shell")
WshShell.Run "cmd.exe /C start microsoft-edge:http://myapp/logout"
Wscript.Sleep 900
<<Correspondant Key Strokes to delete Cookies>>
Set objShell = CreateObject("Wscript.Shell")
objShell.Run("powershell.exe -windowstyle hidden -command Get-ChildItem -recurse cert:\currentuser\My | ? subject -match 'my_username' | remove-item")
My question is: how to get the microsoft edge script to behave like the edge chromium one?
I am missing a command to completely delete my identity from the legacy browser.
Ps: my Rp does not supprort SLO, so i cant go
with that solution
Edited
