CI / changes (push) Successful in 7s
CI / commitlint (push) Has been skipped
CI / openapi (push) Successful in 25s
CI / web (push) Successful in 28s
CI / go (push) Failing after 24s
CI / bird2 (push) Has been skipped
CI / release (push) Has been skipped
- Added endpoints for managing API keys, including creation, retrieval, updating, and revocation. - Introduced a new Auth session endpoint to retrieve current tenant and role information. - Updated the authentication middleware to support API key-based authentication and track last used timestamps. - Enhanced documentation to reflect new API key functionalities and usage guidelines. - Improved logging for demo authentication scenarios.
13 lines
231 B
Go
13 lines
231 B
Go
package httpapi
|
|
|
|
import "testing"
|
|
|
|
func mustSetTestAPIKeys(t *testing.T, srv *Server, spec string) {
|
|
t.Helper()
|
|
resolver, err := newAPIKeyResolver(spec, srv.store)
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
srv.keyResolver = resolver
|
|
}
|