credentials

Validate a user's password using the hash?

故事扮演 提交于 2019-12-10 09:48:24
问题 i know it's possible to validate user's Windows (e.g. domain) credentials programatically using: LogonUser(username, password) from .NET ValidateCredentials(username, password) or the SSPI API directly There has come a time when i want to persist those credentails. i'm using the Data Protection API (via the CredUI API) to encrypt the password. This means that the encrypted data can only be accessed by the user themselves. My program, running as the user, can then decrypt the protected data.

Getting the default credentials?

爷,独闯天下 提交于 2019-12-10 09:33:09
问题 I have page A.aspx in my domain this page (in its c# codes) makes a request to another page.( B.aspx ). - which is in my domain also the whole site is in windows authentication HttpWebRequest loHttp = (HttpWebRequest)WebRequest.Create("http://mydom.com/b.aspx"); loHttp.UseDefaultCredentials = true; loHttp.Timeout = 100000; HttpWebResponse loWebResponse = (HttpWebResponse)loHttp.GetResponse(); Encoding enc = Encoding.GetEncoding("UTF-8"); // Windows default Code Page StreamReader

Spring Data mongodb: adding credentials for MongoDb access

丶灬走出姿态 提交于 2019-12-09 19:12:36
问题 I have the following working configurations in my Spring application: <mongo:mongo id="myRs" replica-set="myhost:27017"> <mongo:options max-wait-time="1500" connect-timeout="30000" /> </mongo:mongo> <bean id="mongoTemplate" class="org.springframework.data.mongodb.core.MongoTemplate"> <property name="writeResultChecking" value="EXCEPTION"/> <property name="writeConcern" value="FSYNC_SAFE"/> <constructor-arg ref="myRs"/> <constructor-arg name="databaseName" value="mydb"/> </bean> Now all I want

How to use IE proxy server settings and its credentials in .Net Application

这一生的挚爱 提交于 2019-12-09 17:27:47
问题 How to use the saved proxy settings and credentials as default for HttpWebRequests? The proxy settings are accessible and used but not the credentials: IWebProxy proxy = WebRequest.GetSystemWebProxy(); proxy.Credentials = CredentialCache.DefaultNetworkCredentials; WebRequest.DefaultWebProxy = proxy; Are there any permissions on using the credentials? It works with passing the credentials via NetworkCredential instance: proxy.Credentials = new NetworkCredential("username", "password"); But I

Where should I store development credentials on a Spring Boot project?

半腔热情 提交于 2019-12-09 16:07:58
问题 Where should I store development credentials on a Spring Boot project so that they are not committed to the repository? What's the most standard way? In other frameworks (Rails, Clojure) I'm used to have a file that I do not commit to the repo where that information goes. Something like a secondary application.properties that gets merged and it's never committed. Does such a thing exist? I'm deploying to Heroku, which provides credentials in environment variables that Spring can pick up, so,

PowerShell - Get-Credential decode password?

我怕爱的太早我们不能终老 提交于 2019-12-09 14:00:50
问题 I want to use the Get-Credential cmdlet in my code. How is is possible to decode the password easily back from the System.Security.SecureString format? (I must use the password in clear text format at one part in my code) $credential = Get-Credential $credential.Password | ConvertFrom-SecureString $credential #How to show password in text format? My workaround, but I think there is also a normal way $credCachePS = New-Object System.Net.CredentialCache $credCachePS.Add("uridummy", "NTLM",

Java websocket with proxy

那年仲夏 提交于 2019-12-09 13:48:28
问题 I have been trying all day and night for couple of days trying to make websocket to work using proxy in Java . I tried different library like https://github.com/TooTallNate/Java-WebSocket https://github.com/AsyncHttpClient/async-http-client But sadly these library doesn't support proxy with credentials. If you guys have known any other library that supports proxy then I would be appreciated. Thanks in advance 回答1: Try nv-websocket-client library. It supports authentication at a proxy server.

Get Cached Credentials in PowerShell from Windows 7 Credential Manager

北慕城南 提交于 2019-12-09 11:02:26
问题 Can I do this with some API I am overlooking or do I have to figure out porting the C# .NET API calls mentioned here into PowerShell to make this happen in a script? 回答1: You can use Add-Type cmdlet to easily port it I believe: $sig = @" [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] public struct NativeCredential { public UInt32 Flags; public CRED_TYPE Type; public IntPtr TargetName; public IntPtr Comment; public System.Runtime.InteropServices.ComTypes.FILETIME LastWritten;

Influencing whether browsers prompt to save credentials

懵懂的女人 提交于 2019-12-09 10:16:57
问题 For most web pages that have a username and password dialog, browsers will prompt the user if they want to save the credentials for that form: However, for this login page, it doesn't. I can't find any good data on how IE makes the decision whether to present this dialog. How to get IE to show that prompt - assuming no user settings trump it? 回答1: My guess is that since the page is in HTTPS mode IE is not allowing autocomplete to execute because the page has indicated that HTTP caching should

Where to store credentials for VSIX - Visual Studio 2017 Extension

為{幸葍}努か 提交于 2019-12-09 06:57:36
问题 Context: I'm writing VSIX Extension for Visual Studio 2017 which needs connection to REST API that requires user authentication. I decide to use VSPackage to provide service for my extension. To be able to connect and authenticate users I would like to store somewhere user credentials, it could be either username and password or OAuth token - doesn't matter. Question: What will be the best place to store credentials information for VSIX? Requirements: Credentials should not be stored as plain