hi
You can continue to override the public virtual async Task<string> GetUserEmailAsync(string userName) of OpenLdapManager to output the debug messages.
public virtual async Task<string> GetUserEmailAsync(string userName)
{
using (var conn = await CreateLdapConnectionAsync())
{
await AuthenticateLdapConnectionAsync(conn, await NormalizeUserNameAsync(await LdapSettingProvider.GetUserNameAsync()), await LdapSettingProvider.GetPasswordAsync());
var searchResults = await conn.SearchAsync(await GetBaseDnAsync(), await GetUserFilterAsync(userName));
try
{
var userEntry = searchResults.First();
return await GetUserEmailAsync(userEntry);
}
catch (LdapException e)
{
Logger.LogException(e);
}
return null;
}
}
hi
then show all applications in this when i open web application this open https://web.domain.com but i want if tenant open than directly open https://smc.web.domain.com this URL.
I don't understand this very well. Can you explain in detail?
Thanks
hi
[INF] Client validation failed because 'https://smc.web.domain.com/signin-oidc' was not a valid redirect_uri for TestIdentity.
[INF] The authorization request was rejected because the redirect_uri was invalid: 'https://smc.web.domain.com/signin-oidc'.
PreConfigure<AbpOpenIddictWildcardDomainOptions>(options =>
{
options.EnableWildcardDomainSupport = true;
options.WildcardDomainsFormat.Add("https://{0}.auth.domain.com");
options.WildcardDomainsFormat.Add("https://{0}.web.domain.com/signin-oidc");
});
Try to add https://{0}.web.domain.com/signin-oidc to WildcardDomainsFormat
hi
You can try to get ICurrentUser from SettingPageCreationContext and check the roles.
hi
You only need to add AddAbpOpenIdConnect for the projects that use OpenIdConnect.
hi
https://github.com/abpframework/abp-samples/blob/master/DomainTenantResolver/MVC-TIERED/src/Acme.BookStore.Web/BookStoreWebModule.cs#L145-L177
sure. no problem. : )
hi
You need to make sure your email sender configuration is correct.
Then use WriteTo.Email in all projects that want to use email to output logs.
https://github.com/serilog/serilog-sinks-email