예제 #1
0
 internal void UpdateTenantAndUserInfo(string tenantId, string idToken, AdalUserInfo userInfo)
 {
     this.TenantId = tenantId;
     this.IdToken  = idToken;
     if (userInfo != null)
     {
         this.UserInfo = new AdalUserInfo(userInfo);
     }
 }
예제 #2
0
 /// <summary>
 /// Create user information copied from another UserInfo object
 /// </summary>
 public AdalUserInfo(AdalUserInfo other)
 {
     if (other != null)
     {
         this.UniqueId          = other.UniqueId;
         this.DisplayableId     = other.DisplayableId;
         this.GivenName         = other.GivenName;
         this.FamilyName        = other.FamilyName;
         this.IdentityProvider  = other.IdentityProvider;
         this.PasswordChangeUrl = other.PasswordChangeUrl;
         this.PasswordExpiresOn = other.PasswordExpiresOn;
     }
 }
예제 #3
0
 /// <summary>
 /// Create user information for token cache lookup
 /// </summary>
 internal UserInfo(AdalUserInfo adalUserInfo) : this(adalUserInfo?.UniqueId, adalUserInfo?.DisplayableId,
                                                     adalUserInfo?.GivenName, adalUserInfo?.FamilyName, adalUserInfo?.IdentityProvider,
                                                     adalUserInfo?.PasswordChangeUrl, adalUserInfo?.PasswordExpiresOn)
 {
 }