GebSecure Docs v0.1.0

Reference · Error codes

Error: unauthenticated

No credentials, or the credentials are invalid, expired or revoked.

HTTP 401 · problem type: https://docs.gebsecure.com/errors/unauthenticated · title: unauthenticated

Common causes#

  • Missing Authorization: Bearer … header, or a token that is not an access token (JWT) or an API key (gsk_…).
  • An expired access token (default lifetime ACCESS_TOKEN_TTL = 10m) or a revoked credential, session or API key.
  • A client secret sent directly as a bearer token: client secrets (gsa_…) are exchanged at POST /v1/auth/token first (the SDKs do this for you).

What to do#

  • Let the SDK manage tokens (clientSecret(), privateKeyJwt()), or request a new token from POST /v1/auth/token.
  • Check the credential status in the console or with gebsecure agents credentials <agent>.

In the SDKs#

SDK Error type
TypeScript AuthenticationError
Python AuthenticationError
Go ErrAuthentication
Java AuthenticationException
.NET AuthenticationException

Every error response is RFC 9457 application/problem+json; see the error model.