centrauthsrv

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2019 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func VerifyChallengeTimestamp

func VerifyChallengeTimestamp(challenge string) error

VerifyChallengeTimestamp checks that the given timestamp is correct

Types

type AuthMsg

type AuthMsg struct {
	Address    string                     `json:"address" binding:"required"`
	Challenge  string                     `json:"challenge" binding:"required"`
	Signature  string                     `json:"signature" binding:"required"`
	KSignPk    *utils.PublicKey           `json:"ksignpk" binding:"required"`
	KSignProof claimsrv.ProofClaimUserHex `json:"ksignProof" binding:"required"`
}

type AuthTokenMsg

type AuthTokenMsg struct {
	Success bool   `json:"success" binding:"required"`
	Token   string `json:"token" binding:"required"`
}

Jump to

Keyboard shortcuts

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