16 lines
331 B
Go
16 lines
331 B
Go
|
package handlers
|
||
|
|
||
|
import (
|
||
|
"encoding/json"
|
||
|
|
||
|
"github.com/authelia/authelia/internal/middlewares"
|
||
|
)
|
||
|
|
||
|
func oidcJWKs(ctx *middlewares.AutheliaCtx) {
|
||
|
ctx.SetContentType("application/json")
|
||
|
|
||
|
if err := json.NewEncoder(ctx).Encode(ctx.Providers.OpenIDConnect.GetKeySet()); err != nil {
|
||
|
ctx.Error(err, "failed to serve jwk set")
|
||
|
}
|
||
|
}
|