warpgate/tests
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
..
certs added e2e tests 2022-08-14 12:36:49 +02:00
images Remote port and X11 forwarding - fixes #11, fixes #12 2022-09-04 12:06:09 +02:00
oidc-mock Add support for role mappings on custom SSO providers. (#920) 2024-03-23 12:05:12 +01:00
ssh-keys added e2e tests 2022-08-14 12:36:49 +02:00
__init__.py added e2e tests 2022-08-14 12:36:49 +02:00
api_client.py updated tests 2022-11-11 17:00:23 +01:00
conftest.py Update conftest.py 2024-01-23 12:31:00 +01:00
Makefile added e2e tests 2022-08-14 12:36:49 +02:00
poetry.lock Bump cryptography from 37.0.4 to 38.0.3 in /tests 2023-01-09 21:25:41 +01:00
pyproject.toml updated tests 2022-11-11 17:00:23 +01:00
run.sh Update run.sh 2024-01-23 12:20:19 +01:00
test_http_basic.py updated tests 2022-11-11 17:00:23 +01:00
test_http_common.py updated tests 2022-11-11 17:00:23 +01:00
test_http_conntest.py updated tests 2022-11-11 17:00:23 +01:00
test_http_cookies.py updated tests 2022-11-11 17:00:23 +01:00
test_http_redirects.py updated tests 2022-11-11 17:00:23 +01:00
test_http_user_auth_logout.py updated tests 2022-11-11 17:00:23 +01:00
test_http_user_auth_otp.py updated tests 2022-11-11 17:00:23 +01:00
test_http_user_auth_password.py updated tests 2022-11-11 17:00:23 +01:00
test_http_user_auth_ticket.py updated tests 2022-11-11 17:00:23 +01:00
test_http_websocket.py updated tests 2022-11-11 17:00:23 +01:00
test_mysql_user_auth_password.py temporarily exclude mysql test 2022-11-12 20:09:28 +01:00
test_ssh_conntest.py updated tests 2022-11-11 17:00:23 +01:00
test_ssh_proto.py updated tests 2022-11-11 17:00:23 +01:00
test_ssh_target_selection.py updated tests 2022-11-11 17:00:23 +01:00
test_ssh_user_auth_otp.py updated tests 2022-11-11 17:00:23 +01:00
test_ssh_user_auth_password.py updated tests 2022-11-11 17:00:23 +01:00
test_ssh_user_auth_pubkey.py updated tests 2022-11-11 17:00:23 +01:00
test_ssh_user_auth_ticket.py updated tests 2022-11-11 17:00:23 +01:00
util.py updated tests 2022-11-11 17:00:23 +01:00