oauth

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2022 License: MIT Imports: 0 Imported by: 2

Documentation

Overview

Package oauth contains types for the OAuth APIs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Profile

type Profile string

Profile type

const (
	ProfileD3  Profile = "d3.profile"
	ProfileSC2 Profile = "sc2.profile"
	ProfileWoW Profile = "wow.profile"
)

PRofile field authorize scopes

type TokenValidation

type TokenValidation struct {
	Exp         int      `json:"exp"`
	Username    string   `json:"user_name"`
	Authorities []string `json:"authorities"`
	ClientID    string   `json:"client_id"`
	Scope       []string `json:"scope"`
}

TokenValidation contains token validation data

type UserInfo

type UserInfo struct {
	Sub       string `json:"sub"`
	ID        int    `json:"id"`
	Battletag string `json:"battletag"`
}

UserInfo structure

Jump to

Keyboard shortcuts

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