ekster/pkg/auth/types.go
Peter Stuifzand 3c9f7eae47
You shouldn't be authorized always
Signed-off-by: Peter Stuifzand <peter@stuifzand.eu>
2018-09-15 16:00:57 +02:00

16 lines
395 B
Go

package auth
// Auther
type Auther interface {
AuthTokenAccepted(header string, r *TokenResponse) bool
}
// TokenResponse is the information that we get back from the token endpoint of the user...
type TokenResponse struct {
Me string `json:"me"`
ClientID string `json:"client_id"`
Scope string `json:"scope"`
IssuedAt int64 `json:"issued_at"`
Nonce int64 `json:"nonce"`
}