spring-security: authorization without authentication

后端 未结 7 1263
谎友^
谎友^ 2020-12-12 16:44

I\'m trying to integrate Spring Security in my web application. It seems pretty easy to do as long as you integrate the whole process of authentication and authorization.

相关标签:
7条回答
  • 2020-12-12 17:16

    The server that handles the authentication should redirect the user to the application passing to it some kind of key (a token in CAS SSO). Then the application use the key to ask to the authentication server the username and roles associated. With this info create a security context that is passed to the authorization manager. This is a very simplified version of a SSO login workflow.
    Take a look to CAS SSO and CAS 2 Architecture.
    Tell me if you need more information.

    0 讨论(0)
提交回复
热议问题