Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| 712:integration:saml [2026/02/20 13:35] – [Configure the SAML Identity Provider (IdP)] Suess, Bernhard | 712:integration:saml [2026/02/20 14:02] (current) – [Configure the SAML Identity Provider (IdP)] Suess, Bernhard | ||
|---|---|---|---|
| Line 68: | Line 68: | ||
| After configuring the SAML SP and logged on as root, you can download the SAML SP metadata directly by navigating to the URL '' | After configuring the SAML SP and logged on as root, you can download the SAML SP metadata directly by navigating to the URL '' | ||
| - | For SP metadata generated correctly the full authentication section must be present in config.xml | + | For SP metadata generated correctly the whole authentication section must be present in config.xml |
| The resulting XML file can be sent to the SAML IdP administrators and contains all information necessary to set up the trust relationship on the IdP side. After the SAML IdP has been configured with the SP metadata, users will be able to authenticate successfully with Stages through the SAML IdP. | The resulting XML file can be sent to the SAML IdP administrators and contains all information necessary to set up the trust relationship on the IdP side. After the SAML IdP has been configured with the SP metadata, users will be able to authenticate successfully with Stages through the SAML IdP. | ||
| Line 85: | Line 85: | ||
| * EntityIdfromMetadata | * EntityIdfromMetadata | ||
| - | * SingleSignOnServiceLocationFromMetadata (should be HTTPS, please see [[: | + | * SingleSignOnServiceLocationFromMetadata (should be HTTPS, please see [[: |
| * DisplayName (alternative: | * DisplayName (alternative: | ||
| Line 92: | Line 92: | ||
| for the following configuration: | for the following configuration: | ||
| - | < | ||
| + | <code -> | ||
| < | < | ||
| - | > | + | |
| - | | + | |
| + | | ||
| + | |||
| + | | ||
| + | | ||
| + | | ||
| + | |||
| + | </ | ||
| < | < | ||
| Line 157: | Line 164: | ||
| | | ||
| IdP metadata. If no encryption certificate is specified, no encrypted | IdP metadata. If no encryption certificate is specified, no encrypted | ||
| - | | + | |
| - | < | + | |
| + | < | ||
| <!-- MIIDCTCC...Qwgf5bXby+ug== | <!-- MIIDCTCC...Qwgf5bXby+ug== | ||
| </ | </ | ||
| Line 176: | Line 184: | ||
| < | < | ||
| </ | </ | ||
| - | |||
| </ | </ | ||
| - | After you configured the service provider and identity provider in '' | + | After you configured the service provider and identity provider in '' |
| ===== Changing the license pool and license type for existing users ===== | ===== Changing the license pool and license type for existing users ===== | ||
| - | By default, existing users are not modified by the SAML authentication process when the SAML configuration was changed after the user had been created. However, you can set the '' | + | '' |
| ===== Configuring Stages attributes in default-matcher section with JavaScript ===== | ===== Configuring Stages attributes in default-matcher section with JavaScript ===== | ||
| - | JavaScript control flow statements (e.g. " | + | '' |
| - | JavaScript expressions can be used with the following Stages attributes: | ||
| - | |||
| - | * defaultRolesUsername | ||
| - | * defaultLicenseType | ||
| - | * licensePoolIdent | ||
| - | |||
| - | **General JavaScript expression notation:** | ||
| - | |||
| - | < | ||
| - | < | ||
| - | |||
| - | </ | ||
| - | |||
| - | **JavaScript notation of if-clauses: | ||
| - | |||
| - | < | ||
| - | if (condition1) ' | ||
| - | else if (condition2) ' | ||
| - | else if (condition3) ' | ||
| - | else ' | ||
| - | |||
| - | </ | ||
| - | |||
| - | **JavaScript notation of value conditions: | ||
| - | |||
| - | SAML Attributes that are defined via identity_provider_attribute elements can be used in these scripts. E.g. | ||
| - | |||
| - | < | ||
| - | < | ||
| - | |||
| - | </ | ||
| - | |||
| - | < | ||
| - | Attribute contains value: | ||
| - | |||
| - | </ | ||
| - | |||
| - | < | ||
| - | < | ||
| - | < | ||
| - | |||
| - | </ | ||
| - | |||
| - | Attribute equals value: | ||
| - | |||
| - | < | ||
| - | < | ||
| - | < | ||
| - | |||
| - | </ | ||
| - | |||
| - | **Names of license types for license assignment** | ||
| - | |||
| - | ^License name^License type^ | ||
| - | |Modeler|QM| | ||
| - | |Contributor|FloatingADev| | ||
| - | |Participant|FloatingDev| | ||
| - | |Project Manager|FloatingPM| | ||
| - | |Viewer|AuthPsReader| | ||
| - | |||
| - | **Example configuration: | ||
| - | |||
| - | * The pattern matches the entry of the SAML attribute " | ||
| - | * Depending on the users' email address (domain-part), | ||
| - | |||
| - | < | ||
| - | < | ||
| - | | ||
| - | | ||
| - | | ||
| - | if (email.match(/ | ||
| - | else if (email.match(/ | ||
| - | else ' | ||
| - | " | ||
| - | | ||
| - | if (email.match(/ | ||
| - | else if (email.match(/ | ||
| - | else ' | ||
| - | " | ||
| - | | ||
| - | if (email.match(/ | ||
| - | else ''; | ||
| " | " | ||
| | | ||
| + | |||
| /> | /> | ||
| Line 279: | Line 204: | ||
| Please note that the values of multi value attributes are provided to the scripts as one value as a comma separated string. | Please note that the values of multi value attributes are provided to the scripts as one value as a comma separated string. | ||
| - | |||
| - | ===== ===== | ||