oidc

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2024 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserInfo

type UserInfo struct {
	Audience          string `json:"aud"`
	Issuer            string `json:"iss"`
	Subject           string `json:"sub"`
	Email             string `json:"email"`
	EmailVerified     bool   `json:"email_verified"`
	FamilyName        string `json:"family_name"`
	GivenName         string `json:"given_name"`
	Name              string `json:"name"`
	Picture           string `json:"picture"` // URL to picture
	PreferredUsername string `json:"preferred_username"`
	Profile           string `json:"profile"`
}

UserInfo represents an OpenID Connect (OIDC) UserInfo object as described here: https://openid.net/specs/openid-connect-core-1_0.html#UserInfoResponse .

func (*UserInfo) AddEmail

func (u *UserInfo) AddEmail(email string, addPreferredUsername bool)

func (*UserInfo) AddName

func (u *UserInfo) AddName(name string, addFirstAndLastName bool)

Jump to

Keyboard shortcuts

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