identity

package
v1.52.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 8, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserInfo

type UserInfo struct {
	Subject string `json:"subject"`
	Name    string `json:"name,omitempty"`
	Email   string `json:"email,omitempty"`

	// CellID is the cell that owns this user, if known. 0 means unknown; the
	// access token's cell-routing claim is then omitted rather than guessed.
	CellID int64 `json:"cell_id,omitempty"`

	// GitLabUserID is the internal GitLab user ID. Unlike Subject, it is not
	// set by the federation login flow, whose Subject is a foreign IdP's ID.
	// "" means unknown; the access token's "u" routing claim is then
	// omitted. A string, not an int, so it doesn't fix today's integer ID
	// format as a permanent invariant.
	GitLabUserID string `json:"gitlab_user_id,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL