tests: rework oidc tests and aim for better coverage

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Stavros
2026-06-07 18:57:41 +03:00
parent 5e954da5ff
commit ace64fa7ee
2 changed files with 618 additions and 643 deletions
File diff suppressed because it is too large Load Diff
+8 -8
View File
@@ -108,14 +108,14 @@ type TokenResponse struct {
type AuthorizeRequest struct { type AuthorizeRequest struct {
jwt.Claims jwt.Claims
Scope string `form:"scope" binding:"required" json:"scope"` Scope string `form:"scope" binding:"required" json:"scope" url:"scope"`
ResponseType string `form:"response_type" binding:"required" json:"response_type"` ResponseType string `form:"response_type" binding:"required" json:"response_type" url:"response_type"`
ClientID string `form:"client_id" binding:"required" json:"client_id"` ClientID string `form:"client_id" binding:"required" json:"client_id" url:"client_id"`
RedirectURI string `form:"redirect_uri" binding:"required" json:"redirect_uri"` RedirectURI string `form:"redirect_uri" binding:"required" json:"redirect_uri" url:"redirect_uri"`
State string `form:"state" json:"state"` State string `form:"state" json:"state" url:"state"`
Nonce string `form:"nonce" json:"nonce"` Nonce string `form:"nonce" json:"nonce" url:"nonce"`
CodeChallenge string `form:"code_challenge" json:"code_challenge"` CodeChallenge string `form:"code_challenge" json:"code_challenge" url:"code_challenge"`
CodeChallengeMethod string `form:"code_challenge_method" json:"code_challenge_method"` CodeChallengeMethod string `form:"code_challenge_method" json:"code_challenge_method" url:"code_challenge_method"`
} }
type AuthorizeCodeEntry struct { type AuthorizeCodeEntry struct {