ContainerImage.Pinniped/test/testlib
Ryan Richard e0ecdc004b Allow dynamic clients to be used in downstream OIDC flows
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
2022-07-14 09:51:11 -07:00
..
browsertest Add LDAP browser flow login failure tests to supervisor_login_test.go 2022-05-10 16:28:08 -07:00
access.go Fix bad test package name 2021-06-22 11:23:19 -04:00
activedirectory.go Allow dynamic clients to be used in downstream OIDC flows 2022-07-14 09:51:11 -07:00
assertions.go Update to github.com/golangci/golangci-lint/cmd/golangci-lint@v1.44.2 2022-03-08 12:28:09 -08:00
cli.go Fix bad test package name 2021-06-22 11:23:19 -04:00
client.go Allow dynamic clients to be used in downstream OIDC flows 2022-07-14 09:51:11 -07:00
env.go Remove unused env.SupervisorHTTPAddress integration test var 2022-03-29 09:13:44 -07:00
iotest.go Add LDAP browser flow login test to supervisor_login_test.go 2022-05-10 12:54:40 -07:00
iplookup_go1.14.go Update to github.com/golangci/golangci-lint/cmd/golangci-lint@v1.44.2 2022-03-08 12:28:09 -08:00
iplookup.go Fix bad test package name 2021-06-22 11:23:19 -04:00
securetls_preference_fips.go Add more details to FIPS comments 2022-04-01 10:56:38 -04:00
securetls_preference_nonfips.go Add more details to FIPS comments 2022-04-01 10:56:38 -04:00
securetls.go Add more details to FIPS comments 2022-04-01 10:56:38 -04:00
skip.go Skip some recently added integration tests when LDAP is unavailable 2022-06-08 12:57:00 -07:00
spew.go Fix bad test package name 2021-06-22 11:23:19 -04:00