basic-authentication

Why can't it find my BasicAuthenticationModule?

南楼画角 提交于 2019-12-01 11:04:45
问题 I'm trying to create my own implementation of a basic-authentication. I have BasicAuthenticationModule.cs stored in my solution\Modules and its namespace is: namespace Web_API.Modules { public class BasicAuthenticationModule2 : IHttpModule Ive added it to my web.config as such: <system.webServer> <modules> <add name="BasicAuthenticationModule" type="Web_API.Modules.BasicAuthenticationModule, BasicAuthenticationModule"/> Running this gets me: HTTP Error 500.19 - Internal Server Error - Cannot

How to implement basic authentication with Glassfish?

故事扮演 提交于 2019-12-01 09:29:40
I'm tried this configuration but it didn't work for me. Basic Authentication in Glassfish I also tried this guide http://maksim.sorokin.dk/it/2010/10/13/basic-authentication-in-glassfish-3/ but I couldn't get user-pass asking with it too. These are steps I've taken: 1. Login as admin to Admin interface. 2. Go to Security->Realms->File 3. Add a group name (Users) to Assign Groups field. 4. Open manage users at the top of the page. 5. Click New and add an user (testuser) and give a password. 6. Add (Users) to Group List. 7. put this lines to web.xml <security-constraint> <web-resource-collection

How to implement basic HTTP authentication with the VS debug server?

筅森魡賤 提交于 2019-12-01 09:23:12
I'm making a test rig for an ActiveX HTTP control, and I need to create a web site to securely POST to. To keep things simple, I'm running the web app with the VS debug server; the web app project is part of the solution with the test application. NTLM authentication is not supported by the AX control. Is there any easy way to require very basic http authentication without NTLM or redirecting to a page form? I just need it to require a username and password during the post. Username and password content doesn't matter, so everything will be stored as plaintext. I've tried the authentication

Basic authentication with the GitHub Api using PowerShell

こ雲淡風輕ζ 提交于 2019-12-01 08:22:42
I have been trying to do basic authentication with the GitHub Api with PowerShell. The following do not work: > $cred = get-credential # type username and password at prompt > invoke-webrequest -uri https://api.github.com/user -credential $cred Invoke-WebRequest : { "message":"Requires authentication", "documentation_url":"https://developer.github.com/v3" } How do we do basic authentication using PowerShell with the GitHub Api? Basic auth basically expects that you send the credentials in an Authorization header in the following form: 'Basic [base64("username:password")]' In PowerShell that

REST Authorization: Username/Password in Authorization Header vs JSON body

人盡茶涼 提交于 2019-12-01 08:22:25
I'm using a token style authentication process. After the client has obtained a token, it is either set in the client's cookies (for Web) or the authorization headers of the client's requests (for mobile). However, in order to obtain a valid token, the client must first "log in" using an valid username/password combination. My question is this: Is there any added security by sending the username/password combination in the authorization header vs. as parameters in the JSON body of the request (assuming I'm using HTTPS)? I only need to send the username/password combination "once" per session

How to implement basic authentication with Glassfish?

时光怂恿深爱的人放手 提交于 2019-12-01 06:37:45
问题 I'm tried this configuration but it didn't work for me. Basic Authentication in Glassfish I also tried this guide http://maksim.sorokin.dk/it/2010/10/13/basic-authentication-in-glassfish-3/ but I couldn't get user-pass asking with it too. These are steps I've taken: 1. Login as admin to Admin interface. 2. Go to Security->Realms->File 3. Add a group name (Users) to Assign Groups field. 4. Open manage users at the top of the page. 5. Click New and add an user (testuser) and give a password. 6.

REST Authorization: Username/Password in Authorization Header vs JSON body

爷,独闯天下 提交于 2019-12-01 06:28:12
问题 I'm using a token style authentication process. After the client has obtained a token, it is either set in the client's cookies (for Web) or the authorization headers of the client's requests (for mobile). However, in order to obtain a valid token, the client must first "log in" using an valid username/password combination. My question is this: Is there any added security by sending the username/password combination in the authorization header vs. as parameters in the JSON body of the request

Turn on Basic Authentication for a simple WCF service?

一世执手 提交于 2019-12-01 06:16:59
I have a very simple WCF webservice that a customer is hosting on their own IIS. The customer has their own client that they've been testing against it, in their testing environment, and everything was working fine, until they disabled anonymous authentication and enabled basic. Once they did, they started getting errors: The authentication schemes configured on the host ('Basic') do not allow those configured on the binding 'BasicHttpBinding' ('Anonymous'). Please ensure that the SecurityMode is set to Transport or TransportCredentialOnly. So, what do I need to do to get basic authentication

why is use of “new NetworkCredential(username, password)” not working for Basic Authentication to my website (from a WinForms C# app)?

让人想犯罪 __ 提交于 2019-12-01 06:13:51
I have a website that uses Basic Authentication (username/password). Why is the following code not working? When I run it the web application takes me to the login controller, whereas I'm expecting that it should already be authenticated given I'm populating the credentials. In other words I'm trying to confirm how, in .NET, I confirm my winforms HttpWebRequest so that it will automate the authentication process. I'm assumeing that NetworkCredential is the .net class that should do this? Or in .NET is there an expectation there is some manual two step process you have to implement yourself?

Basic authentication with the GitHub Api using PowerShell

穿精又带淫゛_ 提交于 2019-12-01 05:32:56
问题 I have been trying to do basic authentication with the GitHub Api with PowerShell. The following do not work: > $cred = get-credential # type username and password at prompt > invoke-webrequest -uri https://api.github.com/user -credential $cred Invoke-WebRequest : { "message":"Requires authentication", "documentation_url":"https://developer.github.com/v3" } How do we do basic authentication using PowerShell with the GitHub Api? 回答1: Basic auth basically expects that you send the credentials