From 3206b44dc245525ef03f852db5a92a53b6047b70 Mon Sep 17 00:00:00 2001 From: aricart Date: Tue, 14 Jan 2020 10:21:23 -0400 Subject: [PATCH] moved BearerToken to be inside of the "nats" configuration --- user_claims.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/user_claims.go b/user_claims.go index 4ff0410..78fe6a9 100644 --- a/user_claims.go +++ b/user_claims.go @@ -25,12 +25,14 @@ import ( type User struct { Permissions Limits + BearerToken bool `json:"bearer_token,omitempty"` } // Validate checks the permissions and limits in a User jwt func (u *User) Validate(vr *ValidationResults) { u.Permissions.Validate(vr) u.Limits.Validate(vr) + // When BearerToken is true server will ignore any nonce-signing verification } // UserClaims defines a user JWT @@ -40,8 +42,6 @@ type UserClaims struct { // IssuerAccount stores the public key for the account the issuer represents. // When set, the claim was issued by a signing key. IssuerAccount string `json:"issuer_account,omitempty"` - // When BearerToken is true server will ignore any nonce-signing verification - BearerToken bool `json:"bearer_token,omitempty"` } // NewUserClaims creates a user JWT with the specific subject/public key