authentication « Development « Java Enterprise Q&A





1. windows live id web authentication sdk giving Java App server error    stackoverflow.com

I'm making a website in c# .NET and using the windows live id web authentication sdk for my logins. I'm trying to deploy the site using server 2003 and IIS ...

2. J2EE integration with .NET for authentication    stackoverflow.com

I have a Java Enterprise Edition web application, a standard WAR. I want to integrate this with an existing .NET infrastructure running IIS. To be specific, I need to be able ...

3. HTTP Authentication with Web References    stackoverflow.com

I have a web reference created from the WSDL, but I'm not allowed to call the function unless I pass in the username / password; the original code for the XML ...

4. JAX-WS client for IIS Integrated Windows authentication (NTLM)    stackoverflow.com

Recently, I am working on a project that requires to build a web service client in Java running on JAX-WS engine to talk to a .NET web service secured by Integrated ...

5. WIndow Authentication in Java    stackoverflow.com

Can anyone roughly explain how can i do window authentication in JSF application? From google search quite lot of example is about asp.net.

6. Java 6 NTLM proxy authentication and HTTPS - has anyone got it to work?    stackoverflow.com

I have a Java application (not an applet) that needs to access a web service. Proxies for the web service have been generated with JAX-WS, and seem to work fine. In ...

7. WSContext.getUserPrincipal() returns null for password digest authentication    stackoverflow.com

In my WebService I need to log the caller's id, but wsContext.getUserPrincipal() returns null even though the user was authenticated using WS-Security with password authentication. According to the JavaDocs for ...

8. JAX-WS and BASIC authentication, when user names and passwords are in a database    stackoverflow.com

I'm new to JAX-WS and there's a thing which I don't understand. There's a ton of tutorials available on how to set up JAX-WS security, but in pretty much all cases BindingProvider.USERNAME_PROPERTY ...

9. Require users to complete profile following successful authentication    stackoverflow.com

I'm developing a standalone custom registry, custom login portlet, and custom profile portlet for Websphere Portal 6.1. Some existing users have not completed one or more required fields in their ...





10. JavaMail Exchange Authentication    stackoverflow.com

I'm trying to use Exchange authentication from my app using JavaMail to do this. Could some one give me a guide to do this? After authentication I need to send mails that's ...

11. Error 403: Forbidden. The HTTP request was forbidden with client authentication scheme 'Anonymous'    stackoverflow.com

I'm getting this error when calling a java web service. I'm using the same source as the rest of my team and they're all able to call it no problem? This is ...

12. How to connect to a queue manager with ssl enabled server connection channel when authentication is required    stackoverflow.com

I am trying to write a java application connecting to server connection channel with SSL enabled. So far, I have been successfully connected to the channel by setting authentication to ...

13. RESTEasy client framework authentication credentials    stackoverflow.com

RESTEasy (a JAX-RS implementation) has a nice client framework, eg:

ServiceApi client = ProxyFactory.create(ServiceApi.class, baseUri);
How do you provide HTTP authentication credentials to this client?

14. Problem with authentication on java ws    stackoverflow.com

I have application in C# that consume Java WS. Everything worked fine until WS was configured to use authentication. Now I should user login i password to execute methods from WS ...

15. How to troubleshoot TLSv1 handshake problem with mutual authentication?    stackoverflow.com

I am having a heck of a time getting my web service client talking to my web service which is protected by requiring client certificates. I am using JAX-WS 2.1 ...

16. WebServiceContext.getUserPrincipal returns "ANONYMOUS" when using mutual authentication    stackoverflow.com

I'm creating a web service (and test client) that uses mutual authentication. I've used this guide to create a CA and key/trust stores but instead of creating .p12 files ...





17. Integrate RSA SecurID authentication with a j2ee server?    stackoverflow.com

I'm looking to integrate a J2EE app running on JBoss with RSA's Access Manager (which provides authentication with SecurID tokens). The documentation I've found so far is pretty sparse. RSA's site

18. j2ee : AuthenticationFilter and RequestContext : how do you do Auth    stackoverflow.com

We're building a GWT+hibernate+spring web app that's deployed to tomcat and postgres. Looking at http://code.google.com/p/google-web-toolkit-incubator/wiki/LoginSecurityFAQ and http://www.owasp.org/index.php/Hashing_Java#Complete_Java_Sample, We have a User table and a Role table(4-5 roles, ...

19. How to automatically login to the site using system credentials?    stackoverflow.com

I need to develop a web application for the Intranet users. I dont want them to enter the login credentials each time they visit the site. It should be automatically loaded ...

20. java windows authentication    stackoverflow.com

i am checking the text file which is present in the mapped hard drive or not.

 File cfile = new File("R:\\Link Fixer Reports\\ServiceTest.txt");
