drone/cli/session/session.go
Johannes Batzill 8c2f900c80 Principals, ServiceAccounts, Tokens and auth.Sessions (#15)
This change introduces the concept of a principal (abstraction of call identity), and adds a new service account type principal. Also adds support for different tokens (session, PAT, SAT, OAuth2) and adds auth.Session which is being used to capture information about the caller and call method.
2022-09-25 23:44:51 -07:00

8 lines
154 B
Go

package session
type Session struct {
URI string `json:"uri"`
ExpiresAt int64 `json:"expiresAt"`
AccessToken string `json:"accessToken"`
}