fix: lint

This commit is contained in:
kolaente 2024-01-28 15:27:14 +01:00
parent 0d24ba12bb
commit 30a2dcd04c
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ import (
type Callback struct {
Code string `query:"code" json:"code"`
Scope string `query:"scop" json:"scope"`
RedirectUrl string `json:"redirect_url"`
RedirectURL string `json:"redirect_url"`
}
// Provider is the structure of an OpenID Connect provider
@ -104,7 +104,7 @@ func HandleCallback(c echo.Context) error {
return c.JSON(http.StatusBadRequest, models.Message{Message: "Provider does not exist"})
}
provider.Oauth2Config.RedirectURL = cb.RedirectUrl
provider.Oauth2Config.RedirectURL = cb.RedirectURL
// Parse the access & ID token
oauth2Token, err := provider.Oauth2Config.Exchange(context.Background(), cb.Code)