package
0.0.0-20240702160611-15589d6d8eac
Repository: https://github.com/sourcegraph/sourcegraph-accounts-sdk-go.git
Documentation: pkg.go.dev

# Functions

ErrorFromContext returns the error from the given context.
NewHandler returns a new SAMS authentication handler with the given configuration.
UserInfoFromContext returns the user info from the given context.
WithError returns a new context with the given error.
WithUserInfo returns a new context with the given user info.

# Variables

DefaultFailureHandler responds with the status code and message based on the error extracted from the context.

# Structs

Config contains the configuration for the SAMS authentication handler.
Error is an error that occurred during the authentication process.
Handler is the SAMS authentication handler.
UserInfo contains the information about the authenticated user.

# Interfaces

SecretStore is the interface for managing the authentication state and nonce in the per-user session.