All Questions
Tagged with identityserver4 jwt
207
questions
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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-...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...