Beispiel #1
0
 internal void UpdateTenantAndUserInfo(string tenantId, string idToken, AdalUserInfo userInfo)
 {
     TenantId = tenantId;
     IdToken  = idToken;
     if (userInfo != null)
     {
         UserInfo = new AdalUserInfo(userInfo);
     }
 }
 /// <summary>
 /// Create user information copied from another UserInfo object
 /// </summary>
 public AdalUserInfo(AdalUserInfo other)
 {
     if (other != null)
     {
         UniqueId          = other.UniqueId;
         DisplayableId     = other.DisplayableId;
         GivenName         = other.GivenName;
         FamilyName        = other.FamilyName;
         IdentityProvider  = other.IdentityProvider;
         PasswordChangeUrl = other.PasswordChangeUrl;
         PasswordExpiresOn = other.PasswordExpiresOn;
     }
 }
Beispiel #3
0
 public AdalUserForMsalEntry(string clientId, string authority, string clientInfo, AdalUserInfo userInfo)
 {
     ClientId   = clientId ?? throw new ArgumentNullException(nameof(clientId));
     Authority  = authority;
     ClientInfo = clientInfo;
     UserInfo   = userInfo ?? throw new ArgumentNullException(nameof(userInfo));
 }
 internal AdalTokenCacheKey(string authority, string resource, string clientId, TokenSubjectType tokenSubjectType, AdalUserInfo adalUserInfo)
     : this(authority, resource, clientId, tokenSubjectType, adalUserInfo?.UniqueId, adalUserInfo?.DisplayableId)
 {
 }