File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2626//
2727// Then sign a token:
2828//
29- // rawClaims := `{
30- // "iss": "` + srv.URL + `",
31- // "aud": "my-client-id",
32- // "sub": "foo",
33- // "email": "foo@example.com",
34- // "email_verified": true
35- // }`
36- // token := oidctest.SignIDToken(priv, "my-key-id", oidc.RS256, rawClaims)
29+ // rawClaims := `{
30+ // "iss": "` + srv.URL + `",
31+ // "aud": "my-client-id",
32+ // "sub": "foo",
33+ // "email": "foo@example.com",
34+ // "email_verified": true
35+ // }`
36+ // token := oidctest.SignIDToken(priv, "my-key-id", oidc.RS256, rawClaims)
3737//
3838// And finaly, verify through the oidc package:
3939//
@@ -61,7 +61,7 @@ import (
6161 "net/http"
6262 "net/url"
6363
64- jose "github.com/go-jose/go-jose/v3 "
64+ jose "github.com/go-jose/go-jose/v4 "
6565)
6666
6767// SignIDToken uses a private key to sign provided claims.
You can’t perform that action at this time.
0 commit comments