2022-03-08 19:42:28 +01:00
|
|
|
<?xml version='1.0' encoding='UTF-8'?>
|
|
|
|
<rougail version="0.10">
|
|
|
|
<variables>
|
|
|
|
<family name="oauth2_client" description="OAuth2 client">
|
|
|
|
<variable name="oauth2_client_server_domainname" type="domainname" description="OAuth2 server domain name" mandatory='True'/>
|
|
|
|
<variable name="oauth2_is_client_application" type="boolean" description="OAuth2 client is an application" mandatory='True'>
|
|
|
|
<value>False</value>
|
|
|
|
</variable>
|
|
|
|
<variable name="oauth2_client_name" description="OAuth2 client name" mandatory='True'/>
|
|
|
|
<variable name="oauth2_client_description" description="OAuth2 client description" mandatory='True'/>
|
2022-05-23 08:49:21 +02:00
|
|
|
<variable name="oauth2_client_login" type="web_address" description="OAuth2 URL to valid login" multi="True"/>
|
2022-06-24 19:00:16 +02:00
|
|
|
<family name="external">
|
|
|
|
<variable name="oauth2_client_external" type="web_address" description="OAuth2 client external" mandatory='True' multi="True"/>
|
|
|
|
<variable name="oauth2_client_family" description="OAuth2 family">
|
|
|
|
<value>users</value>
|
|
|
|
</variable>
|
|
|
|
</family>
|
2022-03-29 16:33:20 +02:00
|
|
|
<variable name="oauth2_client_category" description="OAuth2 category" mandatory='True'>
|
|
|
|
<value>Défaut</value>
|
|
|
|
</variable>
|
|
|
|
<variable name="oauth2_client_logo" description="OAuth2 logo" mandatory='True'>
|
|
|
|
<value>demo.png</value>
|
|
|
|
</variable>
|
2022-03-08 19:42:28 +01:00
|
|
|
<variable name="oauth2_client_id" description="OAuth2 ID" mandatory='True' hidden='True'/>
|
|
|
|
<variable name="oauth2_client_secret" type="password" description="OAuth2 secret" mandatory='True' hidden='True'/>
|
|
|
|
<variable name="oauth2_client_token_signature_algo" type="choice" description="OAuth2 token signature algorithm" mandatory='True' hidden='True'>
|
|
|
|
<value>HS512</value>
|
|
|
|
<choice>HS512</choice>
|
|
|
|
<choice>RS256</choice>
|
|
|
|
</variable>
|
|
|
|
<variable name="oauth2_server_domainname" type="domainname" description="OAuth2 server domain name" mandatory='True' hidden='True'/>
|
|
|
|
</family>
|
|
|
|
</variables>
|
|
|
|
<constraints>
|
|
|
|
<fill name="set_linked">
|
|
|
|
<param name="linked_server" type="variable">oauth2_client_server_domainname</param>
|
|
|
|
<param name="linked_provider">oauth2</param>
|
|
|
|
<param name="linked_value" type="variable">domain_name_eth0</param>
|
|
|
|
<target>oauth2_client_id</target>
|
|
|
|
</fill>
|
|
|
|
<fill name="get_linked_configuration">
|
|
|
|
<param name="linked_server" type="variable">oauth2_client_server_domainname</param>
|
|
|
|
<param name="linked_provider">oauth2_secret</param>
|
|
|
|
<param name="dynamic" type="variable">oauth2_client_id</param>
|
|
|
|
<target>oauth2_client_secret</target>
|
|
|
|
</fill>
|
|
|
|
<fill name="get_linked_configuration">
|
|
|
|
<param name="linked_server" type="variable">oauth2_client_server_domainname</param>
|
|
|
|
<param name="linked_provider">external_domainname</param>
|
|
|
|
<target>oauth2_server_domainname</target>
|
|
|
|
</fill>
|
|
|
|
<check name="set_linked_configuration">
|
|
|
|
<param name="linked_server" type="variable">oauth2_client_server_domainname</param>
|
|
|
|
<param name="linked_provider">oauth2_name</param>
|
|
|
|
<param name="dynamic" type="variable">oauth2_client_id</param>
|
|
|
|
<target>oauth2_client_name</target>
|
|
|
|
</check>
|
|
|
|
<check name="set_linked_configuration">
|
|
|
|
<param name="linked_server" type="variable">oauth2_client_server_domainname</param>
|
|
|
|
<param name="linked_provider">oauth2_description</param>
|
|
|
|
<param name="dynamic" type="variable">oauth2_client_id</param>
|
|
|
|
<target>oauth2_client_description</target>
|
|
|
|
</check>
|
2022-03-29 16:33:20 +02:00
|
|
|
<check name="set_linked_configuration">
|
|
|
|
<param name="linked_server" type="variable">oauth2_client_server_domainname</param>
|
|
|
|
<param name="linked_provider">oauth2_category</param>
|
|
|
|
<param name="dynamic" type="variable">oauth2_client_id</param>
|
|
|
|
<target>oauth2_client_category</target>
|
|
|
|
</check>
|
2022-03-08 19:42:28 +01:00
|
|
|
<check name="set_linked_configuration">
|
|
|
|
<param name="linked_server" type="variable">oauth2_client_server_domainname</param>
|
|
|
|
<param name="linked_provider">oauth2_external</param>
|
|
|
|
<param name="dynamic" type="variable">oauth2_client_id</param>
|
|
|
|
<target>oauth2_client_external</target>
|
|
|
|
</check>
|
2022-03-29 16:33:20 +02:00
|
|
|
<check name="set_linked_configuration">
|
|
|
|
<param name="linked_server" type="variable">oauth2_client_server_domainname</param>
|
|
|
|
<param name="linked_provider">oauth2_logo</param>
|
|
|
|
<param name="dynamic" type="variable">oauth2_client_id</param>
|
|
|
|
<target>oauth2_client_logo</target>
|
|
|
|
</check>
|
2022-06-24 19:00:16 +02:00
|
|
|
<check name="set_linked_configuration">
|
|
|
|
<param name="linked_server" type="variable">oauth2_client_server_domainname</param>
|
|
|
|
<param name="linked_provider">oauth2_family</param>
|
|
|
|
<param name="leader_provider">oauth2_external</param>
|
|
|
|
<param name="dynamic" type="variable">oauth2_client_id</param>
|
|
|
|
<target>oauth2_client_family</target>
|
|
|
|
</check>
|
2022-03-08 19:42:28 +01:00
|
|
|
<check name="set_linked_configuration">
|
|
|
|
<param name="linked_server" type="variable">oauth2_client_server_domainname</param>
|
|
|
|
<param name="linked_provider">oauth2_login</param>
|
|
|
|
<param name="dynamic" type="variable">oauth2_client_id</param>
|
|
|
|
<target>oauth2_client_login</target>
|
|
|
|
</check>
|
|
|
|
<check name="set_linked_configuration">
|
|
|
|
<param name="linked_server" type="variable">oauth2_client_server_domainname</param>
|
|
|
|
<param name="linked_provider">oauth2_token_signature_algo</param>
|
|
|
|
<param name="dynamic" type="variable">oauth2_client_id</param>
|
|
|
|
<target>oauth2_client_token_signature_algo</target>
|
|
|
|
</check>
|
2022-03-11 18:41:49 +01:00
|
|
|
<fill name="calc_oauth2_client_external">
|
2022-05-23 08:49:21 +02:00
|
|
|
<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>
|