basic-authentication

RxAndroid Release Apk is not working for build 25.0.2

岁酱吖の 提交于 2019-12-07 17:22:14
问题 I have posted this on rxandroid issue page too but no response its been 4 days but no response , problem is in debug apk rxjava functionalities are working as expected , but in release apk , only functionalities related to rxjava or rxandroid are not working at all build.gradle(project) apply plugin: 'com.android.application' //or apply plugin: 'java' apply plugin: 'me.tatarka.retrolambda' apply plugin: 'com.jakewharton.hugo' apply plugin: 'android-apt' def AAVersion = '4.1.0' android {

Why use Client Credentials flow?

情到浓时终转凉″ 提交于 2019-12-07 14:31:30
问题 I've been looking at using oauth2 client credentials grant to secure my API (all users will be trusted 3rd parties). I'm following the same approach as paypal here: https://developer.paypal.com/docs/integration/direct/paypal-oauth2/ However, I see that HTTP:// basic auth is used to acquire a bearer token. Then the bearer token is used to secure the API calls. What I don't understand is, if you're going to trust TLS and http: basic auth to retrieve the bearer token - why not just use http:

How to set HTTP Request Header “authentication” using HTTPClient?

对着背影说爱祢 提交于 2019-12-07 14:22:59
问题 I want to set the HTTP Request header "Authorization" when sending a POST request to a server. How do I do it in Java? Does HttpClient have any support for it? http://www.w3.org/Protocols/HTTP/HTRQ_Headers.html#z9 The server requires me to set some specific value for the authorization field: of the form ID:signature which they will then use to authenticate the request. Thanks Ajay 回答1: Below is the example for setting request headers HttpPost post = new HttpPost("someurl"); post.addHeader

Using anonymous and basic authentication in the same folder under IIS7

China☆狼群 提交于 2019-12-07 11:02:13
问题 I have a have Winforms client that uses Web services on a IIS7 (W2008) The client will first access a first.asmx page with anonymous aaccess, then access second.asmx with basic authentication (over SSL). This works fine in IIS6 where I can set first file to have anonymous authentication and the second file to have basic authentication. When I move to IIS7 there seems to be a problem having two different authentication modes in the same virtual folder. Does anyone know how this is intended to

Why is command line computed base64 string different than curl computed base64 string?

心不动则不痛 提交于 2019-12-07 10:45:36
问题 Really confused - Guess it has to do with a single character placement at the end, or possible padding done with basic digest that I'm not aware of..? So, if I execute this, you can see the product of the base64 encode: echo 'host@mail.com:password' | openssl enc -base64 aG9zdEBtYWlsLmNvbTpwYXNzd29yZAo= Now, if I make a curl request: curl -v -u host@mail.com:password https:// aG9zdEBtYWlsLmNvbTpwYXNzd29yZA== You'll notice that the base64 strings are NOT the same..haha what? The base64 command

PHP cURL: Max Length on CURLOPT_USERPWD?

社会主义新天地 提交于 2019-12-07 10:21:47
问题 I have a simple GET request in PHP using cURL. It is using basic auth for authentication. However when the {username}:{password} is longer than 266 characters, it appears to be getting truncated. I looked everywhere but haven't found any documentation stating this. Is it just me? $data = curl_init($url); curl_setopt($data, CURLOPT_USERPWD, $username . ":" . $password); curl_setopt($data, CURLOPT_HTTPAUTH, CURLAUTH_ANY); $results = curl_exec($data); echo $results; curl_close($data); 回答1: I'm

rails authenticate_or_request_with_http_basic

允我心安 提交于 2019-12-07 08:45:48
问题 in my RoR application i need to protect a page with basic authentication and i want that the credentials are asked every time that a user link to that page. so i added a filter before the operation, like this: before_filter :request_confirm, :only => [:delete_device] and the filter method is: def request_confirm user = User.find_by_id(session[:user_id]) authenticate_or_request_with_http_basic do |nick, pass| nick == user.nickname and pass == user.password end end it's ok, but only the first

Cannot Basic Auth from React App with Axios or SuperAgent

谁说胖子不能爱 提交于 2019-12-07 05:55:37
问题 I try to make a GET request with axios and I always get 401. This happens only when I send the request from my react app. axios.get('http://localhost:8080/vehicles', { withCredentials: true, auth: { username: 'admin', password: 'admin' }, headers: { 'Accept': 'application/json', 'Content-Type': 'application/json', }, }) Postman GET request with the same credentials and Basic Auth set, works. If I simply type in my browser the url, a login box appears and with the same credentials, it works, I

Nginx authentication except those on local network

ぐ巨炮叔叔 提交于 2019-12-07 05:33:36
问题 Coming from apache2 one feature I can not achieve; require authentication only to external access but free access to users on my local network. Any ideas how to handle easily this scenario? Any help would be appreciated. 回答1: I've deleted my previous answer and would like to suggest a solution I've provided below I did a little search and found this solution to your problem - In code, where you use auth_basic directive, make such changes : satisfy any; allow 10.0.0.1/8; // give access for all

.htaccess, mod_rewrite, and basic authentication

牧云@^-^@ 提交于 2019-12-07 04:57:24
问题 I am working on a Wordpress site, and my pages are using a permalink structure that mod_rewrites them to look like directories. For a few pages I want to use Basic Authentication to password protect a few of the pages. How would I write this in my .htaccess file? Am I protecting the file, or the rewritten address? 回答1: You won't need mod_rewrite for this, hopefully, this should do the trick: SetEnvIfNoCase Request_URI ^/some/path/to/protect require_auth=true SetEnvIfNoCase Request_URI ^