package auth

// Identity is a trusted host-provided identity for embedded deployments.
type Identity struct {
	Provider  string
	Subject   string
	Login     string
	Name      string
	Email     string
	Groups    []string
	SiteAdmin bool
	// RepositoryGrant is an optional request-scoped permission. It is applied
	// only to the named repository and never persisted as collaborator state.
	RepositoryGrant RepositoryGrant
}

type RepositoryGrant struct {
	FullName             string
	Permission           string
	RequireCurrentAccess bool
}
