oauth

package
v3.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 License: MIT Imports: 0 Imported by: 0

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