Hi there,
i've upgraded the nugets in my MVC5+Angular 1.x template project from 1.5.1 to 2.0.0 and go errors. some related to interface changes that i think i've figured it out. but this error stuck me from getting any progress in compiling the solution:
cannot convert from 'void' to 'Microsoft.AspNet.Identity.IdentityResult' TenantManager.cs 80 Active
your asap advice would be deeply appreciated
Hi there,
can you please provide an example/update for retrieving additional data from user profile when they register via facebook/google.
basically i need to update and display their profile image on the ASPNETZERO website
Appreciate it, Efi.
Hi There,
the framework allow users to register and login in:
but when i'm trying to use the 2nd method (social login via google/facebook): I can register/login, when i close the browser and open it again, i need to login again and it's bad experience for the user.
When i use the 1st method (normal application registration/login) all scenario's work just fine, and the cookie is persistence.
need your quick advice/fix how to persist the cookie for the social login scenario?
Thanks Efi.
Hi there,
Thanks for your quick responses on my previous questions. In the template there are 2 projects:
currently the situation is that : .Web project uses Cookie Token and .WebApi uses ExternalBearer Token
its configured under Startup.cs file. I need all my client application weather its the .Web application and other client application that i write to work with ExternalBearer cause that's the right way to go.
I've tried to edit Startup.cs file to support that as follows..i'm getting the the ExternalBearer after the call but the when i try to preform an Authorized API call with the ExternalBearer Token i got i'm getting an error message that the "User is not logged in", please your asap advice what am i doing wrong:
public class Startup
{
public void Configuration(IAppBuilder app)
{
app.UseOAuthBearerAuthentication(AccountController.OAuthBearerOptions);
app.UseCookieAuthentication(new CookieAuthenticationOptions
{
//AuthenticationType = DefaultAuthenticationTypes.ApplicationCookie,
AuthenticationType = DefaultAuthenticationTypes.ExternalBearer,
LoginPath = new PathString("/Account/Login")
});
//app.UseExternalSignInCookie(DefaultAuthenticationTypes.ExternalCookie);
app.UseExternalSignInCookie(DefaultAuthenticationTypes.ExternalBearer);
if (IsTrue("ExternalAuth.Facebook.IsEnabled"))
{
app.UseFacebookAuthentication(CreateFacebookAuthOptions());
}
if (IsTrue("ExternalAuth.Twitter.IsEnabled"))
{
app.UseTwitterAuthentication(CreateTwitterAuthOptions());
}
if (IsTrue("ExternalAuth.Google.IsEnabled"))
{
app.UseGoogleAuthentication(CreateGoogleAuthOptions());
}
}
private static FacebookAuthenticationOptions CreateFacebookAuthOptions()
{
var options = new FacebookAuthenticationOptions
{
AppId = ConfigurationManager.AppSettings["ExternalAuth.Facebook.AppId"],
AppSecret = ConfigurationManager.AppSettings["ExternalAuth.Facebook.AppSecret"]
};
options.Scope.Add("email");
options.Scope.Add("public_profile");
return options;
}
private static TwitterAuthenticationOptions CreateTwitterAuthOptions()
{
return new TwitterAuthenticationOptions
{
ConsumerKey = ConfigurationManager.AppSettings["ExternalAuth.Twitter.ConsumerKey"],
ConsumerSecret = ConfigurationManager.AppSettings["ExternalAuth.Twitter.ConsumerSecret"]
};
}
private static GoogleOAuth2AuthenticationOptions CreateGoogleAuthOptions()
{
return new GoogleOAuth2AuthenticationOptions
{
ClientId = ConfigurationManager.AppSettings["ExternalAuth.Google.ClientId"],
ClientSecret = ConfigurationManager.AppSettings["ExternalAuth.Google.ClientSecret"]
};
}
private static bool IsTrue(string appSettingName)
{
return string.Equals(
ConfigurationManager.AppSettings[appSettingName],
"true",
StringComparison.InvariantCultureIgnoreCase);
}
}
Hi there,
i'm using your template over MySql. works just perfect. I have a huge table (10 million records) and i want to create a webpage that would allow me to browse them. Can you suggest a way or show an code example how to do pagination for such a situation?
Hi there,
i'm trying to work with the UserAppService on a side temp console application i've created. the code:
using Abp.Dependency; using Next.Ride.Authorization.Roles; using Next.Ride.Authorization.Users; using Next.Ride.Authorization.Users.Dto; using Next.Ride.Authorization.Users.Exporting; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks;
namespace testAbp { class Program { static void Main(string[] args) { IUserAppService userService = IocManager.Instance.Resolve<IUserAppService>(); var result = userService.GetUsers(new GetUsersInput()); } } }
Error: Additional information: No component for supporting the service Next.Ride.Authorization.Users.IUserAppService was found Question: What am i missing? can you share a simple program to show how to retrieve User and use the UserAppService independently from the web application.