diff --git a/services/idp/.gitignore b/services/idp/.gitignore index c94071305..47362d7ea 100644 --- a/services/idp/.gitignore +++ b/services/idp/.gitignore @@ -1 +1,4 @@ .pnpm-store/ + +# TypeScript cache +*.tsbuildinfo \ No newline at end of file diff --git a/services/idp/README.md b/services/idp/README.md index 13aa4316a..0b2717e7b 100644 --- a/services/idp/README.md +++ b/services/idp/README.md @@ -1,9 +1,9 @@ # IDP -This service provides a builtin minimal OpenID Connect provider based on [LibreGraph Connect (lico)](https://github.com/libregraph/lico) for ocis. +This service provides a builtin minimal OpenID Connect provider based on [LibreGraph Connect (lico)](https://github.com/libregraph/lico) for OpenCloud. It is mainly targeted at smaller installations. For larger setups it is recommended to replace IDP with an external OpenID Connect Provider. -By default, it is configured to use the ocis IDM service as its LDAP backend for looking up and authenticating users. Other backends like an external LDAP server can be configured via a set of [enviroment variables](https://owncloud.dev/services/idp/configuration/#environment-variables). +By default, it is configured to use the OpenCloud IDM service as its LDAP backend for looking up and authenticating users. Other backends like an external LDAP server can be configured via a set of [enviroment variables](https://docs.opencloud.eu/services/idp/configuration/#environment-variables). -Note that translations provided by the IDP service are not maintained via ownCloud but part of the embedded [LibreGraph Connect Identifier](https://github.com/libregraph/lico/tree/master/identifier) package. +Note that translations provided by the IDP service are not maintained via OpenCloud but part of the embedded [LibreGraph Connect Identifier](https://github.com/libregraph/lico/tree/master/identifier) package. diff --git a/services/idp/pkg/command/root.go b/services/idp/pkg/command/root.go index 4ee670b0a..4ec02457c 100644 --- a/services/idp/pkg/command/root.go +++ b/services/idp/pkg/command/root.go @@ -22,11 +22,11 @@ func GetCommands(cfg *config.Config) cli.Commands { } } -// Execute is the entry point for the ocis-idp command. +// Execute is the entry point for the opencloud-idp command. func Execute(cfg *config.Config) error { app := clihelper.DefaultApp(&cli.App{ Name: "idp", - Usage: "Serve IDP API for oCIS", + Usage: "Serve IDP API for OpenCloud", Commands: GetCommands(cfg), }) diff --git a/services/idp/pkg/config/config.go b/services/idp/pkg/config/config.go index b30bfb9de..044e0d2d2 100644 --- a/services/idp/pkg/config/config.go +++ b/services/idp/pkg/config/config.go @@ -87,7 +87,7 @@ type Settings struct { TrustedProxy []string `yaml:"trusted_proxy"` //TODO: how to configure this via env? AllowScope []string `yaml:"allow_scope"` // TODO: is this even needed? - AllowClientGuests bool `yaml:"allow_client_guests" env:"IDP_ALLOW_CLIENT_GUESTS" desc:"Allow guest clients to access oCIS." introductionVersion:"pre5.0"` + AllowClientGuests bool `yaml:"allow_client_guests" env:"IDP_ALLOW_CLIENT_GUESTS" desc:"Allow guest clients to access OpenCloud." introductionVersion:"pre5.0"` AllowDynamicClientRegistration bool `yaml:"allow_dynamic_client_registration" env:"IDP_ALLOW_DYNAMIC_CLIENT_REGISTRATION" desc:"Allow dynamic client registration." introductionVersion:"pre5.0"` EncryptionSecretFile string `yaml:"encrypt_secret_file" env:"IDP_ENCRYPTION_SECRET_FILE" desc:"Path to the encryption secret file, if unset, a new certificate will be autogenerated upon each restart, thus invalidating all existing sessions. If not defined, the root directory derives from $OC_BASE_DATA_PATH/idp." introductionVersion:"pre5.0"` diff --git a/services/idp/pkg/config/defaults/defaultconfig.go b/services/idp/pkg/config/defaults/defaultconfig.go index d64b378ab..6218e4b89 100644 --- a/services/idp/pkg/config/defaults/defaultconfig.go +++ b/services/idp/pkg/config/defaults/defaultconfig.go @@ -74,7 +74,7 @@ func DefaultConfig() *config.Config { Clients: []config.Client{ { ID: "web", - Name: "ownCloud Web app", + Name: "OpenCloud Web app", Trusted: true, RedirectURIs: []string{ "{{OC_URL}}/", diff --git a/services/idp/pkg/service/v0/service.go b/services/idp/pkg/service/v0/service.go index faa8cda2b..661d1c237 100644 --- a/services/idp/pkg/service/v0/service.go +++ b/services/idp/pkg/service/v0/service.go @@ -258,7 +258,7 @@ type IDP struct { tp trace.TracerProvider } -// initMux initializes the internal idp gorilla mux and mounts it in to an ocis chi-router +// initMux initializes the internal idp gorilla mux and mounts it in to an OpenCloud chi-router func (idp *IDP) initMux(ctx context.Context, r []server.WithRoutes, h http.Handler, options Options) { gm := mux.NewRouter() for _, route := range r { diff --git a/services/idp/public/index.html b/services/idp/public/index.html index de9e9839b..a53c63bde 100644 --- a/services/idp/public/index.html +++ b/services/idp/public/index.html @@ -6,7 +6,7 @@ - Sign in - ownCloud + Sign in - OpenCloud