Re: Manual shiro configuration - No realms have been configured!

2021-04-26 Thread Schloool
Hey Benjamin, Thank you a lot. Defining subclasses with custom filter-functions really did the job! Thanks for helping out. :) -- Sent from: http://shiro-user.582556.n2.nabble.com/

Re: Manual shiro configuration - No realms have been configured!

2021-04-26 Thread Schloool
Thanks for your answer Benjamin! I was able to set up a custom Authenticator which selects a Realm depending on a given name. However, using this Authenticator results in issues whenever using SecurityUtils.GetSubject().checkRole("admin"); as seemingly all loaded Realms try to check the role. H

Re: Manual shiro configuration - No realms have been configured!

2021-04-21 Thread Schloool
Thanks for your answer. Wouldn't using a custom ini with interpolation mean setting up multiple "pre-set" ini-files (e.g. for LDAP, Database, ...) so the fitting ini-configuration gets loaded depending on a user's choice? As an example, when the user wants to use LDAP, he would set up an environme

Manual shiro configuration - No realms have been configured!

2021-04-21 Thread Schloool
Hey folks! While setting up a custom shiro-environment I came across a problem outsourcing the realm initialization. Using environment variables the user may choose a custom auth-method, such as LDAP, Database, etc. Therefore, the corresponding shiro.ini does *not* set a specific realm instance: