mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
b4e570358e
* build: include major in go.mod module directive * fix: xflags * revert: cobra changes * fix: mock doc
16 lines
345 B
Go
16 lines
345 B
Go
package handlers
|
|
|
|
import (
|
|
"encoding/json"
|
|
|
|
"github.com/authelia/authelia/v4/internal/middlewares"
|
|
)
|
|
|
|
func oidcJWKs(ctx *middlewares.AutheliaCtx) {
|
|
ctx.SetContentType("application/json")
|
|
|
|
if err := json.NewEncoder(ctx).Encode(ctx.Providers.OpenIDConnect.KeyManager.GetKeySet()); err != nil {
|
|
ctx.Error(err, "failed to serve jwk set")
|
|
}
|
|
}
|