common

package
v0.0.0-...-36f99de Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

package common gather methods used by the provider implementation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthCodeURLWithPKCE

func AuthCodeURLWithPKCE(authCodeURL func(state string, opts ...oauth2.AuthCodeOption) string, state string) (url, pkceVerifier string, err error)

AuthCodeURLWithPKCE is a helper method to generate PKCE codes and send the challenge to the provider (and returning the verifier for later user).

func ExchangeHelper

func ExchangeHelper(ctx context.Context, code, verifier string, httpClient *http.Client, config *oauth2.Config, clientAssertion gopenidclient.Assertion) (*oauth2.Token, error)

func RefreshHelper

func RefreshHelper(ctx context.Context, refreshToken string, httpClient *http.Client, config *oauth2.Config, clientAssertion gopenidclient.Assertion) (*oauth2.Token, error)

Types

This section is empty.

Directories

Path Synopsis
package tester should be used to test the different providers
package tester should be used to test the different providers

Jump to

Keyboard shortcuts

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