Results 1 to 5 of 5

Thread: Spring Security + CAS get attributes from CAS.

  1. #1
    Join Date
    Sep 2011
    Posts
    3

    Default Spring Security + CAS get attributes from CAS.

    All the examples of CAS and spring security I have found so far show using CAS for authentication only.

    I need to use CAS for authentication and authorization via the attribute release from CAS. My CAS does get roles from LDAP, but I don't want my spring app to talk to LDAP.

    Can spring security + CAS be configured to do this ?

  2. #2
    Join Date
    Jan 2008
    Posts
    1,834

    Default

    See if this thread helps
    Rob Winch
    Twitter @rob_winch
    Spring Security Lead
    Spring by Pivotal

  3. #3
    Join Date
    Sep 2011
    Posts
    3

    Default

    No I don't think it does. I have read all those docs through several times.
    Maybe I am too dense to see it.

    There is nothing there about using CAS for authorization just authentication.

    All the samples that I have seen show CAS as authorization and then spring security getting roles from LDAP.
    I need to get the roles/attributes from CAS.

  4. #4
    Join Date
    Jan 2008
    Posts
    1,834

    Default

    The CAS server can be configured to return additional attributes (i.e. user roles) in the CAS response. Consult the CAS Server documentation to learn how to do this. You can then use the information on the previously linked thread to create the user's roles from the CAS response.
    Rob Winch
    Twitter @rob_winch
    Spring Security Lead
    Spring by Pivotal

  5. #5
    Join Date
    Dec 2008
    Location
    New York City
    Posts
    135

    Default

    You might start with the cas ticket validator code in the jasig cas client. For example https://source.jasig.org/cas-clients...Validator.java

    That's where the cas attributes are parsed. If you're lucky - you might just get away with configuring a different ticketvalidator in your authentication provider.

Tags for this Thread

Posting Permissions

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