luoye0070 / customsecurityplugin Goto Github PK
View Code? Open in Web Editor NEW定制的安全插件
定制的安全插件
1、请在Config.groovy中添加如下代码: // Added by the Spring Security Core plugin: grails.plugins.springsecurity.userLookup.userDomainClassName = 'com.lj.csp.data.Member' grails.plugins.springsecurity.userLookup.authorityJoinClassName = 'com.lj.csp.data.MemberAuthority' grails.plugins.springsecurity.authority.className = 'com.lj.csp.data.Authority' grails.plugins.springsecurity.requestMap.className = 'com.lj.csp.data.Requestmap' grails.plugins.springsecurity.apf.filterProcessesUrl = '/login_check' //登录验证的路径,前台把用户名和密码提交到这个路径 ,默认是j_spring_security_check grails.plugins.springsecurity.apf.usernameParameter = 'username' //前台提交用户名 时用到的参数名称,可以自定义,与前台一致即可 grails.plugins.springsecurity.apf.passwordParameter = 'password' //前台提交密码 时用到的参数名称,可以自定义,与前台一致即可 grails.plugins.springsecurity.logout.filterProcessesUrl = '/logout' //退出验证的路径, 前台要与此一致 grails.plugins.springsecurity.securityConfigType = "Requestmap" 2、请在BootStrap.groovy中添加初始化代码: userApiService.init(); 3、请安装插件: plugins.spring-security-core=1.2.7.3 4、由于在CustomSecurityPluginGrailsPlugin排除了所用的的jar包,所以请添加依赖的jar包 json-simple-1.1.jar spring-security-core-3.0.7.RELEASE.jar spring-security-web-3.0.7.RELEASE.jar
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.