Documentation ¶
Index ¶
- func IssueRegistrationTempToken(w http.ResponseWriter, req *http.Request)
- func IssueToken(req *http.Request, expiry time.Duration, audience string, subject string) security.TokenResponse
- func MockResponse(w http.ResponseWriter, req *http.Request)
- func SetupEndpoints()
- func VerifyCredentials(w http.ResponseWriter, req *http.Request)
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 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.
Click to show internal directories.
Click to hide internal directories.