Skip to content

Commit

Permalink
feat: add predefined schedule execute user [BACKLOG-40292]
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrasil committed Mar 28, 2024
1 parent dd3b5df commit 9c4ee21
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,15 @@
</bean>

<bean id="memoryUserDetailsService" class="org.pentaho.platform.plugin.services.security.userrole.memory.DefaultInMemoryUserDetailsService">
<constructor-arg ref="tenantedUserNameUtils"/>
<constructor-arg ref="users"/>
<constructor-arg ref="tenantedUserNameUtils"/>
<constructor-arg ref="users"/>
<pen:publish as-type="INTERFACES">
<pen:attributes>
<pen:attr key="providerName" value="memory"/>
</pen:attributes>
</pen:publish>
</bean>


<bean id="users" class="org.springframework.beans.factory.config.PropertiesFactoryBean">
<property name="properties">
<props>
Expand All @@ -44,6 +43,7 @@
<prop key="pat">password,Business Analyst,Authenticated</prop>
<prop key="tiffany">password,Report Author,Authenticated</prop>
<prop key="joe">password,Report Author,Administrator,Authenticated</prop>
<prop key="bob">password,Schedule Power User,Authenticated</prop>
</props>
</property>
</bean>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,14 @@
<value>org.pentaho.security.publish</value>
</util:list>

<util:list id="schedulePowerUser">
<value>org.pentaho.scheduler.execute</value>
<value>org.pentaho.repository.read</value>
</util:list>

<util:map id="role-mappings">
<entry key="Power User" value-ref="powerUser" />
<entry key="Schedule Power User" value-ref="schedulePowerUser" />
<entry key="Report Author" value-ref="reportAuthor" />
<entry key="Business Analyst" value-ref="businessAnalyst" />
</util:map>
Expand Down Expand Up @@ -58,18 +64,26 @@
</util:list>
</entry>

<entry key="bob">
<util:list>
<ref bean="singleTenantAuthenticatedAuthorityName"/>
<value>Schedule Power User</value>
</util:list>
</entry>

<entry key="tiffany">
<util:list>
<ref bean="singleTenantAuthenticatedAuthorityName"/>
<value>Report Author</value>
</util:list>
</entry>
<entry key-ref="singleTenantAdminUserName">

<entry key-ref="singleTenantAdminUserName">
<util:list>
<ref bean="singleTenantAuthenticatedAuthorityName"/>
<ref bean="singleTenantAdminAuthorityName"/>
</util:list>
</entry>
</util:map>
</util:map>

</beans>

0 comments on commit 9c4ee21

Please sign in to comment.