3,017 questions
1
vote
1
answer
511
views
UserManager.FindByNameAsync Returns null for Existing User in ASP.NET Core
I am encountering an issue with UserManager.FindByNameAsync in an ASP.NET Core application where it returns null even though the user exists in the database. I am trying to retrieve user roles based ...
2
votes
2
answers
1k
views
Cannot prevent animation when changing TabView data (SwiftUI)
My TabView is being populated by an array of Identifiable items. If the array size grows or shrinks in a way that keeps the currently visible item on screen, the view gives me an awkward flashing ...
0
votes
5
answers
181
views
Is there an efficient way in Java to search for multiple words (not next to each other) in the same String value?
We pull a lot of our data from an authoritative source into various attributes in our environment.
One of those attributes we have is "jobTitle" - as the name suggests, it's an identity's ...
0
votes
1
answer
174
views
How to create User and Role for Admin in .NET 7?
When the database is created, it is empty and I need to have a model for the user in the AspNetUsers table and a role for example admin in AspNetRoles and also in the AspNetUserRoles model these two ...
0
votes
1
answer
1k
views
.NET 5 Unable to unprotect the message.State when trying the sign-in callback
We are running an Azure app service (linux) which is used for authentication and authorization. It is using Microsoft Identity to use Azure AD authentication, so we are using Azure ad oidc. Couple of ...
0
votes
1
answer
1k
views
Azure Function app error: The current processor architecture is: X86. The module 'AzureAD.psd1' requires the following architecture: Amd64
I try to get all the users from AAD in an Azure function as in [this][1] tutorial but get the error:
The current processor architecture is: X86. The module 'C:\home\data\ManagedDependencies\...
0
votes
3
answers
106
views
Inserting identity column value as param to other column [duplicate]
I have a table named tab_stores, it's structure is shown below
CREATE TABLE tab_stores
(
id_num INT IDENTITY(1, 1),
sName VARCHAR(20),
mySKey VARCHAR(20)
);
Now, when I insert the values ...
5
votes
0
answers
1k
views
How to configure ASP.NET Core Identity endpoints in a Web API
Recently, version 8 of Identity was released. In this version, Identity endpoints can be used for tasks like user registration, etc. Additionally, Jwt Bearer can be used instead of cookies. However, ...
11
votes
1
answer
6k
views
Blazor, .Net 8 and Global Interactivity issue with Identity
I have been playing around with the new .Net 8 Blazor templates and ran into a problem with Identity and setting a global InteractiveServer render mode. The change I made was in the App.Razor file to ...
0
votes
1
answer
158
views
ASP.NET Core 7 MVC : custom SignInmanager IsSignedIn is always false
I am developing an ASP.NET Core 7 MVC web application. I am using Entity Framework code-first. All my code seems to work. I can add migrations, update database and run my web application.
Upon login, ...
0
votes
2
answers
503
views
Wildcards support for AllowedCorsOrigins in IdentityServer4
I use IdentityServer4 to login to my app using authorization_code flow.
I need to add support of wildcards for AllowedCorsOrigins in IdentityServer4 client configuration. I created my implementation ...
0
votes
1
answer
631
views
How do i configure Google Identity Platform properly?
We want to let users login with Google in our web app.
On our intranet we want to an OpenID provider to let users in into 3rd party apps, so they are automatically logged in. (SSO)
3rd party apps (...
0
votes
2
answers
1k
views
ASP.NET Core 8 Web API endpoint does not contain my custom fields
I created an entity ApplicationUser and successfully extended it to IdentityUser and migrations created it in the database.
But when I go to the register endpoint, it does not show my custom fields to ...
-1
votes
1
answer
278
views
As an issuer in Hyperledger Indy/Aries, do I need to create a separate DID for each user? Likewise does a user create multiple DID for each isssuers
I am going through Hyperledger Indy document here.
It is mentioned here that: A user registers for a service's website by creating and giving the service a new, never-used-before DID, and receives ...
1
vote
1
answer
1k
views
ASP.NET Core App Won't redirect user to login page after failing authorization, instead returns 404
So I'm creating a small app for my work
I'm using .net 7, Asp.Net Core, Identity, and for authorization I'm using cookies
All my Login, Register and Logout pages located in Area, so the adress for ...
0
votes
2
answers
265
views
Oauth2 and Open Id Connect
I have confusion about Oauth2 and Open Id Connect I know that Oauth2 for authorization and oidc for authentication but Oauth2 provide access token to access to protected resources and oidc provide ...
-1
votes
3
answers
210
views
Why does using User.IsInRole() always return false?
I use User.IsInRole() to check that after logging in, users with the admin role will go straight to the admin page, if they don't have the admin role, they will go to another page. However, User....
0
votes
1
answer
247
views
Api gateway with identity server 4
I create idenyity server 4 project, create api gateway and api resource
My question
Why need to handle jwt configuration in api gateway although I handled configuration jwt in api resource, I know ...
0
votes
1
answer
214
views
Why do I get database provider error in ASP.NET Core 7?
I have an ASP.NET Core 7 MVC project. I want put my SQL Server connection string in the appsettings.json file, and then use that in my entire project and the layers.
But I get the the provider error:
...
2
votes
0
answers
35
views
ASP.NET Core web app (Model-View-Controller) - cannot get user from HttpContext [duplicate]
I've been working on rebuilding an old ASP.NET webforms app built back in 2010 from scratch. I'm using the ASP.NET Core web app (Model-View-Controller) project template (C#) with Visual Studio 2022 ...
-1
votes
1
answer
80
views
when i create mvc controller with views,using entityframework i cant route to it
My control is built well, but I can't get to that path and I get this error:
An unhandled exception occurred while processing the request.
InvalidOperationException: Unable to resolve service for ...
1
vote
0
answers
330
views
Get-CsPhoneNumberAssignment Azure Automation Error 401 Unauthorized
Has anyone gotten the cmdlet Get-CsPhoneNumberAssignment to work in Azure Automation with a system managed identity? According to MS, almost all cmdlet are now supported for application based ...
0
votes
0
answers
30
views
Graph Endpoint to get Application identity details returned in CreatedBy property of driveItems?
I have creating document using CSOM and Powershell at SharePoint Document Lib. When I tied to get the driveItem details of the item I get a set which contains user and appliation.
Image for Reference
...
0
votes
1
answer
1k
views
Open FGA Wildcard Relationship From Object to User
I am trying to define user and admin schema in OpenFga
model
schema 1.1
type user
relations
define admin: [admin#member]
type admin
relations
define member: [user]
I have added ...
0
votes
2
answers
80
views
C# Removing List Item with same value but different identity, works, but why?
I was trying to make a code that removes some list items, but then I realized, my code is not supposed to be working, but works.
I will explain the reason why I thought that my code 'should not be ...
1
vote
0
answers
2k
views
Use ASP.NET Core Identity with Blazor Server razor pages
I'm trying to implement authorization on my Blazor Server App and I would like to use Identity because if offers to me all the roles and other features ready to use.
I follow a tutorial like this: ...
0
votes
2
answers
146
views
.NET 6 Table 'aspnetuserroles' doesn't exist
I'm configuring a new project on .NET 6, with jwt, identity and MySQL Mariadb with Pomelo.EntityFrameworkCore.MySql 6.0.2.
The error I'm getting when I try to login is "Table 'aspnetuserroles' ...
0
votes
1
answer
189
views
Identify IdP from SAML and OIDC configurations
User has configured our app to connect to any identity provider using SAML or OpenID Connect protocol. From the configuration is there a way to identity what is the source Identity provider be it ...
1
vote
2
answers
790
views
ASP.NET Identity "new item scaffolded" not shown
I want to add identity scaffolded item to my project (Visual Studio 2022 - ASP.NET Wep Application .Net Framework).
But, I cannot add identity by using Add > New Scaffolded Item, because there is ...
0
votes
2
answers
528
views
Oracle 19.17 Reference a sequence as default of Primary Key column fails with ORA 02262
This command used with an existing table and sequence fails with ORA 02262 Error Occurs while type checking column default expression
MESSAGES TABLE INFO
ID NUMBER(38) Primary Key
ALTER TABLE ...
0
votes
1
answer
373
views
return_url is not working for Stripe Identity Verification when used in an iframe
I'm trying to integrate the Stripe identity verification in my app inside an iframe using the redirect method as mentioned in the docs.
But after the verification document is submitted successfully, ...
0
votes
1
answer
2k
views
'Could not load type 'Microsoft.AspNetCore.Identity.UI.Services.IEmailSender' from assembly 'Microsoft.Extensions.Identity.Core, Version=8.0.0.0,
I get this error when code execution reaches the following statement in program.cs:
services.AddIdentity<AppUser, IdentityRole>(opts =>
{
opts.User.RequireUniqueEmail = true;
//opts....
0
votes
1
answer
872
views
Blazor QuickGrid SetCurrentPageIndexAsync error
I use QuickGrid for userManager.Users in initializedasync like this:
itemsQueryable = userManager.Users.AsQueryable();
pagination.TotalItemCountChanged += (sender, eventArgs) => StateHasChanged();
...
0
votes
1
answer
476
views
Facing an issue in Event grid while using authentication
I have a webapp (on Azure) which is sending messages to a eVent grid topic (on Azure same subscription) using sasKey. I have to eliminate the saskey usage and use the inbuilt roles & permissions. ...
0
votes
0
answers
185
views
.Net Core Identity. How to get instance of UserManager
I am running into the following error while trying to get an instance of UserManager:
System.MissingMethodException
HResult=0x80131513
Message=Method not found: 'Void Microsoft.AspNetCore.Identity....
0
votes
0
answers
151
views
How can I persist id_token to use during sign out?
I'm using Okta, .NET 6 and Identity Server 4 (in the middle of convincing the upper management to upgrade from 4.0 to 6.0).
I need the id_token in order to log out from Okta, however it's always null.
...
1
vote
0
answers
39
views
What is the difference between Identity object in Request/Response and Principal?
I'm using .NET 6 and Identity Server 4.
What is the difference between these three Identities (this is a class derived from OpenIdConnectEvents)?
Why are there claims in the principalIdentity but not ...
2
votes
0
answers
163
views
What should I set for OpenIdConnectOptions.SignOutScheme?
I'm using .NET 6 and Identity Server 4.
What should I set for OpenIdConnectOptions.SignOutScheme?
This is what I have in Startup.ConfigureServices():
.AddOpenIdConnect("oidc", "...
0
votes
1
answer
429
views
GAE and IAP: frontend and backend in two containers?
I understand that both FE and BE can be run in the same container, placing one process in the background. This ways CORS issues are resolved and Identity Access Proxy is only called once when the app ...
1
vote
0
answers
99
views
Keycloak social identity API
I have react app which use keycloak API for authentication and authorization.
I have social button in my react app when its clicked it should navigate to social identity pages.
I also found a solution ...
0
votes
2
answers
273
views
Approach for identity based query filter .NET
I am working on a .NET WebApi application built around a clean architecture design.
In the higher layer of the solution, in the WebApi project, where the controllers sit, I have a static helper class ...
1
vote
0
answers
451
views
Google Workspace 'viewer/reader' role
I am wondering if there is any pre-defined role that would grant full reader/viewer access to the Google Workspace admin portal, allowing me to check all users, security settings, etc. (Important that ...
0
votes
1
answer
488
views
Azure Function Keyvault Reference -> User Assigned Identity instead of System Assigned managed Identity
I am currently trying to build an Azure infrastructure for a project using Pulumi (unfortunately I had to use the azure_native provider). The problem is that my function does not understand that it ...
3
votes
1
answer
701
views
How to remove a two-factor provider for a user in Identity Core?
I am trying to implement multiple two-factor methods with Identity core/.net7.
Calling the function UserManager.GetValidTwoFactorProvidersAsync(user) gives me a list of the methods the user enabled. ...
2
votes
0
answers
232
views
Identity in Blazor after reload page user are logout
i have the problem after reload the blazor server page the user is no longer logged in
builder.Services.AddIdentity<ApplicationUser, ApplicationRole>(options =>
{
options.Lockout....
0
votes
1
answer
5k
views
Differnce between ClientID and Object ID in Azure's User Managed Identity
I am unable to understand the difference between Client ID and Object ID of a User managed Identity created in Azure. Find screenshot of an identity created. When should we use ClientID and when ...
0
votes
1
answer
534
views
Blazor Server using Identity - Getting user info in code
I hope someone can help me. I am trying to use Identity with individual accounts. I have come across a need that I can't seem to figure out. What I need to do is to be able on any Blazor page, in ...
0
votes
0
answers
29
views
Digital signatures (PDFs): how do they work, and what's the proper way tu use them?
Please note that I'm not a developper (anymore), so a GUI-based solution would be a prefered way if it is possible (if it isn't, I'm ready to dive into whatever coding there needs to be).
And if you ...
0
votes
2
answers
72
views
IdentityServer4 in NetCore, tokens lost on restart
I am facing an issue with IdentityServer4. Whenever I restart the server, the tokens get deleted from memory and the users have to re-identify themselves.
I need these tokens to persist and not get ...
0
votes
1
answer
931
views
c# - The 'ClientID' option must be provided - Azure API - Connect to AzureSQL using managed identity
I have built an API as an Azure Web app that will be hosted through Azure API Management Service. I need the app to connect to an AzureSQL database using a system assigned managed identity.
var ...