public Credentials GetCredentials() { FormsAuthenticationTicket ticket = formsAuthenticationService.GetUserTicket(); if (ticket != null) { return(CredentialsProvider.ForSession(ticket.UserData).GetCredentials()); } return(null); }
/// <summary> /// Gets the credentials for the user /// </summary> /// <returns></returns> public Credentials GetCredentials() { if (amplaSessionStorage.Enabled) { string session = amplaSessionStorage.GetAmplaSession(); if (!string.IsNullOrEmpty(session)) { return(CredentialsProvider.ForSession(session).GetCredentials()); } } return(null); }