Skip to content
Health
55/100
fair
  • Security25/25
    No findings
  • Activity0/25
    Last human commit 89 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity25/25
    In 4 Odoo series since 8.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
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

Description

Dependencies

Odoo dependencies
odoo/odoo:
- web
- bus
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 IDNameModelTypeStatus
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_ids Many2many → res.users
    comodel_name='res.users' default=<expr>
Public methods (1)
  • button_create_user(self)
    @api.multi
    Create 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)
  • endpoint Char
    readonly=True related='provider_id.users_endpoint'
  • login_match_key Selection
    default='username:login' help="Keycloak user field to match users' login." selection=[('username:login', 'username'), ('email:partner_id.email', 'email')]
  • management_enabled Boolean
    readonly=True related='provider_id.users_management_enabled'
  • provider_id Many2one → auth.oauth.provider
    comodel_name='auth.oauth.provider' required=True string='Provider'
  • pwd Char
    readonly=True related='provider_id.superuser_pwd'
  • user Char
    readonly=True related='provider_id.superuser'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (1)
  • button_sync(self)
    @api.multi
    Sync 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_secret Char
  • superuser Char
    help='A super power user that is able to CRUD users on KC.' placeholder='admin' required=False
  • superuser_pwd Char
    help='"Superuser" user password' placeholder='I hope is not "admin"' required=False
  • users_endpoint Char
    help='User endpoint' placeholder='http://keycloak.mycompany.com/auth/admin/realms/{realm}/users' required=False
  • users_management_enabled Boolean
    compute='_compute_users_management_enabled'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (1)
  • button_push_to_keycloak(self, vals)
    @api.multi
    Quick action to push current users to Keycloak.

Loading…

Loading…

Loading…

Loading…