router

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const VerifyTokenHeaderKey string = "tiny-mfa-access-token"

VerifyTokenHeaderKey defines the header key to look for the access token

Variables

This section is empty.

Functions

func CreateIssuer

func CreateIssuer(w http.ResponseWriter, r *http.Request)

CreateIssuer creates a new issuer

func CreateIssuerAccessToken

func CreateIssuerAccessToken(w http.ResponseWriter, r *http.Request)

CreateIssuerAccessToken adds an access token to a distinct issuer

func CreateUser

func CreateUser(w http.ResponseWriter, r *http.Request)

CreateUser creates a new user in the scope of the given issuer

func DeleteIssuer

func DeleteIssuer(w http.ResponseWriter, r *http.Request)

DeleteIssuer deletes an existing issuer

func DeleteIssuerAccessToken

func DeleteIssuerAccessToken(w http.ResponseWriter, r *http.Request)

DeleteIssuerAccessToken deletes a token from the database

func DeleteUser

func DeleteUser(w http.ResponseWriter, r *http.Request)

DeleteUser deletes a user in the scope of the given issuer

func GenerateQrCode

func GenerateQrCode(w http.ResponseWriter, r *http.Request)

GenerateQrCode generates a QrCode

func GetAuditEntries

func GetAuditEntries(w http.ResponseWriter, r *http.Request)

GetAuditEntries returns all audit entries

func GetIssuer

func GetIssuer(w http.ResponseWriter, r *http.Request)

GetIssuer returns the issuer given in the URL

func GetIssuerAccessTokens

func GetIssuerAccessTokens(w http.ResponseWriter, r *http.Request)

GetIssuerAccessTokens returns all access tokens for a given issuer

func GetIssuers

func GetIssuers(w http.ResponseWriter, r *http.Request)

GetIssuers returns all issuers

func GetOidcConfiguration added in v0.2.4

func GetOidcConfiguration(w http.ResponseWriter, r *http.Request)

GetOidcConfiguration returns the oidc configuration

func GetQrCodeConfiguration

func GetQrCodeConfiguration(w http.ResponseWriter, r *http.Request)

GetQrCodeConfiguration returns the qrcode configuration

func GetSystemConfiguration

func GetSystemConfiguration(w http.ResponseWriter, r *http.Request)

GetSystemConfiguration returns the system configuration

func GetUser

func GetUser(w http.ResponseWriter, r *http.Request)

GetUser returns a distinct user in the scope of the given issuer

func GetUsers

func GetUsers(w http.ResponseWriter, r *http.Request)

GetUsers returns all users for a given issuer

func Healthcheck

func Healthcheck(w http.ResponseWriter, r *http.Request)

Healthcheck will return a json object if tiny-mfa is alive

func Router

func Router() *mux.Router

Router is exported and used in main.go

func UpdateIssuer

func UpdateIssuer(w http.ResponseWriter, r *http.Request)

UpdateIssuer updates an existing issuer

func UpdateOidcConfiguration added in v0.2.4

func UpdateOidcConfiguration(w http.ResponseWriter, r *http.Request)

UpdateOidcConfiguration updates the oidc configuration

func UpdateQrCodeConfiguration

func UpdateQrCodeConfiguration(w http.ResponseWriter, r *http.Request)

UpdateQrCodeConfiguration updates the qrcode configuration

func UpdateSystemConfiguration

func UpdateSystemConfiguration(w http.ResponseWriter, r *http.Request)

UpdateSystemConfiguration updates the system configuration

func UpdateUser

func UpdateUser(w http.ResponseWriter, r *http.Request)

UpdateUser updates a user

func ValidateUserToken

func ValidateUserToken(w http.ResponseWriter, r *http.Request)

ValidateUserToken validates a given token

Types

This section is empty.

Jump to

Keyboard shortcuts

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