providers

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2023 License: MIT Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyCloak

type KeyCloak struct {
	// Extra settings for clients.
	// ClientID is the application's ID.
	ClientID string `cfg:"client_id"`

	// ClientSecret is the application's secret.
	ClientSecret string `cfg:"client_secret"`

	// Scope specifies optional requested permissions.
	Scopes []string `cfg:"scopes"`

	// CertURL is the resource server's public key URL.
	//
	// BaseURL and REALM are used to construct the CertURL.
	CertURL string `cfg:"cert_url"`

	// AuthURL is the resource server's authorization endpoint
	// use for redirection to login page.
	//
	// BaseURL and REALM are used to construct the AuthURL.
	AuthURL string `cfg:"auth_url"`

	// TokenURL is the resource server's token endpoint
	// URL. This is a constant specific to each server.
	//
	// BaseURL and REALM are used to construct the TokenURL.
	TokenURL string `cfg:"token_url"`

	// BaseURL is the resource server's base URL like https://keycloak:8080.
	//
	// If your server has auth path set like https://keycloak:8080/auth/
	BaseURL string `cfg:"base_url"`
	// Realm is the resource server's realm like master.
	Realm string `cfg:"realm"`
}

func (*KeyCloak) ClientConfig added in v0.4.0

func (p *KeyCloak) ClientConfig() (*clientcredentials.Config, error)

func (*KeyCloak) GetAuthURL added in v0.2.1

func (p *KeyCloak) GetAuthURL() string

func (*KeyCloak) GetCertURL added in v0.4.0

func (p *KeyCloak) GetCertURL() string

func (*KeyCloak) GetClientID added in v0.2.1

func (p *KeyCloak) GetClientID() string

func (*KeyCloak) GetClientSecret added in v0.2.1

func (p *KeyCloak) GetClientSecret() string

func (*KeyCloak) GetTokenURL added in v0.2.1

func (p *KeyCloak) GetTokenURL() string

Jump to

Keyboard shortcuts

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