Documentation ¶
Index ¶
- Variables
- func ListenForSessionClaimed(client authsync.AuthSyncServiceClient)
- func ListenForSyncUpdates(client authsync.AuthSyncServiceClient)
- func New(ctx context.Context, next http.Handler, config *Config, name string) (http.Handler, error)
- type Config
- type GOInfraAuthMiddleware
- type LocalSessionToken
Constants ¶
This section is empty.
Variables ¶
View Source
var KeycloakPublicKey *rsa.PublicKey
View Source
var LocalSessionTokens []*LocalSessionToken
Functions ¶
func ListenForSessionClaimed ¶
func ListenForSessionClaimed(client authsync.AuthSyncServiceClient)
func ListenForSyncUpdates ¶
func ListenForSyncUpdates(client authsync.AuthSyncServiceClient)
Types ¶
type Config ¶
type Config struct { KeycloakRealmURL string AuthServerURL string JwtSecret []byte SessionCookieName string TokenCookieName string GRPCEndpoint string }
var GLOBALCONFIG *Config
func CreateConfig ¶
func CreateConfig() *Config
CreateConfig creates the default plugin configuration.
type GOInfraAuthMiddleware ¶
type GOInfraAuthMiddleware struct { KeycloakPublicKey *rsa.PublicKey GuestPublicKey *rsa.PublicKey SessionCookieName string AuthServerURL string TokenCookieName string // contains filtered or unexported fields }
func (*GOInfraAuthMiddleware) ServeHTTP ¶
func (j *GOInfraAuthMiddleware) ServeHTTP(rw http.ResponseWriter, req *http.Request)
type LocalSessionToken ¶
Click to show internal directories.
Click to hide internal directories.