e0ecdc004b
This is only a first commit towards making this feature work. - Hook dynamic clients into fosite by returning them from the storage interface (after finding and validating them) - In the auth endpoint, prevent the use of the username and password headers for dynamic clients to force them to use the browser-based login flows for all the upstream types - Add happy path integration tests in supervisor_login_test.go - Add lots of comments (and some small refactors) in supervisor_login_test.go to make it much easier to understand - Add lots of unit tests for the auth endpoint regarding dynamic clients (more unit tests to be added for other endpoints in follow-up commits) - Enhance crud.go to make lifetime=0 mean never garbage collect, since we want client secret storage Secrets to last forever - Move the OIDCClient validation code to a package where it can be shared between the controller and the fosite storage interface - Make shared test helpers for tests that need to create OIDC client secret storage Secrets - Create a public const for "pinniped-cli" now that we are using that string in several places in the production code |
||
---|---|---|
.. | ||
category_test.go | ||
cli_test.go | ||
concierge_api_serving_certs_test.go | ||
concierge_availability_test.go | ||
concierge_client_test.go | ||
concierge_credentialissuer_test.go | ||
concierge_credentialrequest_test.go | ||
concierge_impersonation_proxy_test.go | ||
concierge_kubecertagent_test.go | ||
concierge_kubectl_test.go | ||
controllerinit_test.go | ||
e2e_test.go | ||
formposthtml_test.go | ||
kube_api_discovery_test.go | ||
kubeclient_test.go | ||
ldap_client_test.go | ||
leaderelection_test.go | ||
main_test.go | ||
rbac_test.go | ||
securetls_fips_test.go | ||
securetls_test.go | ||
supervisor_discovery_test.go | ||
supervisor_healthz_test.go | ||
supervisor_login_test.go | ||
supervisor_oidc_client_test.go | ||
supervisor_oidcclientsecret_test.go | ||
supervisor_secrets_test.go | ||
supervisor_storage_garbage_collection_test.go | ||
supervisor_storage_test.go | ||
supervisor_upstream_test.go | ||
supervisor_warnings_test.go | ||
whoami_test.go |