Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HasRoles ¶
this is supposed to work only within a dsp environment.
# THIS DEPLOYMENT GETS A SUPPLY OF ENV VARS TO WORK WITH (WHEN it gets deployed by ai-provisioner / deployment server within DSP) # # Security stuff # - JWT_ISSUER the token ISSUER that will be used to validate all provided tokens # (i.e. https://auth.tiki-dsp.io/auth/realms/tiki) # # - OAUTH_CLIENT_ID the client that will be used to validate all provided tokens # (i.e. ai-examples-go-dev-web-go) # #
func JwtContext ¶
func JwtContext() *auth.JwtContext
func SetIssuerUrl ¶
Types ¶
type ErrMissingRoles ¶
type ErrMissingRoles struct {
// contains filtered or unexported fields
}
func (*ErrMissingRoles) Error ¶
func (e *ErrMissingRoles) Error() string
Click to show internal directories.
Click to hide internal directories.