-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsession.go
30 lines (26 loc) · 956 Bytes
/
session.go
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
package warrant
const (
SelfServiceStrategyFGAC = "fgac"
SelfServiceStrategyRBAC = "rbac"
)
type Session struct {
UserId string `json:"userId"`
TenantId string `json:"tenantId"`
TTL int64 `json:"ttl"`
}
type AuthorizationSessionParams struct {
UserId string `json:"userId,omitempty"`
TenantId string `json:"tenantId,omitempty"`
TTL int64 `json:"ttl,omitempty"`
Context PolicyContext `json:"context,omitempty"`
}
type SelfServiceSessionParams struct {
UserId string `json:"userId"`
TenantId string `json:"tenantId"`
TTL int64 `json:"ttl,omitempty"`
Context PolicyContext `json:"context,omitempty"`
SelfServiceStrategy string `json:"selfServiceStrategy"`
ObjectType string `json:"objectType"`
ObjectId string `json:"objectId"`
RedirectUrl string `json:"redirectUrl"`
}