Keycloak auth integration
auth_keycloak · OCA/server-auth
Health
55/100
fair
-
Security25/25No findings
-
Activity0/25Last human commit 89 months ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 4 Odoo series since 8.0
Heuristic over the facts below, not an audit · How it's computed
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.15 MB
Module directory on disk
Code analysis
6 migration notes
5 models
4 views
0 HTTP endpoints
Migration considerations
KeycloakSyncWiz— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (1 methods) (2 occurrences in this file) migration-api-multi-one · sourceResUsers— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (1 methods) migration-api-multi-one · sourceauth_keycloak_create_wiz— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · sourceauth_keycloak_sync_wiz— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · sourceview_oauth_provider_form— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · sourceview_users_form— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
Dependencies
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- None
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 4
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
auth_keycloak_create_wiz |
auth.keycloak.create.wiz.form | auth.keycloak.create.wiz | form | New |
auth_keycloak_sync_wiz |
auth.keycloak.sync.wiz.form | auth.keycloak.sync.wiz | form | New |
view_oauth_provider_form |
auth.oauth.provider.form | auth.oauth.provider | form | Inherits auth_oauth.view_oauth_provider_form |
view_users_form |
keycloack res.users.form | res.users | form | Inherits base.view_users_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 5
New fields (1)
-
user_idsMany2many → res.userscomodel_name='res.users'default=<expr>
-
button_create_user(self)@api.multiCreate users on Keycloak. 1. get a token 2. loop on given users 3. push them to Keycloak if: a. missing on Keycloak b. they do not have an Oauth UID already 4. brings you to update users list
New fields (6)
-
endpointCharreadonly=Truerelated='provider_id.users_endpoint' -
login_match_keySelectiondefault='username:login'help="Keycloak user field to match users' login."selection=[('username:login', 'username'), ('email:partner_id.email', 'email')] -
management_enabledBooleanreadonly=Truerelated='provider_id.users_management_enabled' -
provider_idMany2one → auth.oauth.providercomodel_name='auth.oauth.provider'required=Truestring='Provider' -
pwdCharreadonly=Truerelated='provider_id.superuser_pwd' -
userCharreadonly=Truerelated='provider_id.superuser'
No public methods.
New fields (0)
No new fields.
Public methods (1)-
button_sync(self)@api.multiSync Keycloak users w/ Odoo users. 1. get a token 2. retrieve ALL users 3. find matching Odoo users 4. update them w/ their own Keycloak ID 5. get back to filtered list of updated users
New fields (5)
-
client_secretChar -
superuserCharhelp='A super power user that is able to CRUD users on KC.'placeholder='admin'required=False -
superuser_pwdCharhelp='"Superuser" user password'placeholder='I hope is not "admin"'required=False -
users_endpointCharhelp='User endpoint'placeholder='http://keycloak.mycompany.com/auth/admin/realms/{realm}/users'required=False -
users_management_enabledBooleancompute='_compute_users_management_enabled'
No public methods.
New fields (0)
No new fields.
Public methods (1)-
button_push_to_keycloak(self, vals)@api.multiQuick action to push current users to Keycloak.
Loading…
Loading…
Loading…
Loading…