identity

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package identity contains protobuf types for identity management.

Index

Constants

This section is empty.

Variables

View Source
var File_identity_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Profile added in v0.21.0

type Profile struct {
	ProviderId string           `protobuf:"bytes,1,opt,name=provider_id,json=providerId,proto3" json:"provider_id,omitempty"`
	IdToken    []byte           `protobuf:"bytes,2,opt,name=id_token,json=idToken,proto3" json:"id_token,omitempty"`
	OauthToken []byte           `protobuf:"bytes,3,opt,name=oauth_token,json=oauthToken,proto3" json:"oauth_token,omitempty"`
	Claims     *structpb.Struct `protobuf:"bytes,4,opt,name=claims,proto3" json:"claims,omitempty"`
	// contains filtered or unexported fields
}

func (*Profile) Descriptor deprecated added in v0.21.0

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

Deprecated: Use Profile.ProtoReflect.Descriptor instead.

func (*Profile) GetClaims added in v0.21.0

func (x *Profile) GetClaims() *structpb.Struct

func (*Profile) GetIdToken added in v0.21.0

func (x *Profile) GetIdToken() []byte

func (*Profile) GetOauthToken added in v0.21.0

func (x *Profile) GetOauthToken() []byte

func (*Profile) GetProviderId added in v0.21.0

func (x *Profile) GetProviderId() string

func (*Profile) ProtoMessage added in v0.21.0

func (*Profile) ProtoMessage()

func (*Profile) ProtoReflect added in v0.21.0

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

func (*Profile) Reset added in v0.21.0

func (x *Profile) Reset()

func (*Profile) String added in v0.21.0

func (x *Profile) String() string

type Provider

type Provider struct {
	Id                     string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	AuthenticateServiceUrl string   `` /* 129-byte string literal not displayed */
	ClientId               string   `protobuf:"bytes,2,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
	ClientSecret           string   `protobuf:"bytes,3,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"`
	Type                   string   `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"`
	Scopes                 []string `protobuf:"bytes,5,rep,name=scopes,proto3" json:"scopes,omitempty"`
	// string service_account = 6;
	Url           string            `protobuf:"bytes,7,opt,name=url,proto3" json:"url,omitempty"`
	RequestParams map[string]string `` /* 188-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Provider) Clone

func (x *Provider) Clone() *Provider

Clone clones the Provider.

func (*Provider) Descriptor deprecated

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

Deprecated: Use Provider.ProtoReflect.Descriptor instead.

func (*Provider) GetAuthenticateServiceUrl added in v0.27.0

func (x *Provider) GetAuthenticateServiceUrl() string

func (*Provider) GetClientId

func (x *Provider) GetClientId() string

func (*Provider) GetClientSecret

func (x *Provider) GetClientSecret() string

func (*Provider) GetId

func (x *Provider) GetId() string

func (*Provider) GetRequestParams

func (x *Provider) GetRequestParams() map[string]string

func (*Provider) GetScopes

func (x *Provider) GetScopes() []string

func (*Provider) GetType

func (x *Provider) GetType() string

func (*Provider) GetUrl

func (x *Provider) GetUrl() string

func (*Provider) Hash

func (x *Provider) Hash() string

Hash computes a sha256 hash of the provider's fields. It excludes the Id field.

func (*Provider) ProtoMessage

func (*Provider) ProtoMessage()

func (*Provider) ProtoReflect

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

func (*Provider) Reset

func (x *Provider) Reset()

func (*Provider) String

func (x *Provider) String() string

Jump to

Keyboard shortcuts

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