remote

package
v0.0.51 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidationBearerToken

func ValidationBearerToken(ctx *gin.Context) (oauth2.TokenInfo, error)

*

  • POST /oauth/check_token?token={token} * * *

Types

type CheckInfo

type CheckInfo struct {
	Active    bool     `json:"active"`
	ExpiresIn int64    `json:"exp"`
	UserId    string   `json:"user_name"`
	ClientId  string   `json:"client_id"`
	Scope     []string `json:"scope"`
}

type ClientAuthorizationSetting

type ClientAuthorizationSetting struct {
	AccessTokenURI string `json:"accessTokenUri" yaml:"accessTokenUri"`
	ClientId       string `json:"clientId" yaml:"clientId"`
	ClientSecret   string `json:"clientSecret" yaml:"clientSecret"`
}

Jump to

Keyboard shortcuts

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