sql

A GORM-backed appauth manager.

Package
github.com/cs3org/reva/v3/pkg/appauth/manager/sql
Source
pkg/appauth/manager/sql · Go reference

Enable it

Select the driver in the service that uses it, and put its settings in the driver's own table:

[grpc.services.applicationauth]
driver = "sql"

[grpc.services.applicationauth.drivers.sql]
# settings below

Overview

Package sql is a GORM-backed appauth manager. App passwords are stored as SHA-256 hashes and looked up directly, without a bcrypt loop, because the tokens carry 256 bits of entropy. last_seen (utime) writes are buffered so every request does not touch the database.

Configuration

KeyTypeDefaultDescription
Includes the settings of config.Database.
utime_flush_secondsint300buffer window for last_seen source