Skip to main content

All Questions

Tagged with
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 ...
Tekonline's user avatar
  • 113
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 ...
Niyozbek Mirzayev's user avatar
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 ...
Chris Gilbert's user avatar
0 votes
1 answer
259 views

How can I use IdentityServer AND a completely separate .NET 6+ JWT authentication system side by side with a view to phasing out IdentityServer?

My Mobile API is currently using IdentityServer and for various reasons I need to replace it with something far simpler such as JWTs. I have a service with some very basic JWT issuing and validating ...
Chris Gilbert's user avatar
0 votes
1 answer
649 views

Can I use .NET 8 Bearer Token Authentication Handler to create Reference tokens rather than a self contained JWT style token?

I'm currently using IdentityServer4 v3.1.1 with reference tokens but I want to move away from IdentityServer altogether if possible for a number of reasons including their new licensing policy and the ...
Chris Gilbert's user avatar
0 votes
0 answers
93 views

.NET Core IdentityServer4 Resource Owner Password can't call API

I'm developing a WebAPP starting from VS .NET Core WebAPI + Angular Template. I've configured IdentityServer to authentication from Angular Front-End application and everything works fine BUT I need ...
Androidian's user avatar
  • 1,045
1 vote
1 answer
138 views

How to combine Identity.Application and JWT authentication using IdentityServer4?

How to configure IdentityServer4 and authentication to use both Identity.Application (for IdentityServer4 endpoints) and JWT (for API requests)? Trying to implement ASP.NET 6 application, that ...
Vlad Barkovsky's user avatar
0 votes
0 answers
117 views

ASP.NET Core Authentication middleware bypassing expired access tokens associated with cookie

I have an ASPNETcore MVC client authenticating with IdentityServer4 in order to access an API. The API expects the bearer token in a request header, when the bearer token expires, the request is short-...
Jamal Salman's user avatar
1 vote
2 answers
603 views

JWT Bearer token content length limited by some public firewall

We have an issue with JWT token sizes. We currently have an Angular front-end and an authentication service via IdentityServer4. As soon as authentication is performed, the next call is to retrieve ...
R1 Tech's user avatar
  • 43
0 votes
1 answer
370 views

Add custom claims to JWT in authorization code flow in OpenId connect and Duende Server (Identity Server)

On login, I am authenticated by Openid connect authorization flow. I get the access token and ID token. var result = await (_httpContextAccessor.HttpContext ?? throw new Exception("Call is not ...
Gowthami's user avatar
1 vote
1 answer
195 views

ASP.NET Core 7 IdentityServer4 HttpContext.User is null when accessed through alternative domain names

I have an Angular app with an ASP.NET Core 7 Web API backend hosted on an azure app service, using IdentityServer4 for the JWT based authentication. The app can be accessed via either a custom domain ...
Nick Goloborodko's user avatar
1 vote
1 answer
675 views

Claims for a role assigned to user not present in the produced JWT

I have a role admin assigned to a user. On that role, there's a claim elevated. When I sign in using authorization code flow and get the token, the sub field is correctly set. However, there's no ...
Konrad Viltersten's user avatar
0 votes
1 answer
335 views

IdentityServer4: IDX20803: Unable to obtain configuration from 'https://<ids_server_url>/.well-known/openid-configuration'

Using: Frontend: Angular 14, API: .NET Core 5, c#, MVC IDS: .NET Core 5, c#, Razor as per ID standard For my web app I have an instance of IdentityServer 4 running. This worked perfectly fine and ...
mtholen's user avatar
  • 1,661
2 votes
1 answer
435 views

Identity Server 4 - Role policy not workink

I have a problem catching a user role from a JWT token in my API. I added a role to my token and added a policy with the required role, but it's not working as I expected. Every time when I have ...
Adamski's user avatar
  • 25
0 votes
1 answer
141 views

OAuth2.0 works from Postman UI (authorization helper), doesn’t work via manual request

The issue I’m facing is I’m trying to manually get the token from the API for the sake of automation. What I did is I configured IdentitySever to grant token on user credentials it worked fine when ...
Kanailov George's user avatar

15 30 50 per page
1
2 3 4 5
14