dataset/seed/oauth2-client/dictionaries/30_oauth2_client.xml

64 lines
3.6 KiB
XML
Raw Normal View History

2022-03-08 19:42:28 +01:00
<?xml version='1.0' encoding='UTF-8'?>
<rougail version="0.10">
2022-08-18 16:38:37 +02:00
<services>
2023-06-23 08:12:05 +02:00
<service name="oauth2-client" target="risotto" engine="ansible"/>
2022-08-18 16:38:37 +02:00
</services>
2022-03-08 19:42:28 +01:00
<variables>
<family name="oauth2_client" description="OAuth2 client">
2022-08-18 10:19:43 +02:00
<variable name="oauth2_client_server_domainname" type="domainname" description="OAuth2 server domain name" mandatory='True' supplier="OAuth2"/>
2023-08-02 09:26:54 +02:00
<variable name="oauth2_is_client_application" type="boolean" description="OAuth2 client is an application" mandatory='True' hidden="True">
2022-03-08 19:42:28 +01:00
<value>False</value>
</variable>
2023-08-02 09:26:54 +02:00
<variable name="oauth2_client_name" description="OAuth2 client name" mandatory='True' supplier="OAuth2:name" test="example"/>
<variable name="oauth2_client_description" description="OAuth2 client description" mandatory='True' supplier="OAuth2:description" test="Example description"/>
2022-08-18 10:19:43 +02:00
<variable name="oauth2_client_login" type="web_address" description="OAuth2 URL to valid login" supplier="OAuth2:login"/>
2022-06-24 19:00:16 +02:00
<family name="external">
2022-08-18 10:19:43 +02:00
<variable name="oauth2_client_external" type="web_address" description="OAuth2 client external" mandatory='True' multi="True" supplier="OAuth2:external"/>
<variable name="oauth2_client_family" description="OAuth2 family" supplier="OAuth2:family">
2022-06-24 19:00:16 +02:00
<value>users</value>
</variable>
</family>
2022-08-18 10:19:43 +02:00
<variable name="oauth2_client_category" description="OAuth2 category" mandatory='True' supplier="OAuth2:category">
2022-03-29 16:33:20 +02:00
<value>Défaut</value>
</variable>
2022-08-18 10:19:43 +02:00
<variable name="oauth2_client_logo" description="OAuth2 logo" mandatory='True' supplier="OAuth2:logo">
2022-03-29 16:33:20 +02:00
<value>demo.png</value>
</variable>
2023-06-23 08:12:05 +02:00
<variable name="oauth2_client_id" description="OAuth2 ID" mandatory='True' hidden='True' supplier="OAuth2:client_id"/>
2022-08-18 10:19:43 +02:00
<variable name="oauth2_client_secret" type="password" description="OAuth2 secret" mandatory='True' hidden='True' supplier="OAuth2:secret"/>
<variable name="oauth2_client_token_signature_algo" type="choice" description="OAuth2 token signature algorithm" mandatory='True' hidden='True' supplier="OAuth2:token_signature_algo">
2022-03-08 19:42:28 +01:00
<value>HS512</value>
<choice>HS512</choice>
<choice>RS256</choice>
</variable>
2023-07-31 15:30:32 +02:00
<variable name="oauth2_server_domainname" type="domainname" description="OAuth2 server external domain name" mandatory='True' provider="OAuth2:external_domain"/>
2022-03-08 19:42:28 +01:00
</family>
</variables>
<constraints>
2022-06-26 19:33:44 +02:00
<fill name="normalize_family">
<param type="variable">domain_name_eth0</param>
2022-03-08 19:42:28 +01:00
<target>oauth2_client_id</target>
</fill>
2022-06-26 19:33:44 +02:00
<fill name="get_password">
<param name="server_name" type="variable">domain_name_eth0</param>
<param name="username" type="variable">oauth2_client_id</param>
<param name="description">remote</param>
<param name="type">cleartext</param>
<param name="hide" type="variable">hide_secret</param>
2022-03-08 19:42:28 +01:00
<target>oauth2_client_secret</target>
</fill>
2022-03-11 18:41:49 +01:00
<fill name="calc_oauth2_client_external">
<param type="variable" optional="True">revprox_client_external_domainnames</param>
2022-03-08 19:42:28 +01:00
<param type="variable" optional="True">revprox_client_location</param>
<target>oauth2_client_external</target>
</fill>
<condition name="disabled_if_in" source="oauth2_is_client_application">
<param>False</param>
<target type="variable">oauth2_client_name</target>
<target type="variable">oauth2_client_description</target>
<target type="variable">oauth2_client_external</target>
2022-06-24 19:00:16 +02:00
<target type="variable">oauth2_client_family</target>
2022-03-08 19:42:28 +01:00
</condition>
</constraints>
</rougail>