tests: add basic testing

This commit is contained in:
Stavros
2026-01-25 20:45:56 +02:00
parent 9cbcd62c6e
commit e498ee4be0
2 changed files with 205 additions and 6 deletions

View File

@@ -29,12 +29,12 @@ type AuthorizeCallback struct {
}
type TokenRequest struct {
GrantType string `form:"grant_type" binding:"required"`
Code string `form:"code"`
RedirectURI string `form:"redirect_uri"`
RefreshToken string `form:"refresh_token"`
ClientID string `form:"client_id"`
ClientSecret string `form:"client_secret"`
GrantType string `form:"grant_type" binding:"required" url:"grant_type"`
Code string `form:"code" url:"code"`
RedirectURI string `form:"redirect_uri" url:"redirect_uri"`
RefreshToken string `form:"refresh_token" url:"refresh_token"`
ClientID string `form:"client_id" url:"client_id"`
ClientSecret string `form:"client_secret" url:"client_secret"`
}
type CallbackError struct {