开发者

Configuring default user in spring security

开发者 https://www.devze.com 2023-03-22 08:48 出处:网络
is there a wayto configure spring security 开发者_如何转开发to have a default user (with roles and such)? i want to use it for testing purposes in an embedded jetty environment.

is there a way to configure spring security 开发者_如何转开发to have a default user (with roles and such)? i want to use it for testing purposes in an embedded jetty environment.

i provided an InMemoryUserDetailsService but i am missing the part where i tell spring security to use which user.

thanks for your help

fabian


Do you mean an anonymous user?

If so, try this: http://static.springsource.org/spring-security/site/docs/3.0.x/reference/anonymous.html

("Spring Security's anonymous authentication just gives you a more convenient way to configure your access-control attributes")

0

精彩评论

暂无评论...
验证码 换一张
取 消