fix(starter): add admin user config and full authorization setup in DataInitializer#1
Open
kthoms wants to merge 1 commit into
Open
fix(starter): add admin user config and full authorization setup in DataInitializer#1kthoms wants to merge 1 commit into
kthoms wants to merge 1 commit into
Conversation
…ataInitializer application.properties.jte: adds operaton.bpm.admin-user and operaton.bpm.filter.create so generated projects start with a working admin login (admin/admin) and an "All Tasks" filter out of the box. DataInitializer.java.jte: guards against read-only identity providers, uses the Groups.OPERATON_ADMIN constant instead of the bare string "operaton-admin", creates the admin user first so memberships succeed, and grants ALL permissions on every built-in resource to the OPERATON_ADMIN group — matching the engine's own authorization model. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
application.properties.jte: Addsoperaton.bpm.admin-userandoperaton.bpm.filter.create=All Tasksso generated projects start with a workingadmin/adminlogin and a default task filter out of the box.DataInitializer.java.jte: Three improvements to the uc-01 leave-request seed:Groups.OPERATON_ADMINconstant instead of the bare"operaton-admin"stringALLpermissions on every built-inResourceto theOPERATON_ADMINgroup — matching the engine's own authorization model so the admin user can actually access Cockpit/Tasklist/REST APITest plan
admin/adminlogs in to Cockpit without errorsalice,bob,carolusers are created and can log in🤖 Generated with Claude Code