keycloak

package
v0.15.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 11, 2026 License: MIT Imports: 8 Imported by: 0

README

You should have a config file looking like this one:

{
  "accesses": [
   {
      "fs": "keycloak",
      "params": {
        "keycloak_client_id": "*****",
        "keycloak_client_secret": "*****",
        "keycloak_url": "http://localhost:8080",
        "keycloak_realm": "master",
        "base_path": "/ftp"
      }
    }
  ]
}

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrLogin = errors.New("login failed, User or Password error")
View Source
var ErrMissingBasePath = errors.New("basePath must be specified")

ErrMissingBasePath is triggered when the basePath property isn't specified

View Source
var ErrMissingKeycloakClientCredentials = errors.New("missing the keycloak client credentials")

Functions

func LoadFs

func LoadFs(access *confpar.Access) (afero.Fs, error)

LoadFs loads a file system from an access description

Types

type KeycloakAuthenticator

type KeycloakAuthenticator struct {
	// contains filtered or unexported fields
}

func (*KeycloakAuthenticator) CheckPasswd

func (a *KeycloakAuthenticator) CheckPasswd(user, pass string) (bool, error)

CheckPasswd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL