tokenguy

package
v2.0.0-...-86112b6 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

tokenguy is a web server which validates JWTs Copyright (C) 2022 Michael Manis

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301  USA

tokenguy is a web server which validates JWTs Copyright (C) 2022 Michael Manis

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301  USA

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetKeys

func GetKeys() map[string]*rsa.PublicKey

func Router

func Router(_keys map[string]*rsa.PublicKey) *gin.Engine

func Validate

func Validate(keys map[string]*rsa.PublicKey, tokenString string) bool

Types

type TokenWrapper

type TokenWrapper struct {
	Token string
}

Directories

Path Synopsis
tokenguy is a web server which validates JWTs Copyright (C) 2022 Michael Manis
tokenguy is a web server which validates JWTs Copyright (C) 2022 Michael Manis

Jump to

Keyboard shortcuts

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