ContainerImage.Pinniped/pkg/oidcclient
Ryan Richard 84c3c3aa9c Optionally allow OIDC password grant for CLI-based login experience
- Add `AllowPasswordGrant` boolean field to OIDCIdentityProvider's spec
- The oidc upstream watcher controller copies the value of
  `AllowPasswordGrant` into the configuration of the cached provider
- Add password grant to the UpstreamOIDCIdentityProviderI interface
  which is implemented by the cached provider instance for use in the
  authorization endpoint
- Enhance the IDP discovery endpoint to return the supported "flows"
  for each IDP ("cli_password" and/or "browser_authcode")
- Enhance `pinniped get kubeconfig` to help the user choose the desired
  flow for the selected IDP, and to write the flow into the resulting
  kubeconfg
- Enhance `pinniped login oidc` to have a flow flag to tell it which
  client-side flow it should use for auth (CLI-based or browser-based)
- In the Dex config, allow the resource owner password grant, which Dex
  implements to also return ID tokens, for use in integration tests
- Enhance the authorize endpoint to perform password grant when
  requested by the incoming headers. This commit does not include unit
  tests for the enhancements to the authorize endpoint, which will come
  in the next commit
- Extract some shared helpers from the callback endpoint to share the
  code with the authorize endpoint
- Add new integration tests
2021-08-12 10:45:39 -07:00
..
filesession Fix missing normalization in pkg/oidcclient/filesession. 2021-04-08 14:12:34 -05:00
nonce Upgrade to github.com/coreos/go-oidc v3.0.0. 2021-01-21 12:08:14 -06:00
oidctypes Add validated ID token claims to the oidctypes.Token structure. 2020-12-04 15:18:41 -06:00
pkce Move `./internal/oidcclient` to `./pkg/oidcclient`. 2020-11-17 14:53:32 -06:00
state Move `./internal/oidcclient` to `./pkg/oidcclient`. 2020-11-17 14:53:32 -06:00
login.go Optionally allow OIDC password grant for CLI-based login experience 2021-08-12 10:45:39 -07:00
login_test.go Fix broken TTY after manual auth code prompt. 2021-07-30 12:45:44 -05:00