internal

package
v0.0.0-...-6f40e4d Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2020 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IssueRegistrationTempToken

func IssueRegistrationTempToken(w http.ResponseWriter, req *http.Request)

A temporary token can be requested for registration This token will only allow the user to access the /PUT endpoint for the Account-API

func IssueToken

func IssueToken(req *http.Request, expiry time.Duration, audience string, subject string) security.TokenResponse

func MockResponse

func MockResponse(w http.ResponseWriter, req *http.Request)

Response for testing purposes

func SetupEndpoints

func SetupEndpoints()

func VerifyCredentials

func VerifyCredentials(w http.ResponseWriter, req *http.Request)

Validates the request as human/robot with recaptcha Validates the credentials via a request to the Account-API Token is issued as a JSON with an expiry time of 2.5days This token will allow the user to access the [/GET,/PATCH,/DELETE] endpoints for the Account-API

Types

This section is empty.

Jump to

Keyboard shortcuts

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