warpgate/warpgate-web
Skyler Mansfield 916d51a4e8
Add support for role mappings on custom SSO providers. (#920)
This is done using the `role_mappings` property.
Roles to be mapped are gotten from the 'warp_groups` oidc claim:
```sso_providers: 
  - name: custom_sso
    label: Custom SSO
    provider:
      type: custom
      client_id: <client_id>
      client_secret: <client_secret>
      issuer_url: <issuer_url>
      scopes: ["email", "profile", "openid", "warp_groups"] #warp_groups is scope name to request for my demo case, which adds a "warpgate_groups" claim to the userinfo
      role_mappings: 
        - ["warpgate:admin", "warpgate:admin"]
```
This maps the `warpgate:admin` group from OIDC to the `warpgate:admin`
role.

This [video on YouTube](https://youtu.be/XCYSGGCgk9Q) demonstrates the
functionality

---------

Co-authored-by: Eugene <inbox@null.page>
2024-03-23 12:05:12 +01:00
..
public/assets updated logo 2022-07-03 22:42:37 +02:00
src Add support for role mappings on custom SSO providers. (#920) 2024-03-23 12:05:12 +01:00
.editorconfig HTTP targets support (fixes #116) 2022-06-26 20:50:04 +02:00
.eslintrc.yaml HTTP targets support (fixes #116) 2022-06-26 20:50:04 +02:00
.gitignore HTTP targets support (fixes #116) 2022-06-26 20:50:04 +02:00
Cargo.toml Bump version: 0.9.0 → 0.9.1 2023-12-18 16:24:44 +01:00
openapitools.json HTTP targets support (fixes #116) 2022-06-26 20:50:04 +02:00
package.json fixed #358 - quotes in connection instructions on Windows 2023-08-07 22:58:49 +02:00
svelte.config.js bumped vite 2022-11-11 20:31:08 +01:00
tsconfig.json HTTP targets support (fixes #116) 2022-06-26 20:50:04 +02:00
tsconfig.node.json HTTP targets support (fixes #116) 2022-06-26 20:50:04 +02:00
vite.config.ts bumped vite 2022-11-11 20:31:08 +01:00
yarn.lock Bump word-wrap from 1.2.3 to 1.2.4 in /warpgate-web 2023-08-08 09:57:48 +02:00