I have a windowless wpf app that's taking messages from an asp.net core app via signalr and displaying them to the user. I also have a NotifyIcon that has one right click option to open the web app in the browser (Process.Start). The problem is, the web app is using Windows Auth and the process is started as the computer and not the user, thus not being authenticated. How do I get the process to start as the user?
I can't use process.UserName, because that requires a password, and I don't want the user to enter the password everytime. I've also tried process.LoadUserProfile but that doesn't seem to do anything.
Related
The app I am testing uses a website-based login. So as soon as you click on the login button in the native app a webview opens up where you can enter your credentials. Once done, a single-sign-on cookie is set, the webview closes and the native app opens back up.
Because of the SSO closing, resetting or even reinstalling the app does not log the user out. However, in order to make the automated tests independent of each other I want to have the user always logged out at the beginning of each test run.
I know you can delete cookies with Selenium/Appium with https://appium.io/docs/en/commands/web/storage/delete-all-cookies/, but this apparently only works when in a webview context.
Is there any other way to delete SSO cookies in Android and iOS and reset app the state?
I have written a WPF application that I want to show (the UI) every time a user logs into a server. It must show on user login but also when a user connects to a existing console session via RDP.
I have no trouble with new user login.
The issue I'm having is invoking my application when a user connects to the console session, a existing user session on the server.
The most obvious way would be to setup a scheduled task, there is specific support for this but the UI will only show the UI for the user who it is 'running as', as defined in task scheduler. So I may have not be able to use this as it must launch and show the UI to any user who connects to an existing console session.
How can I achieve this, to detect / launch an interactive application when a user connects via RDP to an already logged in console session? I'm stuck.
Thanks
I‘ve got a MVC application configured to use Windows Authentication in IIS.
So If an user accesses the app from a machine within the same domain and a browser which supports WIA, no credentials dialog will be displayed and the user is logged in right away.
If an user accesses the app from a browser or a machine which does NOT support WIA or is outside the domain, the credentials dialog is being displayed correctly.
Additionally I‘d like to teach the app the following behavior.
Some users from the domains are not allowed to access my application, so the app should reject the user (e.g it is not within a specific AD group) even though it has authenticated successfully and force it to enter the credentials of a different user manually using the same dialog which is user to authenticate users using a browser not supporting it.
Thank you a lot in advance!
Got it - modifying the web.config according to this post does the trick.
https://serverfault.com/questions/352647/restrict-access-to-iis-site-to-an-ad-group
I want to create my own windows service to log on a user on windows 7 programmatically when it starts up. Without letting user to type the password.
I have a mobile application to verify the user once he/she starts the system, the service run before windows login screen, where it sends a verification link on the mobile app from there the user is verified through the mobile app, once the user is verified then I want my service to authenticate the user by clicking the auto login button which should automatically map the password to the windows login account to log on the system.
I am able to run my windows service before the windows login screen, but not able to map the password to log on the system.
I have already gone through with Credential Provider Samples(the only option I found) but these samples are not showing there functionality.How to use these samples to implement.
I have a WPF application that will work offline with local data. On app start I need the user to re-enter their Windows credentials to verify that they are in fact the correct Windows user.
Is there a .NET method to make the user re-login when the app starts?
Or do I need to create a login page and logic and compare against the current user like this?
Seems like a technology solution to a behavior problem, but, you want to look at the CredUIPromptForCredentials API and the LogonUser API to prompt and create the token.