//==================================================================================================================
 /// <summary>
 /// 
 /// </summary>
 /// <param name="identity"></param>
 /// <returns></returns>
 //==================================================================================================================
 public AuthenticationToken GetToken(CinderIdentity identity)
 {
     var token = new AuthenticationToken
     {
         HeaderName = Cinder_AUTH_TOKEN_HEADER,
         Token = $"CinderAuth Cinderauth_user='******', Cinderauth_password='******', Cinderauth_version='1.0'"
     };
     return token;
 }
Пример #2
0
//=======================================================================================================
/// <summary>
///  Create an empty security principal and identity.
/// </summary>
//=======================================================================================================
        private CinderPrincipal CreateEmptyPrincipal()
        {
            // Send back an  principal and identity which refelcts this state.

            var newIdentity  = new CinderIdentity(String.Empty, string.Empty, string.Empty, false);
            var newPrincipal = new CinderPrincipal(newIdentity);

            return newPrincipal;
        }