Documentation ¶
Overview ¶
Package sso provides the ability to authenticate characters with the Eve Online SSO API for desktop apps. It implements OAuth 2.0 with the PKCE protocol.
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type SSOService ¶
type SSOService struct { // Function to open the default browser. This must to be configured. OpenURL func(*url.URL) error // contains filtered or unexported fields }
SSOService is a service for authentication Eve Online characters.
func New ¶
func New(clientID string, client *http.Client) *SSOService
New returns a new SSO service.
Important: The OpenURL function must be configured.
func (*SSOService) Authenticate ¶
Authenticate an Eve Online character via OAuth 2.0 PKCE and return the new SSO token. Will open a new browser tab on the desktop and run a web server for the OAuth process.
func (*SSOService) RefreshToken ¶
Update given token with new instance from SSO API
Click to show internal directories.
Click to hide internal directories.