This commit is contained in:
@@ -25,8 +25,8 @@ namespace AyaNovaQBI
|
||||
internal static string GuessClientUrl { get; set; }
|
||||
|
||||
internal static string JWT { get; set; }
|
||||
internal static long AyaNovaUserId { get; set; }
|
||||
internal static long AyaNovaUserTranslationId { get; set; }
|
||||
|
||||
// internal static long AyaNovaUserId { get; set; } //probably don't need this, if I do then some code will need to be added to decode the JWT or at the server to get my currently logged in USER ID
|
||||
internal static string AyaNovaUserName { get; set; }
|
||||
internal static AuthorizationRoles AyaNovaUserRoles { get; set; }
|
||||
internal static UserType AyaNovaUserType { get; set; }
|
||||
@@ -162,9 +162,8 @@ namespace AyaNovaQBI
|
||||
throw new Exception("Server login from QBI is disabled due to AyaNova license issue");
|
||||
}
|
||||
|
||||
JWT = a.ObjectResponse["data"]["token"].Value<string>();
|
||||
// AyaNovaUserId= a.ObjectResponse["data"]["id"].Value<long>();//nbot here maybe in jwt
|
||||
//AyaNovaUserTranslationId = a.ObjectResponse["data"]["tid"].Value<long>();
|
||||
JWT = a.ObjectResponse["data"]["token"].Value<string>();
|
||||
|
||||
AyaNovaUserName = a.ObjectResponse["data"]["name"].Value<string>();
|
||||
AyaNovaUserRoles = (AuthorizationRoles)(int.Parse(a.ObjectResponse["data"]["roles"].Value<string>()));
|
||||
AyaNovaUserType = (UserType)(int.Parse(a.ObjectResponse["data"]["usertype"].Value<string>()));
|
||||
|
||||
Reference in New Issue
Block a user