Questions tagged [identityserver4]
OpenID Connect Provider and OAuth 2.0 Authorization Server Framework based on ASP.NET Core
identityserver4
5,423
questions
0
votes
0
answers
17
views
How to get user information like email, firstname and lastname using Windows AD and without LDAP server?
Using Windows AD in identity server to authenticate user and in that response we are not getting user information like e-mail, first name, last name.
To get the user information, we are using this ...
0
votes
1
answer
14
views
IdentityServer4 stuck in `signin-oidc` and `authorize` redirect loop
We are moving our legacy system from iis to kubernetes and having problems with identityserver authentication. We have our client-facing app and identityserver in different apps but same domain e.g ...
0
votes
2
answers
42
views
Can you use Identity Server 4 with .NET Framework 4.8?
I have an existing project that was built with .NET Framework which has an output of class library which has Identity Server 3 installed on it. I want to know if its possible to install IDS 4 on the ...
0
votes
0
answers
10
views
window.addEventListener('load',... does not trigger on Chrome on iOS (iPad)
We are using identity Server 4.
We are using .NET Core RazorPages web-applications.
They authenticate via openid-connect
While authentificating,the client is redirected to a html page with a hidden ...
1
vote
0
answers
34
views
expo auth session and redirecting back to my app
I'm building the mobile version for a website, and using the identity server for authentication,
I'm using expo-auth-session for handling this but I'm facing a problem redirecting back to my app, is ...
0
votes
1
answer
40
views
Error with Identity Server and Client App
I'm following along with the steps described here:
https://hts.readthedocs.io/en/latest/quickstarts/3_interactive_login.html
and getting the following error in the mvc client:
2024-07-05 14:38:57.607 -...
1
vote
0
answers
41
views
ASP.NET Core 5 Identity reset password token is randomly invalid
Using IdentityServer4 + ASP.NET Core Identity with .NET 5.
Our password reset endpoint throws errors, however, if I re-send the request a few times (the exact same request), it works again.
Here's a ...
0
votes
1
answer
47
views
Token Request Failing and Returning error invalid grant
These are the IdentityServer logs:
2024-07-04 21:06:57.551 -04:00 [DBG] Start key discovery request
2024-07-04 21:06:57.552 -04:00 [INF] Request finished HTTP/1.1 GET https://localhost:44322/.well-...
0
votes
0
answers
35
views
IdentityServer4 with .Net7.0. API separation in SSO by ApiScope
I have 5 clients of my identity server, I need to separate the authorization of 1 client from the others. After signin to the ClientA, I switch to the ClientB already authorized, help me solve.
It is ...
0
votes
1
answer
36
views
How can we generate access token based on some Id along with emailaddress and password
Currently I am working on a task where I need to generate access token for a user based on user credentials(emailaddress and password) and some Id (e.g: subscriptionId ). As per my research there is ...
0
votes
0
answers
38
views
Unable to get user information using useSession hooks
I am using Identity Server as a provider for authentication. I want to get user information on my Next.js pages using the useSession hooks. After a successful login, I am able to get the user details ...
0
votes
1
answer
51
views
Issue with seeding IdentityServer4 data using Entity Framework and SQL Server
I'm currently facing an issue while trying to seed data for IdentityServer4 using Entity Framework Core with SQL Server. I followed the quickstart guide, but I'm encountering problems when seeding ...
0
votes
0
answers
24
views
Why does authorization fail when running through compose?
I'm connecting authorization for the project via Identity Server 4.
I have 2 projects, one has an IdentityServer, the second just an api.
The fact is that when I launch the api locally, transfer the ...
0
votes
0
answers
21
views
I logged in with Identity Server4 and I change subdomain, I want to stay logged in - .NET Core and Angular
In .NET Core 6 using Identity Server 4 password flow, Angular, I log in successfully using a valid user name and password and store the token to local storage.
Now I want to allow logged in user to ...
1
vote
0
answers
66
views
Unable to get user information from Duende Identity server because requirehttps error in my Angular application
For a project I am running an ASP.NET Core 8 Web API server, Duende Identity Server, and the client side is an Angular 17 app.
But after the user is authenticated in my Duende Identity server should ...
0
votes
0
answers
18
views
Identity server 4 redirect when project removed
In the past I have sued identity server 4 as the identity provider. Now, i have deleted the identity project from my solution, removed every mention on the identity url from my solution and also ...
0
votes
0
answers
96
views
Microsoft.AspNetCore.Antiforgery.AntiforgeryValidationException while ASP.NET Core 8.0 MVC app trying to connect with IdentityServer4 App in IIS
We are migrating our projects from .NET 6.0 to .NET 8.0, where I am getting this error.
We have one ASP.NET Core MVC application which is trying to connect to the IdentityServer4 application for ...
0
votes
1
answer
100
views
Adding External OAuth Authentication via AddOauth
Our application current using a traditional username/password login to authenticate against our AbpUsers table internally.
We are currently on ABP Framework 5.3.5
I am trying to add a new external ...
0
votes
0
answers
45
views
code is fine versions are latest .Net 8 but my auth project did not validate the token Identity server 4?
Everything is fine in code but not working I used latest version of packages with .NET 8.0 the versions are also same but did not work.
I've created two projects
Identity Server
Game Api
I want to ...
0
votes
0
answers
57
views
InvalidOperationException: No authenticationScheme was specified in ASP.NET Core with IdentityServer4
I'm encountering an InvalidOperationException in my ASP.NET Core application when integrating with IdentityServer4. In local everything works fine but when I replace my old projects (Client + Auth) I ...
2
votes
0
answers
74
views
How do authorize with Identity Server and Azure Active Directory?
It is necessary to make authorization through these systems. Leave the login and password through the Server Identity page, and the process itself through AAD.
I did so. The token from AAD is returned ...
0
votes
0
answers
16
views
In IdentityServer4 is there a way to add the client GUID available in the ExtendedClients table in claim list?
I would like to identify a client using the GUID available in the ExtendedClients table. When a client requests a token using the client_credentials flow, the claim available in the token is the ...
0
votes
2
answers
62
views
Can't get access token from Identity Server 4 when using IHttpClientFactory and Intercept HttpClient GetAsync
I am trying to get access token from Identity Server 4 in my .Net 6 solution. I have 3 projects are running :
Identity Server to get access token from it
Movies.API to access secured resource
Movies....
2
votes
1
answer
121
views
Chrome does not return IdentityServer authentication cookie
I am debugging a problem with a legacy ASPNETCore authentication system that uses IdentityServer4. It seems to be a problem with how Chrome (and Edge) handles a cookie.
When the Login page posts (via ...
0
votes
1
answer
58
views
How can run the IdentityServer for Macos?
I am developing a project, it is requested to use IdentityServer4. I install the project but I can't run it because it doesn't support .net 3.1 on Macos operating system.
I did some research, I found ...
0
votes
0
answers
42
views
ABP Framework Deployment on IIS Authorize returns "Error?httpStatusCode=400"
We developed a web application using ABP Framework. We published the application we developed under a single domain with api and authserver applications. We also updated the application address ...
0
votes
0
answers
65
views
Invalid authorization code when multiple instances of Identity Server 4
We are running into wierd issues since we scale out our azure app service plan. All this time we were on single instance hence no issue faced there. With mutiple instance running we persistenly get ...
0
votes
1
answer
37
views
Azure WebApp Blazor with IdentityServer4 Couldn't find a valid certificate with subject 'CN=' on the 'CurrentUser\My'
I used self-signed certificate for my IS4. I followed the steps in here.
I tried using self-signed certificate and uploading the pfx file.
New-SelfSignedCertificate -Subject "CN=certName" -...
0
votes
0
answers
22
views
In Identity Server, How to silently re-sign in an already logged session?
I had a configuration client + handler that worked only with cookies.
I have many users already logged with that cookies
That configuration didn't emit tokens, then I changed the client + handler to ...
1
vote
0
answers
40
views
How to deploy Duende Identity Framework in an existing application
So far I only saw docs about deploying Duende IDP as a dedicated Application.
How can we deploy in an existing Application, so that:
ISSUER will be something like https://localhost:5001/idp
The UI ...
1
vote
0
answers
30
views
how to disable single signout in identity server4 for Client application?
How to disable single signout using identity server 4 in angular application?
Actually my client is working for single signout but i need to stop. what is the process for
disable sso.
0
votes
0
answers
32
views
Identity Server 4 add saml2 client
We have an identity server 4 as our identity provider. It uses openId and we have all the clients configured using the OpenId protocol. We have a portal that uses one of these clients for ...
0
votes
0
answers
28
views
Using identity server 4 , how can I retrieve connect/token data from the conect/token endpoint from a controller and manually pass that back?
I'm currently working with an Angular SPA app.
I'm successfully signing in externally with google, and retrieving the data from the callback from google.
From here I:
Look up the user
If the user ...
0
votes
1
answer
137
views
Duende Identity Server Internal API Authorization
I am using IdentityServer 7 with Asp.Net Identity in the same application.
How can I possibly keep the RazorPages and "cookies" authenitication handler that is registered with the Duende ...
1
vote
0
answers
68
views
Minimizing IdentityServer4 Round Trips in Microservice Architecture with Ocelot
I'm currently working on a microservice architecture project that uses Ocelot for APIGateway, and IdentityServer4 for authentication and authorization. Recently, I transitioned from self-contained ...
0
votes
0
answers
129
views
Problem with SSL Certificate when the .Net App calls itself in the docker container
I have a project that contains both my API with its controllers and everything else, as well as identityserver4 running under the same localhost. Everything works great when I'm not using docker, but ...
0
votes
0
answers
55
views
Login with twitter using identity server is not working when using openidconnect
I'm attempting to integrate Twitter login functionality into my application using Identity Server. I've utilized AddOpenIdConnect for this purpose. Below is the code snippet I've employed:
...
0
votes
0
answers
43
views
Call Databricks Api from IdentityServer4 client
I am using IdentityServer4 with Microsoft Entra Id as my external login provider. I want to access Databricks api via IdentityServer4.
I have registered IdentityServer4 in Entra and configured ...
0
votes
0
answers
14
views
IdentityServer4 "Unknown location" when redirecting to client
I am using IdentityServer application as an external provider. After redirecting from IdentityServer back to my application I am getting "500 unable to unprotect message state. Unknown location&...
0
votes
0
answers
121
views
IdentityServer 4 - idsrv and idsrv.session cookies blocked on signin-oidc call
I'm working with IDS4 behind a reverse proxy. I find these IdentityServer cookies blocked on the signin-oidc call:
Blocked Cookies
(https://i.sstatic.net/zimtm.png)
The error msg on the cookies is:
&...
0
votes
0
answers
327
views
Getting "A fatal error occurred while creating a TLS client credential. The internal error state is 10011" running IdentityServer4 in Production mode
My ASP.NET Core 6 Web API uses IdentityServer4 as idp. It works just fine when the idp runs in development mode.
When I set the idp to run in Production mode by setting the ASPNETCORE_ENVIRONMENT in ...
0
votes
0
answers
56
views
How to override application scopes with rolebased scopes from access token in identity server 4?
1.Trying to implement role-based access control (RBAC) to replace existing scopes with role-based scopes in access tokens.
2.The application currently uses scopes "openid", "...
1
vote
0
answers
131
views
NullInjectorError: No provider for PublicClientApplication! MSAL
I have an Angular application in which I am trying to manage the login using MSAL.
Apparently I'm having a problem and from what I've found online, I'm not providing a provider for ...
0
votes
0
answers
80
views
How can I get the access token from IdentityServer4 for an external login user which does not even have a password?
I am able to call or redirect to IdentityServer endpoint "GoogleLogin" from my SPA using html anchor tag href. And then, I got redirected to Google sign-in screen, on a successful sign-in, ...
0
votes
0
answers
227
views
Identity server redirection not working after token expired and getting 302 found
We have SPA with the IDS 4 and its does not redirect to the login screen post token expires.
Getting below response as blank screen as it does not redirecting to identity server urls.
enter image ...
0
votes
1
answer
154
views
Identity Server: Refresh Token for the currently Authenticated User
Authentication configuration:
services.AddAuthentication(options =>
{
options.DefaultScheme = CookieAuthenticationDefaults.AuthenticationScheme;
options.DefaultChallengeScheme = ...
1
vote
0
answers
62
views
Angular and ASP.NET OWIN with Azure AD
I recently came across a challenging problem. I was asked to add Azure Active Directory (AAD) authentication to an Authentication server using ASP.NET OWIN .NET Framework 4.7.2.
Basically I have an ...
-1
votes
1
answer
864
views
How to generate Access Token or Authorization Code without user password in ABP Framework?
I want to implement a passwordless authentication in ABP project. In my scenario, I want to authenticate mobile users with their phone number by sending a verification code via SMS, then give these ...
0
votes
0
answers
13
views
How to NodeApi Authenticate and authorization using identity server 4
In Nodeapi how to authenticate and authorization like web api using any package avaiable in node application.
can you please help me.
1
vote
0
answers
61
views
How to switch Authenticate Scheme at runtime based on request header
I'm trying to change an existing web API to allow switching between IdentityServer and JWT based authentication. Both forms of authentication work on their own when set to be the ...