Skip to content

Commit

Permalink
Merge pull request #25 from Gaucho-Racing/bk1031/jwt-issuer
Browse files Browse the repository at this point in the history
Fix Jwt issuer
  • Loading branch information
BK1031 authored Aug 29, 2024
2 parents 8e3bde5 + 6d17205 commit 7ebabcf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"os"
)

var Version = "3.3.1"
var Version = "3.3.2"
var Env = os.Getenv("ENV")
var Port = os.Getenv("PORT")
var Prefix = os.Getenv("PREFIX")
Expand Down
2 changes: 1 addition & 1 deletion model/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func (c AuthClaims) Valid() error {
vErr.Errors |= jwt.ValidationErrorIssuedAt
}

if !c.VerifyIssuer("sso.gauchoracing.com", true) {
if !c.VerifyIssuer("https://sso.gauchoracing.com/", true) {
vErr.Inner = jwt.ErrTokenInvalidIssuer
vErr.Errors |= jwt.ValidationErrorIssuer
}
Expand Down

0 comments on commit 7ebabcf

Please sign in to comment.