I am attempting to get round an issue where the user of a pc not registered on the AD domain needs to run a Wise J app via a VPN.
In this scenario the browser will ask the user to log in and the Wise J app picks up the user credentials.
However whilst using Application.UserIdentity seems to pick up some of the user credentials it will not allow impersonation of the user.
I have tried using “Impersonate:” true, however this just generates an error in this scenario
“The connection either timed out or was lost System.XmlReader EndRequest(Boolean)”
The resources the App needs to access fall into the Double Hop scenario. eg Report Server (SSRS reports)
NB everything works perfectly if the user is logged onto the domain on a device that is on the domain.
I know I can get round this by creating a logon form and effectively capturing the users domain logon details, which I do not want to do.
Is there a way round this?
Hi Ewan,
Wisej offers the User and UserIdentity Properties.
Application.User returns IPrincipal and Application.UserIdentity returns WindowsIdentity class.
Here are a couple of links that might help you:
Application.User Property (wisej.com)
Application.UserIdentity Property (wisej.com)
IPrincipal Interface (System.Security.Principal) | Microsoft Docs
WindowsIdentity Class (System.Security.Principal) | Microsoft Docs
Best regards,
Alaa
Is it possible to capture the user credentials if the browser requests them so that they can be passed to the IReportServerCredentials interface?
Having explored Bearer Tokens for reporting services.
So aside from creating may own alternate log on form I was wondering whether it is possible to exploit what is already there?
Thanks for your help
The Double Hop issue is resolved if the user comes from a trusted source ie they are logged onto the domain.
Would it be possible to generate the ReportServerCredentials based on the prompted user login from the untrusted source?
Alternately
Would it be possible to user BearerTokens instead?
c# – Sending a bearer token to endpoint, then validate this token – Stack Overflow
Thanks
Ewan
Hi Ewan,
Wisej uses the WindowsIdentity.Impersonate() method (WindowsIdentity.Impersonate Method (System.Security.Principal) | Microsoft Docs), and there’s no way that you can change the authentication system.
The double hop issue is a known problem, that can only be resolved by the Network Manager, so it’s not a Wisej issue.
Best regards,
Alaa
Please login first to submit.