jwksetcom

package module
v0.0.0-...-df24421 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

README

jwkset.com

This is the open source project for the website https://jwkset.com. This website is a part of the https://github.com/MicahParks/jwkset open source project.

Self-host

This website can work with private cryptographic keys. Only work with private keys when using a self-hosted instance of this website.

Use the pre-built Docker container to self-host this website.

docker run --rm -p 8080:8080 micahparks/jwksetcom

You can then find the website hosted at http://localhost:8080

Documentation

Index

Constants

View Source
const (
	LinkGitHub      = "https://github.com/MicahParks/jwkset/blob/master/website/README.md"
	PathAPIInspect  = "/api/inspect"
	PathAPINewGen   = "/api/new-gen"
	PathAPIPemGen   = "/api/pem-gen"
	PathGenerate    = "/generate"
	PathInspect     = "/inspect"
	TemplateWrapper = "wrapper.gohtml"
)

Variables

View Source
var Static embed.FS
View Source
var Templates embed.FS

Functions

This section is empty.

Types

type Config

type Config struct {
	DMode     bool      `json:"devMode"`
	ReCAPTCHA ReCAPTCHA `json:"reCAPTCHA"`
}

func (Config) DefaultsAndValidate

func (c Config) DefaultsAndValidate() (Config, error)

func (Config) DevMode

func (c Config) DevMode() bool
type Link struct{}

func (Link) GitHub

func (l Link) GitHub() string

type Path

type Path struct{}

func (Path) APIInspect

func (p Path) APIInspect() string

func (Path) APINewGen

func (p Path) APINewGen() string

func (Path) APIPemGen

func (p Path) APIPemGen() string

func (Path) Generate

func (p Path) Generate() string

func (Path) Index

func (p Path) Index() string

func (Path) Inspect

func (p Path) Inspect() string

type ReCAPTCHA

type ReCAPTCHA struct {
	Hostname []string `json:"hostname"`
	ScoreMin float64  `json:"scoreMin"`
	Secret   string   `json:"secret"`
	SiteKey  string   `json:"siteKey"`
}

Directories

Path Synopsis
cmd
handle
api

Jump to

Keyboard shortcuts

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