千石 2c3749820e
feat: add application.UseEmailAsSamlNameId field for SAML (#3203)
* feat: Add option to use email as SAML NameID based on application config

- Updated NewSamlResponse11 to accept an application parameter.
- Conditionally set SAML NameIdentifier to user's email or username based on application.UseEmailAsNameId.

* refactor: Update GetValidationBySaml to pass application to NewSamlResponse11

- Modified GetValidationBySaml function to include application parameter in NewSamlResponse11 call.

* feat: Rename field and update logic for using Email as SAML NameID

- Renamed the `UseEmailAsNameId` field to `UseEmailAsSamlNameId` in the `Application` struct.
- Updated `NewSamlResponse` and `NewSamlResponse11` functions to use `UseEmailAsSamlNameId` for setting the NameID value.
- Modified `ApplicationEditPage.js` to reflect the field name change and update the corresponding logic.
2024-09-15 23:00:50 +08:00
..
2024-03-10 19:30:05 +08:00
2024-03-15 19:52:19 +08:00
2024-07-20 22:51:15 +08:00
2023-10-13 13:45:13 +08:00
2023-08-19 18:41:08 +08:00
2024-03-02 10:41:16 +08:00
2024-01-13 09:58:55 +08:00
2023-12-11 18:01:28 +08:00
2023-07-30 22:01:10 +08:00
2024-05-28 20:33:55 +08:00
2023-09-27 01:11:58 +08:00
2024-03-10 19:30:05 +08:00
2021-10-30 14:18:48 +08:00
2021-10-30 14:18:48 +08:00
2024-03-11 18:18:01 +08:00