dummyoidc

package
v0.0.0-...-9c0d32c Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package dummyoidc provides a dummy OIDC server/provider for dev and testing purposes.

It is pretty much a copy+paste from the zitadel/oidc repository examples:

https://github.com/zitadel/oidc/tree/main/example/server

It has a few modifications, such as allowing us to pass in a list of users. Other than that, I suggest you look at the zitadel/oidc repository for more information.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Port int

	Users map[string]*storage.User
}

type Server

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

func Start

func Start(ctx context.Context, config Config) (*Server, error)

func (*Server) Close

func (s *Server) Close() error

func (*Server) Start

func (s *Server) Start(ctx context.Context, config Config) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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