hi
I recommend that you add the source code of the Identity module to your solution and add the IsActive property to the IdentityRole.
HI
Can you check the web.config?
https://docs.microsoft.com/en-us/aspnet/core/fundamentals/environments?view=aspnetcore-6.0#windows---use-webconfig
hi
I think you just need to change the syntax of the SQL server to the oracle, the principle is the same.
https://github.com/abpframework/abp-samples/blob/master/StoredProcedureDemo/src/StoredProcedureDemo.EntityFrameworkCore/EntityFrameworkCore/Users/AppUserRepository.cs#L27-L40
Hi
The request filtering module is configured to deny a request where the query string is too long.
https://www.syncfusion.com/kb/5051/how-to-resolve-the-http-error-404-15-not-found https://stackoverflow.com/questions/42370214/http-error-404-15-not-found
hi
See https://docs.abp.io/en/abp/5.1/Application-Services#working-with-streams
hi
Can you try this?
var auth = await _httpContextAccessor.HttpContext.AuthenticateAsync(IdentityConstants.ExternalScheme);
https://github.com/abpframework/eShopOnAbp/blob/b48dc3465980856c4f61b3532ad51fe211a6cbf7/apps/auth-server/src/EShopOnAbp.AuthServer/EShopUserPrincipleFactory.cs#L42-L53
hi
We will give a solution soon. : )
hi
Here is a solution that copy tokens from IdentityConstants.ExternalScheme to IdentityConstants.ApplicationScheme
.AddGitHub(options =>
{
options.ClientId = "bdcc3";
options.ClientSecret = "32e3";
options.SaveTokens = true;
options.ClaimActions.Remove(ClaimTypes.Email);
options.ClaimActions.MapJsonKey(AbpClaimTypes.Email, "email");
})
using System.Threading.Tasks;
using AspNet.Security.OAuth.GitHub;
using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Identity;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
using Volo.Abp.DependencyInjection;
using IdentityUser = Volo.Abp.Identity.IdentityUser;
namespace abp.social_test.Web;
[Dependency(ServiceLifetime.Transient, ReplaceServices = true)]
[ExposeServices(typeof(SignInManager<IdentityUser>))]
public class MySignInManager : SignInManager<IdentityUser>
{
public MySignInManager(Microsoft.AspNetCore.Identity.UserManager<IdentityUser> userManager,
IHttpContextAccessor contextAccessor,
Microsoft.AspNetCore.Identity.IUserClaimsPrincipalFactory<IdentityUser> claimsFactory,
IOptions<IdentityOptions> optionsAccessor, ILogger<SignInManager<IdentityUser>> logger,
IAuthenticationSchemeProvider schemes, IUserConfirmation<IdentityUser> confirmation) : base(userManager,
contextAccessor, claimsFactory, optionsAccessor, logger, schemes, confirmation)
{
}
public override async Task SignInAsync(IdentityUser user, AuthenticationProperties authenticationProperties,
string authenticationMethod = null)
{
if (authenticationMethod == GitHubAuthenticationDefaults.AuthenticationScheme) // is github external login
{
var githubAuthenticateResult = await Context.AuthenticateAsync(IdentityConstants.ExternalScheme);
if (githubAuthenticateResult.Succeeded)
{
if (githubAuthenticateResult.Properties != null)
{
authenticationProperties.StoreTokens(githubAuthenticateResult.Properties.GetTokens());
}
}
}
await base.SignInAsync(user, authenticationProperties, authenticationMethod);
}
}