mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: add SCIM provisioning via Okta (#4132)
Co-authored-by: Ben Potter <ben@coder.com>
This commit is contained in:
co-authored by
Ben Potter
parent
50321ba2aa
commit
5e2efb68f1
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user