update README
This commit is contained in:
parent
3007800bc5
commit
9d8fadf227
@ -9,15 +9,15 @@ You can also extract keycloak claims from the `*gin.Context` via `keycloakclaims
|
||||
```go
|
||||
package main
|
||||
import (
|
||||
"git.icod.de/dalu/ginoidc"
|
||||
"git.icod.de/dalu/ginoidc/keycloakclaims"
|
||||
"git.icod.de/dalu/oidc/options"
|
||||
"code.icod.de/dalu/ginoidc"
|
||||
"code.icod.de/dalu/ginoidc/keycloakclaims"
|
||||
"code.icod.de/dalu/oidc/options"
|
||||
)
|
||||
func main() {
|
||||
r := gin.Default()
|
||||
|
||||
var cfg config.OIDCConfig
|
||||
|
||||
|
||||
oidcHandler := ginoidc.New(
|
||||
options.WithIssuer(cfg.Issuer),
|
||||
options.WithRequiredTokenType("JWT"),
|
||||
|
Loading…
Reference in New Issue
Block a user