modulepackage
0.0.0-20180319172356-13eba3539047
Repository: https://github.com/bio-core/keycloakgo.git
Documentation: pkg.go.dev
# README
Keycloak Oauth2 Plugin Adapter for GOLANG
Plugin to add Keycloak for authentication to GOLANG applications.
Installation
go get github.com/Bio-core/keycloakgo
go install
Usage
For usage of this plugin see Documentation
# Functions
AuthMiddleware is a middlefuntion that verifies authentication before each redirect.
AuthMiddlewareHandler is a middlefuntion that verifies authentication before each redirect.
GetEmail gets the current users username.
GetUsername gets the current users username.
HandleLogin is the keycloak login funtion.
Init begins keycloak server.
LogAction is an external call for logging actions into the file log.
Logout logs the user out.
# Variables
LoginAction is for user logins.
LogoutAction is for user logouts.
PageAccessAction is for any user page access.
UploadFileAction is for users uploading files via the system.
# Type aliases
Action is a type of possible user actions.