keycloak

package
v0.0.0-...-6a4c8f0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2017 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPublicKey

func GetPublicKey(config Config) (*rsa.PublicKey, error)

GetPublicKey return the rsa.PublicKey parsed key from the Keycloak instance that can be used to verify tokens

func OpenshiftToken

func OpenshiftToken(config Config, token string) (string, error)

OpenshiftToken fetches the Openshift token defined for the current user in Keycloak

Types

type Config

type Config struct {
	BaseURL string
	Realm   string
	Broker  string
}

Config contains basic configuration data for Keycloak

func (Config) BrokerTokenURL

func (c Config) BrokerTokenURL() string

BrokerTokenURL return endpoint to fetch Brokern token "{BaseURL}/auth/realms/{Realm}/broker/{Broker}/token"

func (Config) RealmAuthURL

func (c Config) RealmAuthURL() string

RealmAuthURL return endpoint for realm auth config "{BaseURL}/auth/realms/{Realm}/broker/{Broker}/token"

Jump to

Keyboard shortcuts

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