ContainerImage.Pinniped/internal/controller/supervisorconfig
Ryan Richard 34509e7430 Add more unit tests for dynamic clients and enhance token exchange
- Enhance the token exchange to check that the same client is used
  compared to the client used during the original authorization and
  token requests, and also check that the client has the token-exchange
  grant type allowed in its configuration.
- Reduce the minimum required bcrypt cost for OIDCClient secrets
  because 15 is too slow for real-life use, especially considering
  that every login and every refresh flow will require two client auths.
- In unit tests, use bcrypt hashes with a cost of 4, because bcrypt
  slows down by 13x when run with the race detector, and we run our
  tests with the race detector enabled, causing the tests to be
  unacceptably slow. The production code uses a higher minimum cost.
- Centralize all pre-computed bcrypt hashes used by unit tests to a
  single place. Also extract some other useful test helpers for
  unit tests related to OIDCClients.
- Add tons of unit tests for the token endpoint related to dynamic
  clients for authcode exchanges, token exchanges, and refreshes.
2022-07-20 13:55:56 -07:00
..
activedirectoryupstreamwatcher Merge branch 'dynamic_clients' into require-groups-scope 2022-06-22 14:27:06 -07:00
generator All controller unit tests should not cancel context until test is over 2021-03-04 17:26:01 -08:00
ldapupstreamwatcher New controller watches OIDCClients and updates validation Conditions 2022-06-17 13:11:26 -04:00
oidcclientwatcher Add more unit tests for dynamic clients and enhance token exchange 2022-07-20 13:55:56 -07:00
oidcupstreamwatcher New controller watches OIDCClients and updates validation Conditions 2022-06-17 13:11:26 -04:00
testdata Forgot to commit some test fixtures in a prior commit 2020-10-27 17:00:00 -07:00
upstreamwatchers Refactor some variable names and update one comment 2022-01-14 10:06:00 -08:00
federation_domain_watcher_test.go Merge branch 'main' into upstream_access_revocation_during_gc 2022-01-14 10:49:22 -08:00
federation_domain_watcher.go Merge branch 'main' into upstream_access_revocation_during_gc 2022-01-14 10:49:22 -08:00
jwks_observer_test.go All controller unit tests should not cancel context until test is over 2021-03-04 17:26:01 -08:00
jwks_observer.go Use new 'go.pinniped.dev/generated/latest' package. 2021-02-16 13:00:08 -06:00
jwks_writer_test.go All controller unit tests should not cancel context until test is over 2021-03-04 17:26:01 -08:00
jwks_writer.go Update to github.com/golangci/golangci-lint/cmd/golangci-lint@v1.44.2 2022-03-08 12:28:09 -08:00
tls_cert_observer_test.go Use hostname instead of host and split on ":" 2021-06-28 23:03:05 +00:00
tls_cert_observer.go Use hostname instead of host and split on ":" 2021-06-28 23:03:05 +00:00