mirror of
https://github.com/vx3r/wg-gen-web.git
synced 2025-09-11 12:24:27 +00:00
oauth2 oidc, vuex store
This commit is contained in:
9
model/auth.go
Normal file
9
model/auth.go
Normal file
@ -0,0 +1,9 @@
|
||||
package model
|
||||
|
||||
type Auth struct {
|
||||
Oauth2 bool `json:"oauth2"`
|
||||
ClientId string `json:"clientId"`
|
||||
Code string `json:"code"`
|
||||
State string `json:"state"`
|
||||
CodeUrl string `json:"codeUrl"`
|
||||
}
|
@ -18,6 +18,8 @@ type Client struct {
|
||||
Address []string `json:"address"`
|
||||
PrivateKey string `json:"privateKey"`
|
||||
PublicKey string `json:"publicKey"`
|
||||
CreatedBy string `json:"createdBy"`
|
||||
UpdatedBy string `json:"updatedBy"`
|
||||
Created time.Time `json:"created"`
|
||||
Updated time.Time `json:"updated"`
|
||||
}
|
||||
|
@ -21,6 +21,7 @@ type Server struct {
|
||||
PostUp string `json:"postUp"`
|
||||
PreDown string `json:"preDown"`
|
||||
PostDown string `json:"postDown"`
|
||||
UpdatedBy string `json:"updatedBy"`
|
||||
Created time.Time `json:"created"`
|
||||
Updated time.Time `json:"updated"`
|
||||
}
|
||||
|
12
model/user.go
Normal file
12
model/user.go
Normal file
@ -0,0 +1,12 @@
|
||||
package model
|
||||
|
||||
import "time"
|
||||
|
||||
type User struct {
|
||||
Sub string `json:"sub"`
|
||||
Name string `json:"name"`
|
||||
Email string `json:"email"`
|
||||
Profile string `json:"profile"`
|
||||
Issuer string `json:"issuer"`
|
||||
IssuedAt time.Time `json:"issuedAt"`
|
||||
}
|
Reference in New Issue
Block a user