feat: add SCIM provisioning via Okta (#4132)

Co-authored-by: Ben Potter <ben@coder.com>
This commit is contained in:
Colin Adler
2022-09-20 15:16:26 -05:00
committed by GitHub
co-authored by Ben Potter
parent 50321ba2aa
commit 5e2efb68f1
16 changed files with 467 additions and 13 deletions
+4 -1
View File
@@ -14,11 +14,13 @@ import (
func server() *cobra.Command {
var (
auditLogging bool
auditLogging bool
scimAuthHeader string
)
cmd := agpl.Server(func(ctx context.Context, options *agplcoderd.Options) (*agplcoderd.API, error) {
api, err := coderd.New(ctx, &coderd.Options{
AuditLogging: auditLogging,
SCIMAPIKey: []byte(scimAuthHeader),
Options: options,
})
if err != nil {
@@ -28,6 +30,7 @@ func server() *cobra.Command {
})
cliflag.BoolVarP(cmd.Flags(), &auditLogging, "audit-logging", "", "CODER_AUDIT_LOGGING", true,
"Specifies whether audit logging is enabled.")
cliflag.StringVarP(cmd.Flags(), &scimAuthHeader, "scim-auth-header", "", "CODER_SCIM_API_KEY", "", "Enables SCIM and sets the authentication header for the built-in SCIM server. New users are automatically created with OIDC authentication.")
return cmd
}