adding ability to generate API keys
This commit is contained in:
1 parent
3280360d47
commit
0fdc926cc4
9 files changed
+384
-239
No files matched your search
@@ -8,12 +8,15 @@ import (
|
||||
"github.com/sirupsen/logrus"
|
||||
)
|
||||
|
||||
//AuthRequest is a struct sent by a client with an authstring (JWT Token) to validate they have access to the server
|
||||
type AuthRequest struct {
|
||||
MessageType string `json:"MessageType"`
|
||||
AuthString string `json:"AuthString"`
|
||||
}
|
||||
|
||||
//TokenReturn is a struct sent by the server to a client with a new generated authstring
|
||||
type TokenReturn struct {
|
||||
MessageType string `json:"MessageType"`
|
||||
TokenReturn string `json:"TokenReturn"`
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user