but it shows that file is not present when ...

21. J2EE auth to JAX-RS    stackoverflow.com

What is the best way to authenticate users to a rest API when it built with J2EE technology. Regards, Ken

22. Authentication services    stackoverflow.com

I have a web app (Java- and GWT-based), which requires an authentication mechanism (login, logout, password reset etc.). I don't want to waste my time implementing it, so I'm looking for services, ...

23. How to provide OAuth based API when application itself relies on thrid part OAuth    stackoverflow.com

I have a Java web application. It relies on Google OAuth to authenticate and authorize users. I want to provide an API to my application which must also use OAuth. Is ...

24. SEVERE: SAAJ0008: Bad Response; Proxy Authentication Required    stackoverflow.com

in my java program i have setted proxy settings but still its showing error..

import javax.xml.soap.SOAPElement;
import javax.xml.soap.SOAPConnectionFactory;
import javax.xml.soap.SOAPConnection;
import javax.xml.soap.MessageFactory;
import javax.xml.soap.SOAPMessage;
import javax.xml.soap.SOAPPart;
import javax.xml.soap.SOAPEnvelope;
import javax.xml.soap.SOAPBody;
import java.io.FileInputStream;
import javax.xml.transform.stream.StreamSource;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.Transformer;
import javax.xml.transform.Source;

import javax.xml.transform.stream.StreamResult;
import java.net.*;
import java.io.*;


public class ...

25. Authorization using filters in Java EE    stackoverflow.com

I have mongodb base with users and passwords. I have a jsp file with a form for authorization. filter should be check - authorized user or not. Servlet should authorize user if ...

26. java sasl authentication with openldap server    stackoverflow.com

Can anyone see any reason this code doesn't work when ldapwhoami -U portal -h yorktown -Y PLAIN -ZZ works just fine? Is there something I'm doing that isn't equivalent?

LDAPConnection connection ...

27. JAX-WS, Authentication and Authorization - How to?    stackoverflow.com

What is the best way to do authentication and authorization in web services? I am developing a set of web services, requiring role based access control. Using metro - SOAP, simple java without ...

28. Is It Possible to Have a Cognos Custom Authentication Provider Use JAXWS?    stackoverflow.com

I am working on creating a CAM (custom authentication module/provider) for Cognos 10. Various encrypted information is passed into the provider from the query string. The Namespace's authentication process is then ...

29. How to implement self-managing web users with Java EE 6?    stackoverflow.com

I want to create a simple web application that will have self-registering users. In other words, I want users to be able to register, log on, manage their data, log off, ...

30. How can I use the J2EE container to manage my user authentication?    stackoverflow.com

I have a J2EE web application inside of Tomcat that I am writing. For user login, I have stored salted password hashes inside of MySQL. To login, a user provides a password, ...

31. what is keyed-HMAC (Hash Message Authentication Code)    stackoverflow.com

what is keyed-HMAC (Hash Message Authentication Code)? And how to write HMAC in web service using java?

32. CAS Proxy Authentication - How to put and retrieve a Proxy Ticket in the http Header in Java?    stackoverflow.com

I'm working on the CAS Proxy Authentication so that an application receives information from another without asking the user to re authenticate by himself. The second application is a SOAP Web ...

33. Authentication in gateway, and authorization in web app    stackoverflow.com

My Java web application requires both authentication and authorization. Valid user ID/Password should be provided prior accessing to the protected resources. Only users with proper access right/ user role (e.g. administrator) ...

34. web.xml and using RESTfull url    stackoverflow.com

While using tomcat 6 on java6 with jax-rs (jersey), I'd like my clients to be able to http GET /order but not GET /order/42 If I put something like /order/* it also ...

35. limiting who can login by role with j2ee form based authentication    stackoverflow.com

I'm using declarative J2EE form based authentication in my webapp, following the instructions given in various places such as here: http://java.dzone.com/articles/understanding-web-security It appears that the login via j_security_check allows all ...

36. Merits of Java applet for web applications    stackoverflow.com

What are the advantages and disadvantages of using a Java applet for authentication as part of a web application? I am think of cases where such an applet is only used ...

37. get user's name regardless of authentication-realm    stackoverflow.com

I'm developing a webservice in Java on a stack of Metro and Tomcat, and my problem is with the user authentication. I understand Tomcat can make use of several external authentication ...

38. i am unable to view username and password in tcp/ip monitor when i do basic authentication using JAX-WS    stackoverflow.com

