oidc

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(cfg *config.Config) (*Client, error)

func (*Client) GetToken

func (c *Client) GetToken(username, password string) (*oauth2.Token, error)

func (*Client) RefreshToken

func (c *Client) RefreshToken(oldToken *oauth2.Token) (*oauth2.Token, error)

RefreshToken refreshes an expired token using the oauth2 library. It takes the existing *oauth2.Token which must contain a valid RefreshToken.

Jump to

Keyboard shortcuts

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