Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/zitadel/oidc
/ functions
Functions
1,804 in github.com/zitadel/oidc
⨍
Functions
1,804
◇
Types & classes
360
↓ 112 callers
Method
Start
(ctx context.Context, _ string)
internal/otel/shim.go:16
↓ 111 callers
Method
End
()
internal/otel/shim.go:20
↓ 73 callers
Method
WithDescription
(desc string, args ...any)
pkg/oidc/error.go:203
↓ 46 callers
Method
Error
()
pkg/oidc/error.go:160
↓ 43 callers
Method
WithParent
(err error)
pkg/oidc/error.go:186
↓ 41 callers
Method
Storage
()
pkg/op/op.go:105
↓ 29 callers
Method
String
()
pkg/oidc/types.go:92
↓ 24 callers
Method
storageFromContext
(ctx context.Context)
example/server/storage/storage_dynamic.go:275
↓ 23 callers
Method
GetClientByClientID
GetClientByClientID loads a Client. The returned Client is never cached and is only used to handle the current request.
pkg/op/storage.go:129
↓ 22 callers
Method
Encode
(src any, dst map[string][]string)
pkg/http/http.go:26
↓ 21 callers
Method
String
()
pkg/op/applicationtype_enumer.go:20
↓ 19 callers
Method
Decode
(dst any, src map[string][]string)
pkg/http/http.go:22
↓ 18 callers
Method
Error
()
pkg/op/error.go:161
↓ 16 callers
Function
IssuerFromContext
IssuerFromContext reads the issuer from the context (set by an IssuerInterceptor) it will return an empty string if not found
pkg/op/context.go:40
↓ 16 callers
Function
WriteError
WriteError asserts for a [StatusError] containing an [oidc.Error]. If no `StatusError` is found, the status code will default to [http.StatusBadReques
pkg/op/error.go:183
↓ 15 callers
Method
GetID
()
pkg/op/client.go:36
↓ 14 callers
Function
FromTime
(tt time.Time)
pkg/oidc/types.go:282
↓ 14 callers
Method
GetScopes
()
pkg/op/token.go:20
↓ 14 callers
Method
MarshalJSON
MarshalJSON implements the json.Marshaler interface for ApplicationType
pkg/op/applicationtype_enumer.go:89
↓ 14 callers
Function
NewResponse
NewResponse creates a new response for data, without custom headers.
pkg/op/server.go:219
↓ 13 callers
Method
EXPECT
EXPECT returns an object that allows the caller to indicate expected use.
pkg/op/mock/signer.mock.go:98
↓ 13 callers
Function
NewStatusError
NewStatusError sets the parent and statusCode to a new StatusError. It is recommended for parent to be an [oidc.Error]. Typically, implementations sh
pkg/op/error.go:143
↓ 13 callers
Function
unimplementedGrantError
(gt oidc.GrantType)
pkg/op/server.go:270
↓ 13 callers
Method
writeOut
(w http.ResponseWriter)
pkg/op/server.go:226
↓ 12 callers
Method
OAuthConfig
OAuthConfig returns the oauth2 Config
pkg/client/rp/relying_party.go:44
↓ 12 callers
Function
decodeRequest
(decoder httphelper.Decoder, r *http.Request, postOnly bool)
pkg/op/server_http.go:511
↓ 12 callers
Function
unimplementedError
(r interface{ path() string })
pkg/op/server.go:265
↓ 11 callers
Method
AuthMethodPrivateKeyJWTSupported
()
pkg/op/config.go:37
↓ 11 callers
Method
Decoder
()
pkg/op/op.go:106
↓ 11 callers
Function
DefaultToServerError
DefaultToServerError checks if the error is an Error if not the provided error will be wrapped into a ServerError
pkg/oidc/error.go:214
↓ 10 callers
Method
AsTime
()
pkg/oidc/types.go:275
↓ 10 callers
Method
HandlerFunc
(next http.HandlerFunc)
pkg/op/context.go:32
↓ 10 callers
Function
RequestError
(w http.ResponseWriter, r *http.Request, err error, _ *slog.Logger)
pkg/op/error.go:70
↓ 10 callers
Method
Validate
()
pkg/op/endpoint.go:40
↓ 10 callers
Function
newClient
(kind clientType)
pkg/op/server_http_test.go:66
↓ 9 callers
Method
EXPECT
EXPECT returns an object that allows the caller to indicate expected use.
pkg/op/mock/configuration.mock.go:35
↓ 9 callers
Method
GetClientID
()
pkg/op/token.go:196
↓ 9 callers
Function
NewMockConfiguration
NewMockConfiguration creates a new mock instance.
pkg/op/mock/configuration.mock.go:28
↓ 9 callers
Function
runWebServerTest
(t *testing.T, handler http.HandlerFunc, r *http.Request, want webServerResult)
pkg/op/server_http_test.go:221
↓ 8 callers
Method
Encoder
()
pkg/op/op.go:107
↓ 8 callers
Method
Is
(err error)
pkg/op/error.go:169
↓ 8 callers
Method
Is
(target error)
pkg/oidc/error.go:175
↓ 8 callers
Function
NewMockStorage
NewMockStorage creates a new mock instance.
pkg/op/mock/storage.mock.go:30
↓ 8 callers
Function
NewRelyingPartyOIDC
NewRelyingPartyOIDC creates an (OIDC) RelyingParty with the given issuer, clientID, clientSecret, redirectURI, scopes and possible configOptions it wi
pkg/client/rp/relying_party.go:242
↓ 8 callers
Function
NewStorage
(userStore UserStore)
example/server/storage/storage.go:92
↓ 8 callers
Function
NewUserStore
(issuer string)
example/server/storage/user.go:59
↓ 8 callers
Method
ServeHTTP
(w http.ResponseWriter, r *http.Request)
pkg/op/server_http.go:94
↓ 8 callers
Function
mergeAndMarshalClaims
mergeAndMarshalClaims merges registered and the custom claims map into a single JSON object. Registered fields overwrite custom claims.
pkg/oidc/util.go:12
↓ 8 callers
Function
unmarshalJSONMulti
unmarshalJSONMulti unmarshals the same JSON data into multiple destinations. Each destination must be a pointer, as per json.Unmarshal rules. Returns
pkg/oidc/util.go:47
↓ 7 callers
Method
ApplicationType
()
pkg/op/client.go:39
↓ 7 callers
Method
AuthMethod
()
pkg/op/client.go:40
↓ 7 callers
Method
AuthMethodPostSupported
()
pkg/op/config.go:35
↓ 7 callers
Method
AuthorizationEndpoint
()
pkg/op/config.go:25
↓ 7 callers
Method
AuthorizeClientIDSecret
(ctx context.Context, clientID, clientSecret string)
pkg/op/storage.go:130
↓ 7 callers
Function
CreateAccessToken
CreateAccessToken creates an access token and may return a refresh token from storage. This function always creates the access token using the ID retu
pkg/op/token.go:114
↓ 7 callers
Method
CreateAuthRequest
(context.Context, *oidc.AuthRequest, string)
pkg/op/storage.go:15
↓ 7 callers
Method
EXPECT
EXPECT returns an object that allows the caller to indicate expected use.
pkg/op/mock/storage.mock.go:37
↓ 7 callers
Method
GetSubject
()
pkg/oidc/verifier.go:19
↓ 7 callers
Method
IsRequestAware
()
pkg/http/cookie.go:198
↓ 7 callers
Function
NewMockAuthorizer
NewMockAuthorizer creates a new mock instance.
pkg/op/mock/authorizer.mock.go:29
↓ 7 callers
Function
ParseToken
(tokenString string, claims any)
pkg/oidc/verifier.go:114
↓ 7 callers
Method
Relative
()
pkg/op/endpoint.go:21
↓ 7 callers
Method
SaveAuthCode
(context.Context, string, string)
pkg/op/storage.go:18
↓ 7 callers
Function
SignedJWTProfileAssertion
(clientID string, audience []string, expiration time.Duration, signer jose.Signer)
pkg/client/client.go:233
↓ 7 callers
Function
keyBindingRP
(rp RelyingParty)
pkg/client/rp/key_binding.go:180
↓ 7 callers
Function
newClientRequest
(r *http.Request, data *T, client Client)
pkg/op/server.go:192
↓ 7 callers
Function
runWebServerClientTest
(t *testing.T, handler func(http.ResponseWriter, *http.Request, Client), r *http.Request, client Client, want
pkg/op/server_http_test.go:781
↓ 6 callers
Method
Absolute
(host string)
pkg/op/endpoint.go:28
↓ 6 callers
Function
AuthRequestError
(w http.ResponseWriter, r *http.Request, authReq ErrAuthRequest, err error, authorizer Authorizer)
pkg/op/error.go:29
↓ 6 callers
Function
CheckSignature
(ctx context.Context, token string, payload []byte, claims ClaimsSignature, supportedSigAlgs []string, set Key
pkg/oidc/verifier.go:199
↓ 6 callers
Function
ContextWithIssuer
ContextWithIssuer returns a new context with issuer set to it.
pkg/op/context.go:46
↓ 6 callers
Method
CookieHandler
CookieHandler returns a http cookie handler used for various state transfer cookies
pkg/client/rp/relying_party.go:53
↓ 6 callers
Method
Decrypt
(string)
pkg/op/crypto.go:20
↓ 6 callers
Function
DefaultAZPVerifier
DefaultAZPVerifier implements `AZPVerifier` returning an error if the azp claim is set and doesn't match the clientID.
pkg/oidc/verifier.go:163
↓ 6 callers
Method
GetAudience
()
pkg/oidc/verifier.go:20
↓ 6 callers
Method
HttpClient
()
pkg/client/client.go:147
↓ 6 callers
Method
HttpClient
HttpClient returns an http client used for calls to the openid provider, e.g. calling token endpoint
pkg/client/rp/relying_party.go:56
↓ 6 callers
Method
KeyBindingThumbprint
()
pkg/client/rp/key_binding.go:67
↓ 6 callers
Method
LoginURL
(string)
pkg/op/client.go:43
↓ 6 callers
Function
NewEndpoint
(path string)
pkg/op/endpoint.go:13
↓ 6 callers
Function
NewLocale
(tag language.Tag)
pkg/oidc/types.go:80
↓ 6 callers
Function
NewSignerFromPrivateKeyByte
(key []byte, keyID string)
pkg/client/client.go:221
↓ 6 callers
Function
NewStorage
(t *testing.T)
pkg/op/mock/storage.mock.impl.go:15
↓ 6 callers
Method
Public
()
pkg/client/rp/key_binding.go:139
↓ 6 callers
Function
RegisterClients
RegisterClients enables you to register clients for the example implementation there are some clients (web and native) to try out different cases add
example/server/storage/client.go:136
↓ 6 callers
Method
SetCookie
(w http.ResponseWriter, name, value string)
pkg/http/cookie.go:157
↓ 6 callers
Function
SetupServer
SetupServer creates an OIDC server with Issuer=http://localhost:<port> Use one of the pre-made clients in storage/clients.go or register a new one.
example/server/exampleop/op.go:33
↓ 6 callers
Method
TokenEndpoint
()
pkg/op/config.go:26
↓ 6 callers
Function
ValidateGrantType
ValidateGrantType ensures that the requested grant_type is allowed by the client
pkg/op/token_request.go:207
↓ 6 callers
Function
VerifyJWTAssertion
VerifyJWTAssertion verifies the assertion string from JWT Profile (authorization grant and client authentication) checks audience, exp, iat, signatur
pkg/op/verifier_jwt_profile.go:65
↓ 6 callers
Function
WebClient
WebClient will create a client of type web, which will always use Basic Auth and allow the use of refresh tokens user-defined redirectURIs may include
example/server/storage/client.go:174
↓ 6 callers
Function
mustECKey
(t *testing.T, c elliptic.Curve)
pkg/client/rp/key_binding_test.go:24
↓ 6 callers
Function
newRequest
(r *http.Request, data *T)
pkg/op/server.go:171
↓ 5 callers
Function
AccessTokenTypeString
AccessTokenTypeString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.
pkg/op/applicationtype_enumer.go:218
↓ 5 callers
Function
ApplicationTypeString
ApplicationTypeString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.
pkg/op/applicationtype_enumer.go:55
↓ 5 callers
Function
AsStatusError
AsStatusError unwraps a StatusError from err and returns it unmodified if found. If no StatusError was found, a new one is returned with statusCode se
pkg/op/error.go:154
↓ 5 callers
Function
AuthResponseURL
AuthResponseURL encodes the authorization response (successful and error) and sets it as query or fragment values depending on the response_mode and r
pkg/op/auth_request.go:619
↓ 5 callers
Function
AuthURLHandler
AuthURLHandler extends the `AuthURL` method with an http redirect handler including handling setting cookie for secure `state` transfer. Custom parame
pkg/client/rp/relying_party.go:463
↓ 5 callers
Function
AuthorizeClientIDSecret
AuthorizeClientIDSecret authorizes a client by validating the client_id and client_secret (Basic Auth and POST)
pkg/op/token_request.go:155
↓ 5 callers
Function
CheckExpiration
(claims Claims, offset time.Duration)
pkg/oidc/verifier.go:245
next →
1–100 of 1,804, ranked by callers