oauth

package
v0.0.0-...-aeb3b05 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SubjectType_name = map[int32]string{
		0: "SUBJECT_TYPE_UNSPECIFIED",
		1: "USER_ACCOUNT",
		2: "SERVICE_ACCOUNT",
		3: "GROUP",
		4: "INVITEE",
	}
	SubjectType_value = map[string]int32{
		"SUBJECT_TYPE_UNSPECIFIED": 0,
		"USER_ACCOUNT":             1,
		"SERVICE_ACCOUNT":          2,
		"GROUP":                    3,
		"INVITEE":                  4,
	}
)

Enum value maps for SubjectType.

View Source
var File_yandex_cloud_oauth_claims_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Federation

type Federation struct {

	// ID of the federation.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Name of the federation. The name is unique within the cloud or organization
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

Minimalistic analog of yandex.cloud.organizationmanager.v1.saml.Federation

func (*Federation) Descriptor deprecated

func (*Federation) Descriptor() ([]byte, []int)

Deprecated: Use Federation.ProtoReflect.Descriptor instead.

func (*Federation) GetId

func (x *Federation) GetId() string

func (*Federation) GetName

func (x *Federation) GetName() string

func (*Federation) ProtoMessage

func (*Federation) ProtoMessage()

func (*Federation) ProtoReflect

func (x *Federation) ProtoReflect() protoreflect.Message

func (*Federation) Reset

func (x *Federation) Reset()

func (*Federation) SetId

func (m *Federation) SetId(v string)

func (*Federation) SetName

func (m *Federation) SetName(v string)

func (*Federation) String

func (x *Federation) String() string

type SubjectClaims

type SubjectClaims struct {

	// Subject - Identifier for the End-User at the Issuer.
	Sub string `protobuf:"bytes,1,opt,name=sub,proto3" json:"sub,omitempty"`
	// End-User's full name in displayable form including all name parts, possibly including titles and suffixes, ordered according to the End-User's locale and preferences.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// Given name(s) or first name(s) of the End-User. Note that in some cultures, people can have multiple given names; all can be present, with the names being separated by space characters.
	GivenName string `protobuf:"bytes,3,opt,name=given_name,json=givenName,proto3" json:"given_name,omitempty"`
	// Surname(s) or last name(s) of the End-User. Note that in some cultures, people can have multiple family names or no family name; all can be present, with the names being separated by space characters.
	FamilyName string `protobuf:"bytes,4,opt,name=family_name,json=familyName,proto3" json:"family_name,omitempty"`
	// Shorthand name by which the End-User wishes to be referred to at the RP, such as janedoe or j.doe.
	// This value MAY be any valid JSON string including special characters such as @, /, or whitespace. The RP MUST NOT rely upon this value being unique, as discussed in Section 5.7.
	PreferredUsername string `protobuf:"bytes,7,opt,name=preferred_username,json=preferredUsername,proto3" json:"preferred_username,omitempty"`
	// URL of the End-User's profile picture. This URL MUST refer to an image file (for example, a PNG, JPEG, or GIF image file),
	// rather than to a Web page containing an image. Note that this URL SHOULD specifically reference a profile photo of the End-User suitable for displaying when describing the End-User, rather than an arbitrary photo taken by the End-User.
	Picture string `protobuf:"bytes,9,opt,name=picture,proto3" json:"picture,omitempty"`
	// End-User's preferred e-mail address. Its value MUST conform to the RFC 5322 [RFC5322] addr-spec syntax.
	// The RP MUST NOT rely upon this value being unique, as discussed in Section 5.7.
	Email string `protobuf:"bytes,11,opt,name=email,proto3" json:"email,omitempty"`
	// String from zoneinfo [zoneinfo] time zone database representing the End-User's time zone. For example, Europe/Paris or America/Los_Angeles.
	Zoneinfo string `protobuf:"bytes,15,opt,name=zoneinfo,proto3" json:"zoneinfo,omitempty"`
	// End-User's locale, represented as a BCP47 [RFC5646] language tag. This is typically an ISO 639-1 Alpha-2 [ISO639-1] language code in lowercase and an ISO 3166-1 Alpha-2 [ISO3166-1] country code in uppercase, separated by a dash.
	// For example, en-US or fr-CA. As a compatibility note, some implementations have used an underscore as the separator rather than a dash, for example, en_US; Relying Parties MAY choose to accept this locale syntax as well.
	Locale string `protobuf:"bytes,16,opt,name=locale,proto3" json:"locale,omitempty"`
	// End-User's preferred telephone number. E.164 [E.164] is RECOMMENDED as the format of this Claim, for example, +1 (425) 555-1212 or +56 (2) 687 2400.
	// If the phone number contains an extension, it is RECOMMENDED that the extension be represented using the RFC 3966 [RFC3966] extension syntax, for example, +1 (604) 555-1234;ext=5678.
	PhoneNumber string `protobuf:"bytes,17,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"`
	// Subject type.
	SubType SubjectType `protobuf:"varint,99,opt,name=sub_type,json=subType,proto3,enum=yandex.cloud.oauth.SubjectType" json:"sub_type,omitempty"`
	// User federation, non-empty only for federated users.
	Federation *Federation `protobuf:"bytes,100,opt,name=federation,proto3" json:"federation,omitempty"`
	// Last time the access token was created. Filled only for federated users (not for global users).
	LastAuthenticatedAt *timestamppb.Timestamp `protobuf:"bytes,105,opt,name=last_authenticated_at,json=lastAuthenticatedAt,proto3" json:"last_authenticated_at,omitempty"`
	// contains filtered or unexported fields
}

Claims representation, see https://openid.net/specs/openid-connect-core-1_0.html#StandardClaims for details.

func (*SubjectClaims) Descriptor deprecated

func (*SubjectClaims) Descriptor() ([]byte, []int)

Deprecated: Use SubjectClaims.ProtoReflect.Descriptor instead.

func (*SubjectClaims) GetEmail

func (x *SubjectClaims) GetEmail() string

func (*SubjectClaims) GetFamilyName

func (x *SubjectClaims) GetFamilyName() string

func (*SubjectClaims) GetFederation

func (x *SubjectClaims) GetFederation() *Federation

func (*SubjectClaims) GetGivenName

func (x *SubjectClaims) GetGivenName() string

func (*SubjectClaims) GetLastAuthenticatedAt

func (x *SubjectClaims) GetLastAuthenticatedAt() *timestamppb.Timestamp

func (*SubjectClaims) GetLocale

func (x *SubjectClaims) GetLocale() string

func (*SubjectClaims) GetName

func (x *SubjectClaims) GetName() string

func (*SubjectClaims) GetPhoneNumber

func (x *SubjectClaims) GetPhoneNumber() string

func (*SubjectClaims) GetPicture

func (x *SubjectClaims) GetPicture() string

func (*SubjectClaims) GetPreferredUsername

func (x *SubjectClaims) GetPreferredUsername() string

func (*SubjectClaims) GetSub

func (x *SubjectClaims) GetSub() string

func (*SubjectClaims) GetSubType

func (x *SubjectClaims) GetSubType() SubjectType

func (*SubjectClaims) GetZoneinfo

func (x *SubjectClaims) GetZoneinfo() string

func (*SubjectClaims) ProtoMessage

func (*SubjectClaims) ProtoMessage()

func (*SubjectClaims) ProtoReflect

func (x *SubjectClaims) ProtoReflect() protoreflect.Message

func (*SubjectClaims) Reset

func (x *SubjectClaims) Reset()

func (*SubjectClaims) SetEmail

func (m *SubjectClaims) SetEmail(v string)

func (*SubjectClaims) SetFamilyName

func (m *SubjectClaims) SetFamilyName(v string)

func (*SubjectClaims) SetFederation

func (m *SubjectClaims) SetFederation(v *Federation)

func (*SubjectClaims) SetGivenName

func (m *SubjectClaims) SetGivenName(v string)

func (*SubjectClaims) SetLastAuthenticatedAt

func (m *SubjectClaims) SetLastAuthenticatedAt(v *timestamppb.Timestamp)

func (*SubjectClaims) SetLocale

func (m *SubjectClaims) SetLocale(v string)

func (*SubjectClaims) SetName

func (m *SubjectClaims) SetName(v string)

func (*SubjectClaims) SetPhoneNumber

func (m *SubjectClaims) SetPhoneNumber(v string)

func (*SubjectClaims) SetPicture

func (m *SubjectClaims) SetPicture(v string)

func (*SubjectClaims) SetPreferredUsername

func (m *SubjectClaims) SetPreferredUsername(v string)

func (*SubjectClaims) SetSub

func (m *SubjectClaims) SetSub(v string)

func (*SubjectClaims) SetSubType

func (m *SubjectClaims) SetSubType(v SubjectType)

func (*SubjectClaims) SetZoneinfo

func (m *SubjectClaims) SetZoneinfo(v string)

func (*SubjectClaims) String

func (x *SubjectClaims) String() string

type SubjectType

type SubjectType int32
const (
	SubjectType_SUBJECT_TYPE_UNSPECIFIED SubjectType = 0
	SubjectType_USER_ACCOUNT             SubjectType = 1
	SubjectType_SERVICE_ACCOUNT          SubjectType = 2
	SubjectType_GROUP                    SubjectType = 3
	SubjectType_INVITEE                  SubjectType = 4
)

func (SubjectType) Descriptor

func (SubjectType) Enum

func (x SubjectType) Enum() *SubjectType

func (SubjectType) EnumDescriptor deprecated

func (SubjectType) EnumDescriptor() ([]byte, []int)

Deprecated: Use SubjectType.Descriptor instead.

func (SubjectType) Number

func (x SubjectType) Number() protoreflect.EnumNumber

func (SubjectType) String

func (x SubjectType) String() string

func (SubjectType) Type

Jump to

Keyboard shortcuts

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