about summary refs log tree commit diff
path: root/nix/templates/goapp/frontend/src/types.go
blob: 97e0db5ce3b6105aea0f772e7c05710f0266cd09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
package main

type Claims struct {
	JWTIdentifier                       string   `json:"jti"`
	Issuer                              string   `json:"iss"`
	Subject                             string   `json:"sub"`
	Nonce                               string   `json:"nonce"`
	Expires                             int64    `json:"exp"`
	IssueTime                           int64    `json:"iat"`
	RequestedAt                         int64    `json:"rat"`
	AuthorizeTime                       int64    `json:"auth_time"`
	NotBefore                           int64    `json:"nbf"`
	Audience                            []string `json:"aud"`
	Scope                               []string `json:"scp"`
	ScopeString                         string   `json:"scope"`
	AccessTokenHash                     string   `json:"at_hash"`
	CodeHash                            string   `json:"c_hash"`
	AuthenticationContextClassReference string   `json:"acr"`
	AuthenticationMethodsReference      []string `json:"amr"`

	Name                string       `json:"name"`
	GivenName           string       `json:"given_name"`
	FamilyName          string       `json:"family_name"`
	MiddleName          string       `json:"middle_name"`
	Nickname            string       `json:"nickname"`
	PreferredUsername   string       `json:"preferred_username"`
	Profile             string       `jsoon:"profile"`
	Picture             string       `json:"picture"`
	Website             string       `json:"website"`
	Gender              string       `json:"gender"`
	Birthdate           string       `json:"birthdate"`
	ZoneInfo            string       `json:"zoneinfo"`
	Locale              string       `json:"locale"`
	UpdatedAt           int64        `json:"updated_at"`
	Email               string       `json:"email"`
	EmailAlts           []string     `json:"alt_emails"`
	EmailVerified       bool         `json:"email_verified"`
	PhoneNumber         string       `json:"phone_number"`
	PhoneNumberVerified bool         `json:"phone_number_verified"`
	Address             ClamsAddress `json:"address"`
	Groups              []string     `json:"groups"`
}

type ClamsAddress struct {
	StreetAddress string `json:"street_address"`
	Locality      string `json:"locality"`
	Region        string `json:"region"`
	PostalCode    string `json:"postal_code"`
	Country       string `json:"country"`
}

type Options struct {
	ClientID         string
	ClientSecretPath string
	CookieName       string
	DatabasePath     string
	Filters          []string
	GroupsFilter     []string
	Host             string
	Issuer           string
	LogFilePath      string
	Port             int
	PublicURL        string
	Scopes           string
	SessionDBPath    string
	SessionKeyPath   string
	TemplatesPath    string
}