Map reqContext = ((BindingProvider) port).getRequestContext(); Map> reqHeader = new HashMap>(); reqHeader.put("Username", Collections.singletonList("user")); reqHeader.put("Password", Collections.singletonList("password")); reqContext.put(MessageContext.HTTP_REQUEST_HEADERS, reqHeader); im using the above coding i am unable to view username and password in tcp/ip monitor. ...

39. J2EE User Management Library    stackoverflow.com

Folks, I develop a fair number of J2EE apps for my clients and all of them involve the concept of user account creation, authentication and in some cases, authorization, organization hierarchies, etc. I ...

40. wsimport Xauthfile problem    stackoverflow.com

I am trying to generate the java help classes that I need for a client (a.k.a consumer) for a SSL-protected web service (on Microsoft Biztalk) that is external to our company ...

41. User Login Authentication in RESTEasy java    stackoverflow.com

I want to make user Login Authentication in my web application. I am using RESTEasy restful framwork. I want to do advance login system that will generate token, make an email ...

42. java.lang.IllegalArgumentException: Invalid authentication type: want    stackoverflow.com

I have a web-service method which works fine until enabling FIPS mode in tomcat. The code bellow executes fine if FIPS mode is disable:

((X509TrustManager) tm[0]).checkClientTrusted(clientCert, "want");
But when FIPS get enable on tomcat. ...

43. J2EE authentication and authorization    stackoverflow.com

I am creating a website using J2EE. I have created a table in a PostgreSQL database for the user data(username, password, role). I want to make a security realm or something ...

44. Using Aspect Oriented Programming for user authentification in Java?    stackoverflow.com

I like to add an user authentification to my REST webservice (Guice + Jersey). I first wanted to solve the authentification with the Google Guice method interceptions. For example:

@Path("user")
public class User ...

45. HTTP basic authentication in Web Applications    coderanch.com

import java.io.*; import java.util.*; import javax.servlet.*; import javax.servlet.http.*; public class BasicAuthentication extends HttpServlet { Hashtable validUsers = new Hashtable(); public void init(ServletConfig config) throws ServletException { super.init(config); // ie this user has no password validUsers.put("james:","authorized"); validUsers.put("jswan:mypassword","authorized"); } public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { res.setContentType("text/html"); PrintWriter out = res.getWriter(); // Get Authorization header String auth = req.getHeader("Authorization"); // ...

46. Different authentication in one web app?    coderanch.com

Hi there, we've implemented a web app where we use form based authentication. Works like a charm. Now new requirements make us implement webDAV on top of the app (by adding a new servlet). webDAV doesn't support (?) form based authentication, only basic and digest (???) (Does it support client cert?). Can we use different types of authentication in the same ...

47. Form Based Authentication with 2 webapps    coderanch.com

I previously built a webapp using form based authentication (j_security_check, etc.) and protected directories for regular HTML browsers. Now I want to build a second webapp for WAP browsers using the protected content from the first webapp. I setup a subdomain for this second webapp (ie. wap.mydomain.com) and it's pointing to a directory called "wap" inside the first webapp. I am ...

49. Client Authentication(How to limit the computer to access to j2ee application)    coderanch.com

A j2ee application is deployed in tomcat, user in parent company(Intranet) or child company(Internet) will access to this application, Here is a requirement: Just specific computers can access to this application located in parent company, that is, just the computer in company can access to this application, other computers outside of company can not access to application. PS: The IP Address ...

50. Using both BASIC and FORM authentication for different sections of same web application    coderanch.com

I'm using FORM auth for my web app. However, I need to present a file to Google Earth. GE only accepts BASIC auth. How can I set up my app to do FORM auth for everything and BASIC auth for the GE file? I'm using Tomcat 6. I tried adding in a second security constraint, but that's not valid. Is there ...

51. How to avoid a Basic Authentication popup via link?    forums.oracle.com

Hi Thanx, but I think the problem is that the IE doesn't support this format anymore.... Even Mozilla doesn't get it. But is there a way to generate and execute this URL from a Server and send the response to the client? Like: Browser, log in form -> Servlet Engine (generates URL), forwards URL to ISA Server -> ISA Server accepts ...

52. Authentication filter, mapping problem    forums.oracle.com

fltChn.doFilter( req, resp ); } It works but I have a problem for the mapping (in my web.xml file). I need to distinguish public and private pages and dont know how to do. With IdentificationFilter *.sjsp the problem si my sjsp files (containing jsp code) arent evaluated by Tomcat and the jsp code is returned... Any help would be ...

53. configuring the authentication scheme for a web application    forums.oracle.com

Since the deployment descriptor (web.xml) allows only one directive for auth-method in logic-config, we want to know if there is any other way to achieve this requirement. We are thinking of a custom login module approach. But we are not able to figure out how to configure the auth-method at runtime from the login servlet.

54. WebApp Authentication    forums.oracle.com