digest-authentication

How to configure JBoss DatabaseServerLoginModule for Digest Authentication in a Web Application

北慕城南 提交于 2019-12-18 06:59:10
问题 In a sentence, I want to configure JBoss 4.2.2 to use DatabaseServerLoginModule as the login-module for a Web application that is secured via Digest Authentication. The problem I am having is that the passwords fail to validate. I suspect the issue is either in how I've defined the application policy or in how the passwords are stored in the database. Below are all the relevant files. I have a MySQL database with users and roles defined using the following schema: CREATE TABLE SR_USER ( ID

Digest authentication in Android using HttpURLConnection

一个人想着一个人 提交于 2019-12-17 13:38:07
问题 as the question allready says, I am trying to do digest authentication in android. Until now i have used the DefaultHttpClient and it's authentication method (using UsernamePasswordCredentials and so on), but it is deprecated since Android 5 and will be removed in Android 6. So i am about to switch from DefaultHttpClient to HttpUrlConnection . Now i am trying to achieve digest authentication, which should work pretty simple as explained here: Authenticator.setDefault(new Authenticator() {

Android: Volley HTTP Request custom header

萝らか妹 提交于 2019-12-17 05:11:56
问题 I'm getting the following error when I run the app: BasicNetwork.performRequest: Unexpected response code 401 I need to pass an email, a password and a token to access the URL, but it's not working I started learn android last week, I don't know much package quest.testvolley; import com.android.volley.AuthFailureError; import com.android.volley.VolleyLog; import com.kpbird.volleytest.R; import android.app.ProgressDialog; import android.os.Bundle; import android.app.Activity; import android

Custom WebDAV server does not work with Windows 7 mini-redirector

若如初见. 提交于 2019-12-11 14:38:40
问题 I am maintaining a custom WebDav server, which works smoothly with most WebDav clients such as Cadaver, Mac OSX, etc, but does not work with Windows mini-redirector, i.e. net drive in Windows Explorer. The server implemented Digest authentication. The symptom is: I was always prompted for entering username and password even after I entered correct credentials. Even more weird thing is, when I am using Fiddler, the problem is gone. I have looked into several possibilities: 1. persistent

spring websocket with digest authentication

社会主义新天地 提交于 2019-12-11 06:08:00
问题 I use Spring security to authenticate my spring websocket server. It works fine with the Basic authentication , but it went wrong when I changed to Digest authentication . I don't know what to put into the headers. Does someone know any solutions? This is the websocket client code snippet: SockJsClient sockJsClient; WebSocketStompClient stompClient; List<Transport> transports = new ArrayList<>(); final WebSocketHttpHeaders headers = new WebSocketHttpHeaders(); headers.add("Authorization",

AngularJS and Digest HTTP Authentication

我与影子孤独终老i 提交于 2019-12-10 15:46:00
问题 I am trying to implement the digest auth algorithm in angular. However, the lack of knowledge about the requests angular will send stops me from perceiving that goal. My approach is to transform the request via the $httpProvider.defaults.transformRequest route. But the functions I provide function (data, headersGetter) obviously is not provided with any knowledge about the upcoming request. Since I have no knowledge about the request URI (but especially the method, such as PUT, GET etc.)at

OnVif integration error - unauthorized with client authentication scheme 'Digest'

送分小仙女□ 提交于 2019-12-10 12:09:19
问题 Using this code to connect to OnVif service on my IP Camera in C# .Net 4.5. Very next to that code, I am trying to get Device information as follows: string str = client.GetDeviceInformation(out model, out firmware, out serial, out hardwareId); And encouters this error: An exception of type 'System.ServiceModel.Security.MessageSecurityException' occurred in mscorlib.dll but was not handled in user code Additional information: The HTTP request is unauthorized with client authentication scheme

Digest auth with Java & Apache client : Always 401 Unauthorized

99封情书 提交于 2019-12-09 06:46:32
问题 I'm trying to implement digest auth with an HTTP client, but this does not work at the moment. Can someone check if this code is correct? For testing purpose I use http://httpbin.org/, but all I get is HTTP/1.1 401 Unauthorized . Here is the example code: private static void doDigestAuth() throws ClientProtocolException, IOException, AuthenticationException, MalformedChallengeException { HttpHost target = new HttpHost("httpbin.org", 80, "http"); CredentialsProvider credsProvider = new

how to implement digest authentication using volley?

巧了我就是萌 提交于 2019-12-08 15:51:39
问题 Any one can help me for implement digest authentication using Google Volley for web service calling (REST). basically Volley is using SHA1 authentication(Basic Auth), But is there any way to modify with digest Auth (MD5). 回答1: Both HTTP-authentications use simple header entities. I have not tried this by myself, but i assume all you need to implement is to provide header with Digest-specific format in your custom request like this: public class MyRequest<T> extends Request<T> { ... @Override

Android HttpClient Digest Authentication Authorization header “nc” hard-coded

点点圈 提交于 2019-12-08 12:45:31
We try to send several requests to target server in one HttpClient (one session). The target server will first authenticate all requests with digest authentication (based on MD5-sess). The result shows that only first access is successful. The following accesses are rejected by server because server treats later accesses as replay attack as the "nc" value is always "00000001". It seems Android HttpClient hard-coded digest authorization header attirbute "nc" to "00000001"? Any way for client to increase this value when new request is sent? Thanks. public class HttpService { private static final