You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jspwiki.apache.org by "Alex O'Ree (Jira)" <ji...@apache.org> on 2025/10/29 18:10:00 UTC

[jira] [Commented] (JSPWIKI-1176) Admin and Autenticated roles hard coded

    [ https://issues.apache.org/jira/browse/JSPWIKI-1176?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18033930#comment-18033930 ] 

Alex O'Ree commented on JSPWIKI-1176:
-------------------------------------

i ran into this as well. It might be what's hard coded in Installer.java in the main jar and Role.java

I kind of think they should be specified in the properties file, or at least able to overridden some how

> Admin and Autenticated roles hard coded
> ---------------------------------------
>
>                 Key: JSPWIKI-1176
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-1176
>             Project: JSPWiki
>          Issue Type: Bug
>          Components: Authentication &amp; Authorization
>    Affects Versions: 2.11.3
>         Environment: wildfly-26.1.2.Final
>            Reporter: Jürgen Weber
>            Priority: Minor
>
> With container manged auth in JBoss EAP I had changed the Admin and Autenticated role names to role names from our AD.
> (changed jspwiki.policy and web.xml)
> Login and trying to edit failed then with the infamous Sorry, but you are not allowed to do that error page.
> I then used a JBoss role mapper from our roles to Admin and Autenticated and things worked.
> Looks like the  Admin and Autenticated roles are somewhere hard coded (in .js ?).



--
This message was sent by Atlassian Jira
(v8.20.10#820010)