MCPcopy Create free account
hub / github.com/zitadel/oidc / BuildAuthRequestCode

Function BuildAuthRequestCode

pkg/op/auth_request.go:613–615  ·  view source on GitHub ↗

BuildAuthRequestCode builds the string representation of the auth code

(authReq AuthRequest, encrypter Encrypter)

Source from the content-addressed store, hash-verified

611
612// BuildAuthRequestCode builds the string representation of the auth code
613func BuildAuthRequestCode(authReq AuthRequest, encrypter Encrypter) (string, error) {
614 return encrypter.Encrypt(authReq.GetID())
615}
616
617// AuthResponseURL encodes the authorization response (successful and error) and sets it as query or fragment values
618// depending on the response_mode and response_type

Callers 1

CreateAuthRequestCodeFunction · 0.85

Calls 2

EncryptMethod · 0.65
GetIDMethod · 0.65

Tested by

no test coverage detected