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
+8 -8
View File
@@ -108,14 +108,14 @@ type TokenResponse struct {
type AuthorizeRequest struct {
jwt.Claims
Scope string `form:"scope" binding:"required" json:"scope"`
ResponseType string `form:"response_type" binding:"required" json:"response_type"`
ClientID string `form:"client_id" binding:"required" json:"client_id"`
RedirectURI string `form:"redirect_uri" binding:"required" json:"redirect_uri"`
State string `form:"state" json:"state"`
Nonce string `form:"nonce" json:"nonce"`
CodeChallenge string `form:"code_challenge" json:"code_challenge"`
CodeChallengeMethod string `form:"code_challenge_method" json:"code_challenge_method"`
Scope string `form:"scope" binding:"required" json:"scope" url:"scope"`
ResponseType string `form:"response_type" binding:"required" json:"response_type" url:"response_type"`
ClientID string `form:"client_id" binding:"required" json:"client_id" url:"client_id"`
RedirectURI string `form:"redirect_uri" binding:"required" json:"redirect_uri" url:"redirect_uri"`
State string `form:"state" json:"state" url:"state"`
Nonce string `form:"nonce" json:"nonce" url:"nonce"`
CodeChallenge string `form:"code_challenge" json:"code_challenge" url:"code_challenge"`
CodeChallengeMethod string `form:"code_challenge_method" json:"code_challenge_method" url:"code_challenge_method"`
}
type AuthorizeCodeEntry struct {