簡體   English   中英

Spring Authentication如何工作?

[英]How does Spring Authentication work?

我一直在嘗試制作一個接收用戶名和密碼並返回某種會話的Web服務,該會話告訴接收者他們可以做什么和不能做什么。

  1. Spring在哪里以及如何處理會話和權限?
  2. 在我的登錄表單上,我有

<form method="POST" action="<c:url value="/j_spring_security_check" />">

這是做什么的,有可能創建一個做同樣事情的Web服務嗎?

我認為您的項目已與spring-security插件集成。 <c:url value="/j_spring_security_check">行將userid,paswd提交給spring安全攔截器,后者決定調用服務或做spring-security.xml文件中提到的任何事情。 檢查web.xml文件中的以下代碼以進行確認。

    <filter-mapping>
      <filter-name>springSecurityFilterChain</filter-name>
      <url-pattern>/*</url-pattern>
    </filter-mapping> 

發布您的spring configuration.xml文件和web.xml以進行更多分析。 對於身份驗證,為什么要編寫Web服務? 有關Spring安全性的更多信息,請閱讀doc http://static.springsource.org/spring-security/site/

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM