hi
You should be able to get an access token after oidc is signed in.
Can you confirm this first?
Thanks.
//(options =>
//{
// options.DefaultScheme = "Cookies";
// options.DefaultChallengeScheme = "oidc";
//})
//.AddCookie("Cookies", options =>
//{
// options.ExpireTimeSpan = TimeSpan.FromDays(365);
// options.CheckTokenExpiration();
//})
.AddAbpOpenIdConnect("oidc", "XCore", options =>
{
options.Authority = configuration["XAuthAuthServer:Authority"];
options.RequireHttpsMetadata = configuration.GetValue<bool>("XAuthAuthServer:RequireHttpsMetadata");
options.ResponseType = OpenIdConnectResponseType.CodeIdToken;
options.ClientId = configuration["XAuthAuthServer:ClientId"];
options.ClientSecret = configuration["XAuthAuthServer:ClientSecret"];
options.UsePkce = true;
options.SaveTokens = true;
options.GetClaimsFromUserInfoEndpoint = true;
options.Scope.Add("roles");
options.Scope.Add("email");
options.Scope.Add("phone");
options.Scope.Add("XCore");
//options.SignInScheme = IdentityConstants.ExternalScheme;
});
hi
EntityName PropertyThe EntityName property is to set the related entity's name on the repository object in some advanced scenarios. For example, you can use this property to use the Shared-type entity types feature of Entity Framework Core (it allows you to use a single entity class to work on multiple tables in the database). In other cases, you can just ignore it.
Default value is null unless you explicitly set it.
Example usage:
IRepository<YourSharedType, Guid> _repository; // You can inject it into your class
...
_repository.SetEntityName("Product"); //Set the entity name before using the repository
//use the _repository object as always
ProviderName PropertyThe ProviderName property of a repository object returns the underlying database provider name. It may return one of the following string values for the built-in providers:
Volo.Abp.EntityFrameworkCore (from the constant AbpEfCoreConsts.ProviderName value)Volo.Abp.MongoDB (from the constant AbpMongoDbConsts.ProviderName value)Volo.Abp.MemoryDb (from the constant AbpMemoryDbConsts.ProviderName value)This property is not used in most cases. It is mainly available for internal usage of the ABP framework.
https://github.com/abpframework/abp/pull/23638 https://github.com/abpframework/abp/commit/968bfe0fa037f7cf87c75f8f103043d2cb1f9e30
Thanks.
hi
This is very strange. Could you share a project that reproduces the exception?
Thanks.
hi
We will fix the IsVisable problem in 9.3.7.
See https://github.com/abpframework/abp/pull/24290
Thanks.
hi @samirmustafayev
Any website that needs to check features must directly or indirectly reference the module that defines the MyDefinitionProvider class.
Thanks.
hi
Can you share your test project?
I will download and debug it.
liming.ma@volosoft.com
Thanks.
hi
How to configure OAuth2 in our application so that we can send and receive emails for Microsoft 365.
The OAuth2 settings page is for External Login instead of sending/receiving emails
See https://abp.io/docs/latest/modules/identity/oauth-login
Thanks
hi
Can you share your logs.txt file of AuthServer project?
liming.ma@volosoft.com
Thanks.
hi
Your application will first log out. After that, you can redirect to Microsoft's website to log out. And Microsoft redirects you back to your website.
post_logout_redirect_uri https://localhost:44372Thanks.