Files
ocis/services/auth-basic/README.md
T

32 lines
2.0 KiB
Markdown
Raw Normal View History

2023-04-12 18:40:41 +02:00
# Auth-Basic
2022-11-03 14:24:22 +01:00
2022-11-04 15:05:32 +01:00
The oCIS Auth Basic service provides basic authentication for those clients who cannot handle OpenID Connect. This should only be enabled for tests and development.
2022-11-03 14:24:22 +01:00
The `auth-basic` service is responsible for validating authentication of incoming requests. To do so, it will use the configured `auth manager`, see the `Auth Managers` section. Only HTTP basic auth requests to ocis will involve the `auth-basic` service.
To enable `auth-basic`, you first must set `PROXY_ENABLE_BASIC_AUTH` to `true`.
2023-06-01 13:46:49 +02:00
## The `auth` Service Family
ocis uses serveral authentication services for different use cases. All services that start with `auth-` are part of the authentication service family. Each member authenticates requests with different scopes. As of now, these services exist:
- `auth-basic` handles basic authentication
- `auth-bearer` handles oidc authentication
- `auth-machine` handles interservice authentication when a user is impersonated
- `auth-service` handles interservice authentication when using service accounts
2022-11-03 14:24:22 +01:00
## Auth Managers
2022-11-03 14:40:21 +01:00
Since the `auth-basic` service does not do any validation itself, it needs to be configured with an authentication manager. One can use the `AUTH_BASIC_AUTH_MANAGER` environment variable to configure this. Currently only one auth manager is supported: `"ldap"`
2022-11-03 14:24:22 +01:00
### LDAP Auth Manager
2022-11-04 11:21:38 +00:00
Setting `AUTH_BASIC_AUTH_MANAGER` to `"ldap"` will configure the `auth-basic` service to use LDAP as auth manager. This is the recommended option for running in a production and testing environment. More details on how to configure LDAP with ocis can be found in the admin docs.
2022-11-03 14:24:22 +01:00
### Other Auth Managers
2022-11-03 14:40:21 +01:00
oCIS currently supports no other auth manager
2022-11-03 14:24:22 +01:00
## Scalability
2022-11-03 14:40:21 +01:00
When using `"ldap"` as auth manager, there is no persistance as requests will just be forwarded to the LDAP server. Therefore, multiple instances of the `auth-basic` service can be started without further configuration. Be aware, that other auth managers might not allow that.
2022-11-03 14:24:22 +01:00