Documentation ¶
Index ¶
- Variables
- func RequestAttrs(r events.ALBTargetGroupRequest) []any
- func ServeJSON[T any](w *events.ALBTargetGroupResponse, data T)
- func ServeJSONError(w *events.ALBTargetGroupResponse, statusCode int, msg string)
- func ServeUserApplications(okta OktaService, idp *oidc.Provider) lambda.Handler
- type Application
- type Claims
- type JSONError
- type Okta
- type OktaService
- type ServeUserApplicationsHandler
- type Settings
- type SettingsProvider
- type SettingsProviderFunc
- type VaultRetriever
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrBadRequest = errors.New("bad request") )
View Source
var SettingsProviders = map[string]SettingsProvider{}
Functions ¶
func RequestAttrs ¶
func RequestAttrs(r events.ALBTargetGroupRequest) []any
RequestAttrs returns attributes to be used with slog for the given request.
[]any is returned instead of []slog.Attr to make it easier to supply the attributes to slog functions using spread, for example:
slog.Error(msg, RequestAttrs(r)...)
func ServeJSON ¶
func ServeJSON[T any](w *events.ALBTargetGroupResponse, data T)
func ServeJSONError ¶
func ServeJSONError(w *events.ALBTargetGroupResponse, statusCode int, msg string)
func ServeUserApplications ¶
func ServeUserApplications(okta OktaService, idp *oidc.Provider) lambda.Handler
Types ¶
type Application ¶
type OktaService ¶
type ServeUserApplicationsHandler ¶
type ServeUserApplicationsHandler struct { Okta OktaService Idp *oidc.Provider }
func (ServeUserApplicationsHandler) Handle ¶
func (s ServeUserApplicationsHandler) Handle(ctx context.Context, r events.ALBTargetGroupRequest) (w events.ALBTargetGroupResponse, err error)
func (ServeUserApplicationsHandler) Handler ¶
func (s ServeUserApplicationsHandler) Handler() lambda.Handler
type SettingsProvider ¶
type SettingsProviderFunc ¶
func (SettingsProviderFunc) FetchSettings ¶
func (fn SettingsProviderFunc) FetchSettings(ctx context.Context) (*Settings, error)
type VaultRetriever ¶
func (VaultRetriever) FetchSettings ¶
func (v VaultRetriever) FetchSettings(ctx context.Context) (*Settings, error)
Click to show internal directories.
Click to hide internal directories.