Files
ocis/services/auth-service/_index.md
T
Sawjan Gurung e835fcb058 Merge pull request #11228 from owncloud/port/k6-n-playwright
[full-ci][tests-only] chore: port skip k6 and web bump
2025-04-24 00:38:04 +00:00

47 lines
2.4 KiB
Markdown
Executable File

---
title: Auth-Service
date: 2025-04-24T00:36:06.614973741Z
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/services/auth-service
geekdocFilePath: README.md
geekdocCollapseSection: true
---
<!-- Do not edit this file, it is autogenerated. Edit the service README.md instead -->
## Abstract
The ocis Auth Service is used to authenticate service accounts. Compared to normal accounts, service accounts are ocis internal only and not available as ordinary users like via LDAP.
## Table of Contents
* [The `auth` Service Family](#the-`auth`-service-family)
* [Service Accounts](#service-accounts)
* [Configuring Service Accounts](#configuring-service-accounts)
* [Example Yaml Config](#example-yaml-config)
## 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-app` handles authentication of external 3rd party apps
- `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
## Service Accounts
Service accounts are user accounts that are only used for inter service communication. The users have no personal space, do not show up in user lists and cannot login via the UI. Service accounts can be configured in the settings service. Only the `admin` service user is available for now. Additionally to the actions it can do via its role, all service users can stat all files on all spaces.
## Configuring Service Accounts
By using the envvars `OCIS_SERVICE_ACCOUNT_ID` and `OCIS_SERVICE_ACCOUNT_SECRET`, one can configure the ID and the secret of the service user. The secret can be rotated regulary to increase security. For activating a new secret, all services where the envvars are used need to be restarted. The secret is always and only stored in memory and never written into any persistant store. Though you can use any string for the service account, it is recommmended to use a UUIDv4 string.
## Example Yaml Config
{{< include file="services/_includes/auth-service-config-example.yaml" language="yaml" >}}
{{< include file="services/_includes/auth-service_configvars.md" >}}