/// <summary>
 /// Creates the authorization value from the token.
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 public static string ToAuthorizationValue(this IdentityTokenModel model)
 {
     return(Try.Op(() => Encoding.UTF8.GetBytes(
                       ConnectionString.CreateFromAccessToken(model).ToString())
                   .ToBase64String()));
 }