basic-authentication

ASP.NET MVC - HTTP Authentication Prompt

泄露秘密 提交于 2019-12-27 17:00:33
问题 Is it possible to make my application ask for username and password prompting for it before render a view? Just like on twitter API to get information about your account: http://twitter.com/account/verify_credentials.xml So before render the view || file it asks you to insert you username and password, I think this is made directly on the server since the curl request is based on username:password as well like this: curl -u user:password http://twitter.com/account/verify_credentials.xml As I

Disable Fiddler's automatic conversion of user data into auth token

一曲冷凌霜 提交于 2019-12-25 02:58:27
问题 According to this answer fiddler is now automatically convering "[a] url's userinfo to an Authorization header". Is there a way to disable this? PUT: http://localhost/?name=ben+duguid&email=ben@example.com&token=123456 Results in: PUT: http://example.com&token=123456 Authorization: Basic bG9jYWxob3N0Lz9uYW1lPWJlbitkdWd1aWQmZW1haWw9YmVu Host: example.com&token=123456 which is clearly never going to work. I can work around this by URL encoding the @ as %40 (which I appreciate is more accurate

Disable Fiddler's automatic conversion of user data into auth token

此生再无相见时 提交于 2019-12-25 02:58:25
问题 According to this answer fiddler is now automatically convering "[a] url's userinfo to an Authorization header". Is there a way to disable this? PUT: http://localhost/?name=ben+duguid&email=ben@example.com&token=123456 Results in: PUT: http://example.com&token=123456 Authorization: Basic bG9jYWxob3N0Lz9uYW1lPWJlbitkdWd1aWQmZW1haWw9YmVu Host: example.com&token=123456 which is clearly never going to work. I can work around this by URL encoding the @ as %40 (which I appreciate is more accurate

How to use basic http authentication on Windows rt- Visual Studio 2012 - C#

扶醉桌前 提交于 2019-12-25 01:46:59
问题 how can i use basic http Authentication for a HTTPS URL Windows 8 Store App. I am using Visual Studio 2012, C# and XAML. Is there any point to keep attention when i use an HTTPS URL? i have tried these following methods: #1 : ###Code is UPDATED - Final running solution private async void HttpClientCall(object sender, RoutedEventArgs e) { System.Diagnostics.Debug.WriteLine(this.GetType().Name + ": HTTPCLientCall entered"); //System.Diagnostics.Debug.WriteLine("NetworkConnectivityLevel

Logout not working in Basic Auth in Spring Security

无人久伴 提交于 2019-12-24 22:54:03
问题 The official Spring Github Repo's Readme reads: The application is almost finished functionally. The last thing we need to do is implement the logout feature that we sketched in the home page. If the user is authenticated then we show a "logout" link and hook it to a logout() function in the AppComponent. Remember, it sends an HTTP POST to "/logout" which we now need to implement on the server. This is straightforward because it is added for us already by Spring Security (i.e. we don’t need

squid bind outgoing ip

心不动则不痛 提交于 2019-12-24 21:00:23
问题 I have many ips on same server and I am using squid basic authentication. Example - I have two ips and 2 users and one single port 3128. The issue is any user can use any outgoing ips. Below is my squid configuration: acl http proto http acl port_80 port 80 acl port_443 port 443 acl CONNECT method CONNECT auth_param basic program /usr/bin/python /path/to/authenticationscript auth_param basic realm Please enter username and password auth_param basic credentialsttl 1 second acl AuthUsers proxy

Cache password for SQL Server connection as a hash

落爺英雄遲暮 提交于 2019-12-24 16:46:41
问题 I'm writing a .NET 4.0 application that requires access to a SQL Server (v10.50.1600) database on the intranet. The database does not support integrated security/SSPI logins, only user/password logins. The best I've managed so far is: SqlConnectionStringBuilder builder = new SqlConnectionStringBuilder() { DataSource = Settings.SQLHostName, Encrypt = true, TrustServerCertificate = true, UserID = Settings.SQLUser, Password = "xxx", InitialCatalog = "xxx" }; However, this requires that I store

Open InAppBrowser with Authorization Header

折月煮酒 提交于 2019-12-24 13:39:38
问题 For my Ionic2 app i have a requirement of downloading invoices but only for authenticated users. Is there any way to do it? I have installed the InAppBrowser cordova plugin but it seems like it cannot be used for sending Authorization Header with request. 回答1: This work for me: Look for the (YourProject)\plugins\cordova-plugin-inappbrowser\src\android\InAppBrowser.java file and edit it. In the onReceivedHttpAuthRequest at the end of the file you should put something like this. public void

Oauth2 and Spring-Security: Fail on authentication using Oauth2 and spring-security

社会主义新天地 提交于 2019-12-24 12:26:17
问题 I want to use Oauth2 and Spring-security with rest web service. I am new for this, i am trying to create configuration with the help of some websites. Still, i clearly not understand how and what is the flow for oauth authenticate for rest service. i am using latest dependencies Click on the link for see my configurations. I am using database for store clients information and tokens. when i trying to access the token, using follwoing url with post request and post body: http://localhost:8080

Symfony4 - Basic Auth looping while using DB provider

时光毁灭记忆、已成空白 提交于 2019-12-24 09:49:48
问题 I'm desperate : I'm using Symfony for years, and today I'm stuck on a basic stuff. As FOSUserBundle is not implemented for Sf4 yet, I decided to create a really basic User entity in DB to load user. But when I enter my username/password in the BasicAuth windows in my web browser (chrome) it's not logging me and loops over and over. Here is my security file : security: encoders: App\Entity\User: algorithm: bcrypt providers: native_provider: entity: class: App\Entity\User property: username