Documentation ¶
Index ¶
Constants ¶
View Source
const (
PKCEChallengeMethodS256 = "S256"
)
Variables ¶
This section is empty.
Functions ¶
func EnsureLoggedIn ¶
EnsureLoggedIn will check if the user is logged in and if not initiate the login flow.
func LoginCommand ¶
Command returns the telepresence sub-command "auth"
func LogoutCommand ¶
Types ¶
type CodeVerifier ¶
type CodeVerifier struct {
Value string
}
func CreateCodeVerifier ¶
func CreateCodeVerifier() *CodeVerifier
func (*CodeVerifier) CodeChallengePlain ¶
func (v *CodeVerifier) CodeChallengePlain() string
func (*CodeVerifier) CodeChallengeS256 ¶
func (v *CodeVerifier) CodeChallengeS256() string
func (*CodeVerifier) String ¶
func (v *CodeVerifier) String() string
type LoginExecutor ¶
LoginExecutor controls the execution of a login flow
func NewLoginExecutor ¶
func NewLoginExecutor(oauth2AuthUrl string, oauth2TokenUrl string, oauth2ClientId string, completionUrl string, userInfoUrl string, saveTokenFunc func(context.Context, *oauth2.Token) error, saveUserInfoFunc func(context.Context, *cache.UserInfo) error, openURLFunc func(string) error, scout *client.Scout) LoginExecutor
NewLoginExecutor returns an instance of LoginExecutor
Click to show internal directories.
Click to hide internal directories.