0
0
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:
vx3r
2020-04-28 20:11:49 +09:00
parent f90124afbf
commit 125ddaef0f
36 changed files with 2050 additions and 847 deletions

9
model/auth.go Normal file
View 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"`
}

View File

@ -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"`
}

View File

@ -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
View 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"`
}