tokencontroller

package
v1.8.5 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExchangeToken

func ExchangeToken() gin.HandlerFunc

@Summary Excahnges a token for a new resigned token @Schemes @Description Create a api key @Tags users @Accept application/json @Produce application/json @Success 200 {object} string @Failure 403 {object} rorerror.ErrorData @Failure 400 {object} rorerror.ErrorData @Failure 401 {object} rorerror.ErrorData @Failure 500 {object} rorerror.ErrorData @Router /v2/token/exchange [post] @Param token body ExchangeTokenRequest true "token to exchange" @Security ApiKey || AccessToken

func GetJwks

func GetJwks() gin.HandlerFunc

@Summary Get JWKS @Schemes @Description Get JWKS for token verification @Tags users @Accept application/json @Produce application/json @Success 200 {object} interface{} @Failure 500 {object} rorerror.ErrorData @Router /v2/token/jwks [get] @Security ApiKey || AccessToken

Types

type ExchangeTokenRequest

type ExchangeTokenRequest struct {
	ClusterID string `json:"clusterId" validate:"required"`
	Admin     bool   `json:"admin,omitempty"`
	Token     string `json:"token" validate:"required"`
}

Jump to

Keyboard shortcuts

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