0
通過一些鏈接彈簧安全性後,我瞭解它是如何工作的。儘管如此,我仍然對我應該在spring-security.xml中提供的用戶名和密碼感到困惑,因爲我正在使用JSON
。我所有的數據都存儲在服務器上。如果我登錄頁面,它將檢查服務器是否存在數據,如果有,那麼它應該進行如何使用spring security和authentication來做到這一點..?對此有任何幫助..?這是我的彈簧security.xml文件彈簧安全,其中數據存儲在服務器上
<http use-expressions="true">
<intercept-url pattern="/signin*" access="isAnonymous()" />
<intercept-url pattern="/**" access="isAuthenticated()"/>
<form-login
login-page='/signin'
default-target-url="/home"
authentication-failure-url="/signin?error=true"
login-processing-url="/security/j_spring_security_check"
/>
<logout logout-success-url="/signin" />
</http> and may be i have to add some ref in the authentication manager so that it will check the username and password which are present in the remote server..
<authentication-manager alias="authenticationManager">
<authentication-provider user-service-ref="user" />
</authentication-manager>
如果一些鏈接在那裏或某些info..then請幫助我在這個服務器
u能告訴我應該在我的控制器寫的authentiation ..?給我一些提示或鏈接哪些是有用的 – ghhhhhhhh 2014-09-04 11:19:22