Giter VIP home page Giter VIP logo

Comments (3)

kakawait avatar kakawait commented on June 4, 2024

From what I read here

https://groups.google.com/forum/#!topic/jasig-cas-user/Ir9rcCuPgz4
https://issues.jasig.org/browse/CAS-1283

It seems that XML should be more like

<cas:authenticationSuccess>
    <cas:user>testc</cas:user>
    <cas:attributes>        
      <cas:longTermAuthenticationRequestTokenUsed>false</cas:longTermAuthenticationRequestTokenUsed>
      <cas:isFromNewLogin>true</cas:isFromNewLogin>
      <cas:authenticationDate>Fri Jan 05 14:40:59 CST 2018</cas:authenticationDate>
      <cas:role>a</cas:role>
      <cas:role>c</cas:role>
      <cas:userid>1</cas:userid>
      <cas:username>testc</cas:username>
  </cas:attributes>
</cas:authenticationSuccess>

But even with that format I not sure that GrantedAuthoritiesFromAssertionAttributesWithDefaultRolesUserDetailsService will work.

Anyway you can define your own AbstractCasAssertionUserDetailsService by creating a bean of AbstractCasAssertionUserDetailsService

from cas-security-spring-boot-starter.

kakawait avatar kakawait commented on June 4, 2024

@liyiorg what did you do finaly to solve your issue?

from cas-security-spring-boot-starter.

liyiorg avatar liyiorg commented on June 4, 2024

@kakawait I am change cas response xml data.
use you say xml data format

<cas:authenticationSuccess>
    <cas:user>testc</cas:user>
    <cas:attributes>        
      <cas:longTermAuthenticationRequestTokenUsed>false</cas:longTermAuthenticationRequestTokenUsed>
      <cas:isFromNewLogin>true</cas:isFromNewLogin>
      <cas:authenticationDate>Fri Jan 05 14:40:59 CST 2018</cas:authenticationDate>
      <cas:role>a</cas:role>
      <cas:role>c</cas:role>
      <cas:userid>1</cas:userid>
      <cas:username>testc</cas:username>
  </cas:attributes>
</cas:authenticationSuccess>

from cas-security-spring-boot-starter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.