ContainerImage.Pinniped/internal/oidc
Matt Moyer 71d4e05fb6
Add custom response_mode=form_post HTML template.
This is a new pacakge internal/oidc/provider/formposthtml containing a number of static files embedded using the relatively recent Go "//go:embed" functionality introduced in Go 1.16 (https://blog.golang.org/go1.16).

The Javascript and CSS files are minifiied and injected to make a single self-contained HTML response. There is a special Content-Security-Policy helper to calculate hash-based script-src and style-src rules.

This new code is covered by a new integration test that exercises the JS/HTML functionality in a real browser outside of the rest of the Supervisor.

Signed-off-by: Matt Moyer <moyerm@vmware.com>
2021-07-09 12:08:43 -05:00
..
auth Unit test response_mode=form_post in internal/oidc/callback. 2021-07-09 12:08:43 -05:00
callback Add custom response_mode=form_post HTML template. 2021-07-09 12:08:43 -05:00
clientregistry Add "response_mode=form_post" to CLI client. 2021-07-09 12:08:42 -05:00
csrftoken Add some trivial unit tests to internal/oidc/csrftoken. 2021-02-02 09:38:17 -06:00
discovery Add "response_modes_supported" to Supervisor discovery response. 2021-07-09 12:08:43 -05:00
downstreamsession Extract some trivial helpers for identical code usages 2021-06-30 15:02:14 -07:00
dynamiccodec internal/oidc/dynamiccodec: loosen test to reduce flakes 2020-12-11 11:49:27 -05:00
idpdiscovery Move Supervisor IDP discovery to its own new endpoint 2021-05-11 10:31:33 -07:00
jwks WIP: start to wire signing key into token handler 2020-12-03 15:37:25 -05:00
provider Add custom response_mode=form_post HTML template. 2021-07-09 12:08:43 -05:00
token Update ID token tests for latest Fosite. 2021-05-28 12:53:37 -05:00
dynamic_oauth2_hmac_strategy.go Rename off of main 2020-12-16 14:27:09 -08:00
dynamic_open_id_connect_ecdsa_strategy_test.go Implement upstream LDAP support in auth_handler.go 2021-04-08 17:28:01 -07:00
dynamic_open_id_connect_ecdsa_strategy.go Implement upstream LDAP support in auth_handler.go 2021-04-08 17:28:01 -07:00
kube_storage.go Use a custom type for our static CLI client (smaller change). 2021-06-15 15:31:48 -05:00
nullstorage.go Use a custom type for our static CLI client (smaller change). 2021-06-15 15:31:48 -05:00
oidc.go Add custom response_mode=form_post HTML template. 2021-07-09 12:08:43 -05:00
token_exchange.go Update internal/oidc/token_exchange.go for latest Fosite version. 2021-03-01 13:08:41 -06:00