:source: fortios_system_saml.py
:orphan:
.. fortios_system_saml:
fortios_system_saml -- Global settings for SAML authentication in Fortinet's FortiOS and FortiGate.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
.. versionadded:: 2.0.0
.. contents::
:local:
:depth: 1
Synopsis
--------
- This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the user to set and modify system feature and saml category. Examples include all parameters and values need to be adjusted to datasources before usage. Tested with FOS v6.0.0
Requirements
------------
The below requirements are needed on the host that executes this module.
- ansible>=2.16
Tips
----
Using member operation to add an element to an existing object.
FortiOS Version Compatibility
-----------------------------
Supported Version Ranges: v6.2.0 -> v7.6.6
Parameters
----------
.. raw:: html
- access_token - Token-based authentication. Generated from GUI of Fortigate. type: str required: false
- enable_log - Enable/Disable logging for task. type: bool required: false default: False
- vdom - Virtual domain, among those defined previously. A vdom is a virtual instance of the FortiGate that can be configured and used as a different unit. type: str default: root
- member_path - Member attribute path to operate on. type: str
- member_state - Add or delete a member under specified attribute path. type: str choices: present, absent
- system_saml - Global settings for SAML authentication. type: dict
more...
| Supported Version Ranges |
| system_saml |
v6.2.0 -> 7.6.6 |
- artifact_resolution_url - SP artifact resolution URL. type: str
more...
|
Supported Version Ranges |
| artifact_resolution_url |
v6.2.3 -> v6.2.3 |
- binding_protocol - IdP Binding protocol. type: str choices: post, redirect
more...
|
Supported Version Ranges |
| binding_protocol |
v6.2.3 -> v6.2.3 |
v7.0.0 -> 7.6.6 |
| [post] |
v6.2.3 -> v6.2.3 |
| [redirect] |
v7.0.0 -> 7.6.6 |
- cert - Certificate to sign SAML messages. Source certificate.local.name. type: str
more...
|
Supported Version Ranges |
| cert |
v6.2.0 -> 7.6.6 |
- default_login_page - Choose default login page. type: str choices: normal, sso
more...
|
Supported Version Ranges |
| default_login_page |
v6.2.0 -> 7.6.6 |
| [normal] |
v6.2.0 -> 7.6.6 |
| [sso] |
v6.2.0 -> 7.6.6 |
- default_profile - Default profile for new SSO admin. Source system.accprofile.name. type: str
more...
|
Supported Version Ranges |
| default_profile |
v6.2.0 -> 7.6.6 |
- entity_id - SP entity ID. type: str
more...
|
Supported Version Ranges |
| entity_id |
v6.2.0 -> v7.0.5 |
v7.2.0 -> v7.2.0 |
v7.4.1 -> 7.6.6 |
- idp_artifact_resolution_url - IDP artifact resolution URL. type: str
more...
|
Supported Version Ranges |
| idp_artifact_resolution_url |
v6.2.3 -> v6.2.3 |
- idp_cert - IDP certificate name. Source certificate.remote.name. type: str
more...
|
Supported Version Ranges |
| idp_cert |
v6.2.0 -> 7.6.6 |
- idp_entity_id - IDP entity ID. type: str
more...
|
Supported Version Ranges |
| idp_entity_id |
v6.2.0 -> 7.6.6 |
- idp_single_logout_url - IDP single logout URL. type: str
more...
|
Supported Version Ranges |
| idp_single_logout_url |
v6.2.0 -> 7.6.6 |
- idp_single_sign_on_url - IDP single sign-on URL. type: str
more...
|
Supported Version Ranges |
| idp_single_sign_on_url |
v6.2.0 -> 7.6.6 |
- life - Length of the range of time when the assertion is valid (in minutes). type: int
more...
|
Supported Version Ranges |
| life |
v6.2.0 -> 7.6.6 |
- portal_url - SP portal URL. type: str
more...
|
Supported Version Ranges |
| portal_url |
v6.2.0 -> v7.0.5 |
v7.2.0 -> v7.2.0 |
- require_signed_resp_and_asrt - Require both response and assertion from IDP to be signed when FGT acts as SP . type: str choices: enable, disable
more...
|
Supported Version Ranges |
| require_signed_resp_and_asrt |
v7.6.5 -> 7.6.6 |
| [enable] |
v7.6.5 -> 7.6.6 |
| [disable] |
v7.6.5 -> 7.6.6 |
- role - SAML role. type: str choices: identity-provider, service-provider
more...
|
Supported Version Ranges |
| role |
v6.2.0 -> 7.6.6 |
| [identity-provider] |
v6.2.0 -> 7.6.6 |
| [service-provider] |
v6.2.0 -> 7.6.6 |
- server_address - Server address. type: str
more...
|
Supported Version Ranges |
| server_address |
v6.2.0 -> 7.6.6 |
- service_providers - Authorized service providers. type: list member_path: service_providers:name
more...
| Supported Version Ranges |
| service_providers |
v6.2.0 -> 7.6.6 |
- assertion_attributes - Customized SAML attributes to send along with assertion. type: list member_path: service_providers:name/assertion_attributes:name
more...
| Supported Version Ranges |
| assertion_attributes |
v6.2.0 -> 7.6.6 |
- name - Name. type: str required: true
more...
|
Supported Version Ranges |
| name |
v6.2.0 -> 7.6.6 |
- type - Type. type: str choices: username, email, profile-name
more...
|
Supported Version Ranges |
| type |
v6.2.0 -> 7.6.6 |
| [username] |
v6.2.0 -> 7.6.6 |
| [email] |
v6.2.0 -> 7.6.6 |
| [profile-name] |
v6.4.0 -> 7.6.6 |
- idp_artifact_resolution_url - IDP artifact resolution URL. type: str
more...
|
Supported Version Ranges |
| idp_artifact_resolution_url |
v6.2.3 -> v6.2.3 |
- idp_entity_id - IDP entity ID. type: str
more...
|
Supported Version Ranges |
| idp_entity_id |
v6.2.0 -> v7.0.5 |
v7.2.0 -> v7.2.0 |
- idp_single_logout_url - IDP single logout URL. type: str
more...
|
Supported Version Ranges |
| idp_single_logout_url |
v6.2.0 -> v7.0.5 |
v7.2.0 -> v7.2.0 |
- idp_single_sign_on_url - IDP single sign-on URL. type: str
more...
|
Supported Version Ranges |
| idp_single_sign_on_url |
v6.2.0 -> v7.0.5 |
v7.2.0 -> v7.2.0 |
- name - Name. type: str required: true
more...
|
Supported Version Ranges |
| name |
v6.2.0 -> 7.6.6 |
- prefix - Prefix. type: str
more...
|
Supported Version Ranges |
| prefix |
v6.2.0 -> 7.6.6 |
- sp_artifact_resolution_url - SP artifact resolution URL. type: str
more...
|
Supported Version Ranges |
| sp_artifact_resolution_url |
v6.2.3 -> v6.2.3 |
- sp_binding_protocol - SP binding protocol. type: str choices: post, redirect
more...
|
Supported Version Ranges |
| sp_binding_protocol |
v6.2.3 -> v6.2.3 |
v7.0.0 -> 7.6.6 |
| [post] |
v6.2.3 -> v6.2.3 |
| [redirect] |
v7.0.0 -> 7.6.6 |
- sp_cert - SP certificate name. Source certificate.remote.name. type: str
more...
|
Supported Version Ranges |
| sp_cert |
v6.2.0 -> 7.6.6 |
- sp_entity_id - SP entity ID. type: str
more...
|
Supported Version Ranges |
| sp_entity_id |
v6.2.0 -> 7.6.6 |
- sp_portal_url - SP portal URL. type: str
more...
|
Supported Version Ranges |
| sp_portal_url |
v6.2.0 -> 7.6.6 |
- sp_single_logout_url - SP single logout URL. type: str
more...
|
Supported Version Ranges |
| sp_single_logout_url |
v6.2.0 -> 7.6.6 |
- sp_single_sign_on_url - SP single sign-on URL. type: str
more...
|
Supported Version Ranges |
| sp_single_sign_on_url |
v6.2.0 -> 7.6.6 |
- single_logout_url - SP single logout URL. type: str
more...
|
Supported Version Ranges |
| single_logout_url |
v6.2.0 -> v7.0.5 |
v7.2.0 -> v7.2.0 |
- single_sign_on_url - SP single sign-on URL. type: str
more...
|
Supported Version Ranges |
| single_sign_on_url |
v6.2.0 -> v7.0.5 |
v7.2.0 -> v7.2.0 |
- status - Enable/disable SAML authentication . type: str choices: enable, disable
more...
|
Supported Version Ranges |
| status |
v6.2.0 -> 7.6.6 |
| [enable] |
v6.2.0 -> 7.6.6 |
| [disable] |
v6.2.0 -> 7.6.6 |
- tolerance - Tolerance to the range of time when the assertion is valid (in minutes). type: int
more...
|
Supported Version Ranges |
| tolerance |
v6.2.0 -> 7.6.6 |
Notes
-----
.. note::
- Legacy fortiosapi has been deprecated, httpapi is the preferred way to run playbooks
- The module supports check_mode.
Examples
--------
.. code-block:: yaml+jinja
- name: Global settings for SAML authentication.
fortinet.fortios.fortios_system_saml:
vdom: "{{ vdom }}"
system_saml:
artifact_resolution_url: ""
binding_protocol: "post"
cert: " (source certificate.local.name)"
default_login_page: "normal"
default_profile: " (source system.accprofile.name)"
entity_id: ""
idp_artifact_resolution_url: ""
idp_cert: " (source certificate.remote.name)"
idp_entity_id: ""
idp_single_logout_url: ""
idp_single_sign_on_url: ""
life: "30"
portal_url: ""
require_signed_resp_and_asrt: "enable"
role: "identity-provider"
server_address: ""
service_providers:
-
assertion_attributes:
-
name: "default_name_21"
type: "username"
idp_artifact_resolution_url: ""
idp_entity_id: ""
idp_single_logout_url: ""
idp_single_sign_on_url: ""
name: "default_name_27"
prefix: ""
sp_artifact_resolution_url: ""
sp_binding_protocol: "post"
sp_cert: " (source certificate.remote.name)"
sp_entity_id: ""
sp_portal_url: ""
sp_single_logout_url: ""
sp_single_sign_on_url: ""
single_logout_url: ""
single_sign_on_url: ""
status: "enable"
tolerance: "5"
Return Values
-------------
Common return values are documented: https://docs.ansible.com/ansible/latest/reference_appendices/common_return_values.html#common-return-values, the following are the fields unique to this module:
.. raw:: html
- build - Build number of the fortigate image returned: always type: str sample: 1547
- http_method - Last method used to provision the content into FortiGate returned: always type: str sample: PUT
- http_status - Last result given by FortiGate on last operation applied returned: always type: str sample: 200
- mkey - Master key (id) used in the last call to FortiGate returned: success type: str sample: id
- name - Name of the table used to fulfill the request returned: always type: str sample: urlfilter
- path - Path of the table used to fulfill the request returned: always type: str sample: webfilter
- revision - Internal revision number returned: always type: str sample: 17.0.2.10658
- serial - Serial number of the unit returned: always type: str sample: FGVMEVYYQT3AB5352
- status - Indication of the operation's result returned: always type: str sample: success
- vdom - Virtual domain used returned: always type: str sample: root
- version - Version of the FortiGate returned: always type: str sample: v5.6.3
Status
------
- This module is not guaranteed to have a backwards compatible interface.
Authors
-------
- Link Zheng (@chillancezen)
- Jie Xue (@JieX19)
- Hongbin Lu (@fgtdev-hblu)
- Frank Shen (@frankshen01)
- Miguel Angel Munoz (@mamunozgonzalez)
- Nicolas Thomas (@thomnico)
.. hint::
If you notice any issues in this documentation, you can create a pull request to improve it.