oauth

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthenticateRequest

func AuthenticateRequest(request *http.Request, baseURL string) resterrors.RestErr

AuthenticateRequest is a function to validate the authentication in the request.

func GetCallerID

func GetCallerID(request *http.Request) int64

GetCallerID is a function to recover from the header of the request the user ID.

func GetClientID

func GetClientID(request *http.Request) int64

GetClientID is a function to recover from the header of the request the client ID.

func IsPublic

func IsPublic(request *http.Request) bool

IsPublic is a function to verify if the request is a public or private call. Receives a pointer of http.Request and returns a bool.

Types

This section is empty.

Jump to

Keyboard shortcuts

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