sso

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 4, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Overview

Package sso contains all logic for character authentication with the Eve Online SSO API. This package should not access any other internal packages, except helpers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Token

type Token struct {
	AccessToken   string
	CharacterID   int32
	CharacterName string
	ExpiresAt     time.Time
	RefreshToken  string
	TokenType     string
}

SSO token for Eve Online

func Authenticate

func Authenticate(ctx context.Context, client *http.Client, scopes []string) (*Token, error)

Authenticate an Eve Online character via SSO and return SSO token. The process runs in a newly opened browser tab

func RefreshToken

func RefreshToken(client *http.Client, refreshToken string) (*Token, error)

Update given token with new instance from SSO API

Jump to

Keyboard shortcuts

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