Skip to content

Commit

Permalink
generate token containing version key
Browse files Browse the repository at this point in the history
  • Loading branch information
gmgigi96 committed Apr 3, 2023
1 parent 4d6317c commit 5ca453b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/grpc/services/gateway/storageprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ func (s *svc) sign(_ context.Context, target, versionKey string) (string, error)
Audience: "reva",
IssuedAt: time.Now().Unix(),
},
Target: target,
Target: target,
VersionKey: versionKey,
}

t := jwt.NewWithClaims(jwt.GetSigningMethod("HS256"), claims)
Expand Down

0 comments on commit 5ca453b

Please sign in to comment.