Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateRandomState ¶
GenerateRandomState generates a random state parameter for CSRF protection
func GetPlatformName ¶
func GetPlatformName() string
GetPlatformName returns a human-readable platform name
func IsBrowserAvailable ¶
func IsBrowserAvailable() bool
IsBrowserAvailable checks if a browser is available on the system
func OpenBrowser ¶
OpenBrowser opens the default browser to the specified URL
Types ¶
type OAuthCallbackResult ¶
OAuthCallbackResult represents the result of OAuth callback
type PKCEChallenge ¶
PKCEChallenge represents a PKCE code challenge and verifier pair
func GeneratePKCEChallenge ¶
func GeneratePKCEChallenge() (*PKCEChallenge, error)
GeneratePKCEChallenge creates a new PKCE challenge according to RFC 7636
func (*PKCEChallenge) Verify ¶
func (p *PKCEChallenge) Verify(verifier string) bool
Verify checks if the given verifier matches this challenge
type PKCEOAuthService ¶
type PKCEOAuthService struct {
// contains filtered or unexported fields
}
PKCEOAuthService handles OAuth2 authentication with PKCE
func NewPKCEOAuthService ¶
func NewPKCEOAuthService(cfg *config.Config) *PKCEOAuthService
NewPKCEOAuthService creates a new PKCE OAuth service
func (*PKCEOAuthService) GetAccessToken ¶
func (s *PKCEOAuthService) GetAccessToken() string
GetAccessToken returns the current access token
func (*PKCEOAuthService) IsAuthenticated ¶
func (s *PKCEOAuthService) IsAuthenticated() bool
IsAuthenticated checks if user is authenticated