Results 1 to 4 of 4

Thread: Spring Security: 2 login method in a web app

  1. #1
    Join Date
    Nov 2010
    Posts
    9

    Default Spring Security: 2 login method in a web app

    Hi all,

    I've a problem. I develop an application that has two login. First login uses user/pwd stored on LDAP. Second login is an authentication with certificates.

    How can I develop this two method with spring security? It's possible?

    Thanks

  2. #2
    Luke Taylor is offline Senior Member Acegi Security System TeamSpring Team
    Join Date
    Aug 2004
    Location
    Glasgow, Scotland
    Posts
    3,449

    Default

    Yes, you can add both X.509 and form-login mechanisms to the filter chain. If a user supplies a client certificate that will be used, otherwise they will be prompted to login.
    Spring - by Pivotal
    twitter @tekul

  3. #3
    Join Date
    Nov 2010
    Posts
    9

    Default

    Thanks,

    can you give me an example, please?
    I'm newby of spring security

  4. #4
    Luke Taylor is offline Senior Member Acegi Security System TeamSpring Team
    Join Date
    Aug 2004
    Location
    Glasgow, Scotland
    Posts
    3,449

    Default

    Both are explain in the reference manual, and form-login is used in the "tutorial" sample application, for example. I would start by running that application and then adding X.509 authentication to it.

    If you can be more specific about what you want to know then please post a follow-up question.
    Spring - by Pivotal
    twitter @tekul

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •