osintypes

package
v3.7.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2017 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

osintypes holds types that are used to interpret responses from the RangelReale osin server. neither osin, nor osincli contain types with the annotations required to have the default json marshaller encode and decode them. Even more unusual: osin does not describe a single type that represents the overall return from osin.FinishInfoRequest. Because of that, a type needs to be described in order to make use of the return value, so even if you preferred writing a parser you'll end up needing a type anyway.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InfoResponseData

type InfoResponseData struct {
	Error            string `json:"error"`
	ErrorDescription string `json:"error_description"`
	TokenType        string `json:"token_type"`
	AccessToken      string `json:"access_token"`
	RefreshToken     string `json:"refresh_token"`
	Expiration       int32  `json:"expires_in"`
}

InfoResponseData is a type that matches the information returned from osin.FinishInfoRequest (/oauth/info).

Jump to

Keyboard shortcuts

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