fakeoidcissuer

package
v0.9.15 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package fakeoidcissuer contains a fake OIDC issuer which can use in go-oidc provider.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server is a fake OIDC issuer server for testing.

func New

func New(issuerURL string, key *testkeys.Key, service, path string, useOIDCPrefix bool) (*Server, error)

New returns Server

func (*Server) Client

func (s *Server) Client() *http.Client

Client returns the stub http client.

func (*Server) Config

func (s *Server) Config() *dampb.DamConfig

Config returns the DAM configuration currently in use.

func (*Server) ContextWithClient

func (s *Server) ContextWithClient(ctx context.Context) context.Context

ContextWithClient injects stub http client to context.

func (*Server) Sign

func (s *Server) Sign(header map[string]string, claim interface{}) (string, error)

Sign the jwt with the private key in Server.

Jump to

Keyboard shortcuts

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