update README

This commit is contained in:
Darko Luketic 2022-10-18 12:14:31 +02:00
parent 3007800bc5
commit 9d8fadf227

View File

@ -9,15 +9,15 @@ You can also extract keycloak claims from the `*gin.Context` via `keycloakclaims
```go ```go
package main package main
import ( import (
"git.icod.de/dalu/ginoidc" "code.icod.de/dalu/ginoidc"
"git.icod.de/dalu/ginoidc/keycloakclaims" "code.icod.de/dalu/ginoidc/keycloakclaims"
"git.icod.de/dalu/oidc/options" "code.icod.de/dalu/oidc/options"
) )
func main() { func main() {
r := gin.Default() r := gin.Default()
var cfg config.OIDCConfig var cfg config.OIDCConfig
oidcHandler := ginoidc.New( oidcHandler := ginoidc.New(
options.WithIssuer(cfg.Issuer), options.WithIssuer(cfg.Issuer),
options.WithRequiredTokenType("JWT"), options.WithRequiredTokenType("JWT"),