How to configure JBoss DatabaseServerLoginModule for Digest Authentication in a Web Application

前端 未结 4 2102
广开言路
广开言路 2020-12-19 13:59

In a sentence, I want to configure JBoss 4.2.2 to use DatabaseServerLoginModule as the login-module for a Web application that is secured via Digest Authentication. The pro

4条回答
  •  独厮守ぢ
    2020-12-19 14:48

    So I finally figured this one out. The key was the following:

    
    
        
            java:/SecRestDS
            
                SELECT PASSWORD FROM SR_USER WHERE USERNAME=?
            
            
                SELECT r.ROLE_NAME, 'Roles' FROM SR_ROLE r, SR_USER_ROLE ur, SR_USER u WHERE
                u.USERNAME=? AND u.ID=ur.FK_USER_ID AND ur.FK_ROLE_ID=r.ID
                
            MD5
            rfc2617
            false
            true
            false
            org.jboss.security.auth.spi.RFC2617Digest
        
    
    

提交回复
热议问题