cmd

package
v0.0.0-...-f85c3c5 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2018 License: Apache-2.0 Imports: 20 Imported by: 1

Documentation

Index

Constants

View Source
const LOGIN_CLIENT = "login_client"
View Source
const LOGIN_SECRET = "login_secret"
View Source
const REALM_URL = "realm_url"
View Source
const SAVE = "save"

Variables

This section is empty.

Functions

func Authorization

func Authorization() *rest.WebTarget

func CheckInstalled

func CheckInstalled()

func ClientForm

func ClientForm() url.Values

func ConfigPath

func ConfigPath() string

func CreateTokenDir

func CreateTokenDir()

func DelegationComplete

func DelegationComplete() *rest.WebTarget

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func GetFreePort

func GetFreePort() (int, error)

func InitializeClient

func InitializeClient()

func Logout

func Logout() *rest.WebTarget

func Oidc

func Oidc() *rest.WebTarget

func Token

func Token() *rest.WebTarget

func TokenDir

func TokenDir() string

func TokenFile

func TokenFile(client string) string

func Userinfo

func Userinfo() *rest.WebTarget

Types

type AccessTokenResponse

type AccessTokenResponse struct {
	AccessToken      string `json:"access_token"`
	IdToken          string `json:"id_token"`
	RefreshToken     string `json:"refresh_token"`
	ExpiresIn        int64  `json:"expires_in"`
	RefreshExpiresIn int64  `json:"refresh_expires_in"`
}

func Browser

func Browser() *AccessTokenResponse

func DoLogin

func DoLogin() *AccessTokenResponse

func ReadToken

func ReadToken(client string) (*AccessTokenResponse, error)

func (*AccessTokenResponse) ProcessTokenResponse

func (tokenResponse *AccessTokenResponse) ProcessTokenResponse(client string)

type ExecCredential

type ExecCredential struct {
	Spec SpecType
}

type KeycloakClient

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

type LoginParams

type LoginParams struct {
	ResponseType string `url:"response_type,omitempty"`
	ClientId     string `url:"client_id,omitempty"`
	RedirectUri  string `url:"redirect_uri,omitempty"`
	Display      string `url:"display,omitempty"`
	Scope        string `url:"scope,omitempty"`
}

type ResponseType

type ResponseType struct {
	Status int
}

type SpecType

type SpecType struct {
	Interactive bool
	Response    ResponseType
}

Jump to

Keyboard shortcuts

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