You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
1.2 KiB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Copyright 2016 SYLEAM
  4. License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
  5. -->
  6. <odoo>
  7. <record id="view_oauth_provider_client_form" model="ir.ui.view">
  8. <field name="name">oauth.provider.client.form</field>
  9. <field name="model">oauth.provider.client</field>
  10. <field name="inherit_id" ref="oauth_provider.view_oauth_provider_client_form"/>
  11. <field name="arch" type="xml">
  12. <xpath expr="//notebook" position="inside">
  13. <page string="JSON Web Token" attrs="{'invisible': [('token_type', '!=', 'jwt')]}">
  14. <group>
  15. <field name="jwt_scope_id"/>
  16. <field name="jwt_algorithm" attrs="{'required': [('token_type', '=', 'jwt')]}"/>
  17. <button string="Generate a new random private key" name="generate_private_key" type="object" colspan="2" attrs="{'invisible': [('jwt_algorithm', 'in', [False, 'HS256', 'HS384', 'HS512'])]}"/>
  18. <field name="jwt_private_key"/>
  19. <field name="jwt_public_key"/>
  20. </group>
  21. </page>
  22. </xpath>
  23. </field>
  24. </record>
  25. </odoo>