Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add UI for configuring SAML via Flagsmith dashboard #4006

Closed
matthewelwell opened this issue May 22, 2024 · 0 comments · Fixed by #4055
Closed

Add UI for configuring SAML via Flagsmith dashboard #4006

matthewelwell opened this issue May 22, 2024 · 0 comments · Fixed by #4055
Assignees
Labels
front-end Issue related to the React Front End Dashboard improvement Improvement to the existing platform

Comments

@matthewelwell
Copy link
Contributor

Currently, configuration of SAML is restricted to the django admin. We should add the option to configure it in the organisation settings in the Flagsmith dashboard.

This should only be possible for organisation admins, and is only available to enterprise customers.

The flow should be:

  1. FE sends a request to /api/v1/auth/saml/configuration/ with the following information:
{
  "organisation": 1,  // id of the organisation to add SAML to
  "name": "org-short-name",  // a short name for the organisation, used as the input when clicking 'Single Sign-on' at login (note this is unique across all tenants and will form part of the URL so should only be alphanumeric + '-,_')
  "frontend_url": "https://app.flagsmith.com",  // this should be the base URL of the Flagsmith dashboard
  "allow_idp_initiated": true,  // this field determines whether logins can be initiated from the IdP
  "idp_metadata_xml": "...",  // the metadata from the IdP (this should not be required on creation as it might depend on our service provider metadata)
}

Once this is created, it can be updated / deleted using the relevant HTTP verbs and the URL /api/v1/auth/saml/configuration/:name/.

  1. The FE offers the option to download our service provider metadata XML which can be obtained using the endpoint at /api/v1/auth/saml/{name}/metadata/.

  2. Finally the FE should offer the option to upload the IdP metadata in response, as per the description above.

There are additional entities that can be used for mapping fields between the IdP and Flagsmith, but these do not yet have endpoints. Once these are ready, we will update this issue or create a new one.

@matthewelwell matthewelwell added improvement Improvement to the existing platform front-end Issue related to the React Front End Dashboard labels May 22, 2024
@novakzaballa novakzaballa linked a pull request May 31, 2024 that will close this issue
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
front-end Issue related to the React Front End Dashboard improvement Improvement to the existing platform
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants