shiro

    0熱度

    1回答

    我試圖通過Apache Shiro使用dropwizard編寫我的休息服務。首先,我使用主要方法初始化安全管理器。 Factory<SecurityManager> factory = new IniSecurityManagerFactory("classpath:shiro.ini"); SecurityManager securityManager = factory.getIns

    0熱度

    1回答

    我需要在EAR應用程序中創建的各種WAR中執行SSO。我遵循了這裏提供的演示https://github.com/pac4j/buji-pac4j-demo,並在EAR中的每個WAR中配置每個shiro.ini,其方式與演示中提供的完全相同。我正在使用資源:samlKeystore.jks(具有相同的憑據)並嘗試使用相同的okta(resource:metadata-okta.xml)IDP進行連

    0熱度

    1回答

    我出於安全原因集成了Spring MVC應用程序Shiro。 我的所有網址工作正常,但我有幾個html頁面可以直接訪問,而不會被擊中我的控制器。 如何保護這些頁面,即如果用戶未登錄到應用程序,並嘗試打開html頁面,他應該被重定向到登錄頁面。 <filter> <filter-name>shiroFilter</filter-name> <filter-class>org.

    1熱度

    1回答

    我有兩個類Stream和Lake,它們擴展了WaterBody。 Stream或Lake存儲在由Apache Shiro 1.2.4管理的會話中以供稍後使用。 WaterBody lake = new Lake(); session.setAttribute("water", lake);` ,並通過使用 WaterBody water = (WaterBody) session.getAt

    0熱度

    1回答

    我想實現在Apache Shiro中列出登錄用戶列表的解決方案。我想這樣的代碼: public Collection<Session> listAccounts() throws IllegalAccessException, NoSuchMethodException, IllegalArgumentException, InvocationTargetException {

    0熱度

    1回答

    後在CAS子系統錯誤如下: jasig CAS 4.0 +四郎1.2.1 +彈簧3.2.1 客戶端配置文件如下: <bean id="shiroFilter" class="org.apache.shiro.spring.web.ShiroFilterFactoryBean"> <property name="securityManager" ref="securityManager"

    0熱度

    1回答

    我是安全和Apache Shiro的新手。我最近在學習Shiro。 據我所知,有兩種方法通過使用md5來散列值,代碼如下。 public static void main(String[] args) { SecureRandomNumberGenerator generator = new SecureRandomNumberGenerator(); ByteSource n

    0熱度

    1回答

    我想測試Apache Shiro與Spring MVC的集成。在添加Realm之前,我想以shiro.ini定義它的方式在內存中對用戶進行測試。我無法找到關於Spring + Shiro的足夠信息。 我想補充的用戶在applicationConfig.xml作爲shiro.ini做的: [users] root = secret, admin myname = 0000, admin gue

    0熱度

    2回答

    這裏是東西: 我想有這樣的角色的用戶: 表用戶: ID |用戶名| ROLE_ID 表的角色: ID |名稱| add_users | add_customers | configure_mail | ... | ... | ... 權限是二進制類型,當用戶可以執行操作時它具有1或者它有0否則。 在我shiro.ini我有疑問: jdbcRealm=org.apache.shiro.realm.j

    1熱度

    1回答

    好吧,我正式混淆了。 在Shiro我有我自己的領域(DatastoreRealm),它擴展了AuthorizingRealm。在我的DatastoreRealm中,我有方法「clearCachedAuthorizationInfo」,它允許我清除用戶權限等等,然後重新檢查這些權限是否隨時更改。 爲了獲得該方法,我必須訪問我的DatastoreRealm對象。 我這樣做以下列方式... privat