hi
I disabled both Abp.Account.EnableLocalLogin and Abp.Account.IsSelfRegistrationEnabled but then was surprised to still see a registration screen. What am I missing?
The page will have a warning message. This is the default behavior.
Can you explain what you expect from this case?
This used to be done easily by a function CreateExternalUserAsync(ExternalLoginInfo info) on LoginModel but that seemed to go away. What is the replacement to that function?
I think the new method is protected virtual async Task<IdentityUser> RegisterExternalUserAsync(ExternalLoginInfo externalLoginInfo, string userName, string emailAddress)
I had made the decision to use email address for username for all users
You can customize the login/register page to hide the username input and use email everywhere.
Replace Input.UserName with Input.EmailAddress
hi
Try this:
[ExposeServices(typeof(OpenIddictSupportedLoginModel),typeof(LoginModel))]
public class LoginCustomModel : OpenIddictSupportedLoginModel
hi
Please share the code of eFC.Web.Pages.Account.LoginCustomModel
Thanks
hi
You need the code to Configure the OpenIddict server and OpenIddict validation.
public override void PreConfigureServices(ServiceConfigurationContext context)
{
var hostingEnvironment = context.Services.GetHostingEnvironment();
var configuration = context.Services.GetConfiguration();
PreConfigure<OpenIddictBuilder>(builder =>
{
builder.AddValidation(options =>
{
options.AddAudiences("MyProjectName");
options.UseLocalServer();
options.UseAspNetCore();
});
});
}
See https://docs.abp.io/en/abp/latest/Migration-Guides/OpenIddict-Mvc
hi
I think you should add Google as an external login on the AuthServer website.
Then, use AuthServer as your mobile external login provider. You can create an oauth2 client in the OpenIddict Application page.
Use code flow in your mobile.
Check the user for user has any registrations in our system Send user to registration page in our mobile app, complete sign up, login user without password or Login user without password
hi
Volo.Abp.AbpException: Could not find file '/libs/zxcvbn/zxcvbn.js'
Please share the package.json file content of http://account.my-website.cloud
Thanks.
the current of template
{
"version": "1.0.0",
"name": "my-app",
"private": true,
"dependencies": {
"@volo/abp.aspnetcore.mvc.ui.theme.leptonx": "~3.1.1",
"@volo/account": "~8.1.1"
}
}
And this is the commercial document for migration to openiddict
https://docs.abp.io/en/commercial/latest/migration-guides/openIddict-step-by-step
hi
Please share the code of your web module.
hi
Did you use SITOResource as a localized resource in your custom page?
@inject IHtmlLocalizer<SITOResource> L