Skip to content

Commit

Permalink
Fixed jwt test
Browse files Browse the repository at this point in the history
  • Loading branch information
jackhric committed Jan 6, 2025
1 parent f71454d commit 6751504
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/rdpgw/security/jwt_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,12 @@ func TestPAACookie(t *testing.T) {
username := "test_paa_cookie"
attr_client_ip := "127.0.0.1"
attr_access_token := "aabbcc"
sessionID := "1234"

id := identity.NewUser()
id.SetUserName(username)
id.SetAttribute(identity.AttrClientIp, attr_client_ip)
id.SetAttribute(identity.SessionId, sessionID)
id.SetAttribute(identity.AttrAccessToken, attr_access_token)

ctx := context.Background()
Expand Down

0 comments on commit 6751504

Please sign in to comment.