credentials

How to map Windows API CredWrite/CredRead in JNA?

痴心易碎 提交于 2020-08-25 07:53:59
问题 I'm trying to map CredWrite/CredRead in JNA in order to store a thrid party credential used in my Java application in Windows Credential Manager (OS Windows 10). Here're the original signatures in C: // https://msdn.microsoft.com/en-us/library/aa375187(v=vs.85).aspx BOOL CredWrite( _In_ PCREDENTIAL Credential, _In_ DWORD Flags ); // https://msdn.microsoft.com/en-us/library/aa374804(v=vs.85).aspx BOOL CredRead( _In_ LPCTSTR TargetName, _In_ DWORD Type, _In_ DWORD Flags, _Out_ PCREDENTIAL

How to verify the Secrets Manager credential rotation is successful

为君一笑 提交于 2020-08-25 06:12:31
问题 I enabled the rotation and checked lambda funcion logs, there is no error, everything looks fine. But I retrieved the secret in Secrets Manager console, it's still the old password. I don't know what's going on. In AWS CLI: aws secretsmanager list-secret-version-ids --secret-id xxx Output: { "Versions": [ { "VersionId": "4********2f", "VersionStages": [ "AWSPREVIOUS" ], "LastAccessedDate": 1580428800.0, "CreatedDate": 1580484370.988 }, { "VersionId": "9********69", "VersionStages": [

Prompt for credentials in ASP.NET / C# page, pass to PowerShell

蹲街弑〆低调 提交于 2020-07-19 19:03:55
问题 I'm looking to build a proof of concept / demo webpage that will: Run as a service (no authentication required initially) Prompt for credentials (i.e. to allow providing alternate credentials, ideally capture this as System.Management.Automation.PSCredential). No authentication is required here, I just need to capture the credentials. Pass credentials in to PowerShell (e.g. shell.Commands.AddArgument(pscred) ) Use these credentials in PowerShell (pass in as, or convert to System.Management

Prompt for credentials in ASP.NET / C# page, pass to PowerShell

↘锁芯ラ 提交于 2020-07-19 19:03:09
问题 I'm looking to build a proof of concept / demo webpage that will: Run as a service (no authentication required initially) Prompt for credentials (i.e. to allow providing alternate credentials, ideally capture this as System.Management.Automation.PSCredential). No authentication is required here, I just need to capture the credentials. Pass credentials in to PowerShell (e.g. shell.Commands.AddArgument(pscred) ) Use these credentials in PowerShell (pass in as, or convert to System.Management

Calling WEB API with basic authentication in C#

只愿长相守 提交于 2020-06-12 16:43:38
问题 I have a working WEB API that I wrote, and I added basic authentication to the API (username is "testing", password is "123456"). However, when trying to call that API from my web form, I keep getting the "(401) Unauthorized" message. What should I change in the web code to call the API successfully? string url = String.Format("http://example.com"); //here I have the correct url for my API HttpWebRequest requestObj = (HttpWebRequest)WebRequest.Create(url); requestObj.Method = "Get";

Calling WEB API with basic authentication in C#

三世轮回 提交于 2020-06-12 16:43:31
问题 I have a working WEB API that I wrote, and I added basic authentication to the API (username is "testing", password is "123456"). However, when trying to call that API from my web form, I keep getting the "(401) Unauthorized" message. What should I change in the web code to call the API successfully? string url = String.Format("http://example.com"); //here I have the correct url for my API HttpWebRequest requestObj = (HttpWebRequest)WebRequest.Create(url); requestObj.Method = "Get";

Calling WEB API with basic authentication in C#

我与影子孤独终老i 提交于 2020-06-12 16:43:09
问题 I have a working WEB API that I wrote, and I added basic authentication to the API (username is "testing", password is "123456"). However, when trying to call that API from my web form, I keep getting the "(401) Unauthorized" message. What should I change in the web code to call the API successfully? string url = String.Format("http://example.com"); //here I have the correct url for my API HttpWebRequest requestObj = (HttpWebRequest)WebRequest.Create(url); requestObj.Method = "Get";

How to show ICredentialProviderCredentialv2 on more than one User tile on the other user tile

自作多情 提交于 2020-06-12 06:00:29
问题 I'm trying to develop a Credentialprovider v2. I'm experimenting around with the samplecredentialproviderv2 provided by Microsoft.After installing the redistributable 2013 and compiling for the right architecture, I'd registered it and it worked. My Problem is, it works only on the first shown user tile. If I enumerate more than one usertile, it is either shown in only one user tile, or I became an error and destroyed my Logon UI. I know the question is quite similar to this one. Here I can

How to show ICredentialProviderCredentialv2 on more than one User tile on the other user tile

谁说胖子不能爱 提交于 2020-06-12 06:00:02
问题 I'm trying to develop a Credentialprovider v2. I'm experimenting around with the samplecredentialproviderv2 provided by Microsoft.After installing the redistributable 2013 and compiling for the right architecture, I'd registered it and it worked. My Problem is, it works only on the first shown user tile. If I enumerate more than one usertile, it is either shown in only one user tile, or I became an error and destroyed my Logon UI. I know the question is quite similar to this one. Here I can

Why I can not use a ready-made credentials?

不羁岁月 提交于 2020-05-17 07:39:27
问题 I want to use ready-made credential, that are on my server. I do EDITOR="nano --wait" bin/rails credentials:edit Then I replace the contents of credentials.yml.enc and master.key with the ones inside these files on my server. But when I try to read credentials I get an error Couldn't decrypt config/credentials.yml.enc. Perhaps you passed the wrong key? 回答1: Error says it all: to use credentials files from your server, you should have same key in config/master.key file (or RAILS_MASTER_KEY env