Skip to content

Commit

Permalink
fix: fix incorrect issuer in id token of oidc (#333)
Browse files Browse the repository at this point in the history
Signed-off-by: Товарищ <2962928213@qq.com>
  • Loading branch information
ComradeProgrammer committed Nov 19, 2021
1 parent 0b3742b commit 825de2b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion object/token_jwt.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import (
"fmt"
"time"

"github.com/astaxie/beego"
"github.com/golang-jwt/jwt/v4"
)

Expand All @@ -42,7 +43,7 @@ func generateJwtToken(application *Application, user *User) (string, error) {
claims := Claims{
User: *user,
RegisteredClaims: jwt.RegisteredClaims{
Issuer: "Casdoor",
Issuer: beego.AppConfig.String("oidcOrigin"),
Subject: user.Id,
Audience: []string{application.ClientId},
ExpiresAt: jwt.NewNumericDate(expireTime),
Expand Down

0 comments on commit 825de2b

Please sign in to comment.