oidc

package
v0.49.3 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OAuthClient

type OAuthClient struct {
	*oidc.Provider
	*oauth2.Token
	// contains filtered or unexported fields
}

OAuthClient is an oauth client for OIDC.

func NewOAuthClient

func NewOAuthClient(ctx context.Context,
	sso *model.ProjectSSOConfig_Oidc,
	project *model.Project,
	code string,
) (*OAuthClient, error)

NewOAuthClient creates a new oauth client for OIDC.

func (*OAuthClient) GetUser

func (c *OAuthClient) GetUser(ctx context.Context, clientId string) (*model.User, error)

GetUser returns a user model.

Jump to

Keyboard shortcuts

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