Skip to main content

Authentication

Authentication is the process of verifying the identity of a user, system, or entity to ensure that they are who they claim to be before granting access to a system, application, or resource.

you can use authn.FromUserContext(ctx) to resolve user info after authentication

source code: https://github.com/go-saas/kit/tree/main/pkg/authn

Session

We use go-saas/sessions, a forked version of gorilla/sessions to support cookie reading and writing in both gateway and services.

JWT

We use golang-jwt/jwt to extract and generate claims

claims:

OpenID Connect

OpenID Connect (OIDC) is an authentication protocol and identity layer built on top of the OAuth 2.0 framework. It is designed for secure and standardized user authentication and identity verification. OpenID Connect is widely used for single sign-on (SSO) and identity federation in web and mobile applications.

We integrated ory/hydra to implement OpenID Connect. See oidc for more details