mirror of
https://github.com/bringout/oca-server-auth.git
synced 2026-04-18 18:51:59 +02:00
Initial commit: OCA Server Auth packages (29 packages)
This commit is contained in:
commit
3ed80311c4
1325 changed files with 127292 additions and 0 deletions
|
|
@ -0,0 +1,106 @@
|
|||
<?xml version="1.0" ?>
|
||||
<odoo>
|
||||
<record id="view_auth_jwt_validator_form" model="ir.ui.view">
|
||||
<field name="name">auth.jwt.validator.form</field>
|
||||
<field name="model">auth.jwt.validator</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="arch">
|
||||
<sheet>
|
||||
<group col="4">
|
||||
<group colspan="2" string="General">
|
||||
<field name="name" />
|
||||
<field name="next_validator_id" />
|
||||
</group>
|
||||
<group colspan="2" string="Token validation">
|
||||
<field name="audience" />
|
||||
<field name="issuer" />
|
||||
<field name="signature_type" />
|
||||
<field
|
||||
name="secret_key"
|
||||
string="Key"
|
||||
attrs="{'invisible': [('signature_type', '!=', 'secret')],
|
||||
'required': [('signature_type', '=', 'secret')]}"
|
||||
/>
|
||||
<field
|
||||
name="secret_algorithm"
|
||||
string="Algorithm"
|
||||
attrs="{'invisible': [('signature_type', '!=', 'secret')],
|
||||
'required': [('signature_type', '=', 'secret')]}"
|
||||
/>
|
||||
<field
|
||||
name="public_key_jwk_uri"
|
||||
string="JWK URI"
|
||||
attrs="{'invisible': [('signature_type', '!=', 'public_key')],
|
||||
'required': [('signature_type', '=', 'public_key')]}"
|
||||
widget="url"
|
||||
/>
|
||||
<field
|
||||
name="public_key_algorithm"
|
||||
string="Algorithm"
|
||||
attrs="{'invisible': [('signature_type', '!=', 'public_key')],
|
||||
'required': [('signature_type', '=', 'public_key')]}"
|
||||
/>
|
||||
</group>
|
||||
<group colspan="2" string="User">
|
||||
<field name="user_id_strategy" />
|
||||
<field
|
||||
name="static_user_id"
|
||||
attrs="{'invisible': [('user_id_strategy', '!=', 'static')],
|
||||
'required': [('user_id_strategy', '=', 'static')]}"
|
||||
/>
|
||||
</group>
|
||||
<group colspan="2" string="Partner">
|
||||
<field name="partner_id_strategy" />
|
||||
<field name="partner_id_required" />
|
||||
</group>
|
||||
<group colspan="2" string="Cookie">
|
||||
<field name="cookie_enabled" />
|
||||
<field
|
||||
name="cookie_name"
|
||||
attrs="{'required': [('cookie_enabled', '=', True)],
|
||||
'invisible': [('cookie_enabled', '=', False)]}"
|
||||
/>
|
||||
<field
|
||||
name="cookie_path"
|
||||
attrs="{'invisible': [('cookie_enabled', '=', False)]}"
|
||||
/>
|
||||
<field
|
||||
name="cookie_max_age"
|
||||
attrs="{'invisible': [('cookie_enabled', '=', False)]}"
|
||||
/>
|
||||
</group>
|
||||
</group>
|
||||
</sheet>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
<record id="view_auth_jwt_validator_tree" model="ir.ui.view">
|
||||
<field name="name">auth.jwt.validator.tree</field>
|
||||
<field name="model">auth.jwt.validator</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree>
|
||||
<field name="name" />
|
||||
<field name="issuer" />
|
||||
<field name="audience" />
|
||||
<field name="signature_type" />
|
||||
<field name="user_id_strategy" />
|
||||
<field name="partner_id_strategy" />
|
||||
<field name="partner_id_required" />
|
||||
<field name="next_validator_id" />
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
<record id="action_auth_jwt_validator" model="ir.actions.act_window">
|
||||
<field name="name">JWT Validators</field>
|
||||
<field name="res_model">auth.jwt.validator</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
</record>
|
||||
<menuitem
|
||||
id="menu_auth_jwt_validator"
|
||||
name="JWT Validators"
|
||||
parent="base.menu_users"
|
||||
sequence="30"
|
||||
action="action_auth_jwt_validator"
|
||||
groups="base.group_no_one"
|
||||
/>
|
||||
</odoo>
|
||||
Loading…
Add table
Add a link
Reference in a new issue