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 CacheService ¶
Defines a cache service
type SSOService ¶
type SSOService struct { // SSO configuration can be modified before calling any method. CallbackPath string Port int // contains filtered or unexported fields }
SSOService is a service for authentication Eve Online characters.
func New ¶
func New(clientID string, client *http.Client, cache CacheService) *SSOService
Returns a new SSO service.
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.