Added userinfo endpoint usage and api now properly creates necessary claims to start doing database stuff
This commit is contained in:
@@ -68,7 +68,6 @@ namespace WebAPI
|
||||
services.AddDbContext<AppDbContext>(options => options.UseNpgsql(Configuration.GetConnectionString("DefaultConnection")));
|
||||
services.AddScoped<PterodactylService>();
|
||||
services.AddScoped<OIDCService>();
|
||||
services.AddScoped<CustomAuthorizationFilter>();
|
||||
services.AddAuthentication(opt =>
|
||||
{
|
||||
opt.DefaultScheme = OIDCTokenAuthenticationDefaults.DefaultScheme;
|
||||
@@ -77,9 +76,6 @@ namespace WebAPI
|
||||
OIDCTokenAuthenticationDefaults.DefaultScheme,
|
||||
opt =>
|
||||
{
|
||||
opt.OIDCClientId = AppSettings.OIDCClientId;
|
||||
opt.OIDCClientSecret = AppSettings.OIDCClientSecret;
|
||||
opt.OIDCIntrospectionEndpoint = AppSettings.OIDCIntrospectionEndpoint;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user