Questions tagged [identityserver4]
OpenID Connect Provider and OAuth 2.0 Authorization Server Framework based on ASP.NET Core
identityserver4
5,435
questions
92
votes
3
answers
77k
views
IdentityServer4 register UserService and get users from database in asp.net core
I've searched all over on how to register a UserService with IdentityServer4 in asp.net core, but I cant seem to find the right way to do it.
This is the code to register InMemoryUsers found here, ...
88
votes
21
answers
212k
views
"InvalidOperationException: IDX20803: Unable to obtain configuration from: '[PII is hidden]'"
I've deployed my API and Client app on Docker, but for the life of me, the web app cannot call the API, I keep getting an exception.
I added the following line suggested in other posts, but it did not ...
83
votes
4
answers
83k
views
How to add custom claims to access token in IdentityServer4? [closed]
I am using IdentityServer4.
I want to add other custom claims to access token but I'm unable to do this. I have modified Quickstart5 and added ASP.NET Identity Core and the custom claims via ...
78
votes
1
answer
35k
views
What is the point of configuring DefaultScheme and DefaultChallengeScheme on ASP.NET Core?
I am learning how security works in ASP.NET Core 2.0 and IdentityServer4. I set up the projects with IdentityServer, API and ASP.NET Core MVC Client App.
The ConfigureService method in the Client App ...
76
votes
2
answers
22k
views
.NET Core Identity vs IdentityServer4
The question: Should I use .Net Core Identity or IdentityServer 4 with Identity
I need to build app with login/register functionality and allow users to use APIs to import/export data from my ...
70
votes
7
answers
108k
views
Authorization header requires 'Credential' parameter
We are using Identity Server4 with .NET Core and deploy the application as AWS Serverless lambda function. When are calling the token endpoint to generated access token we got the following error ...
44
votes
5
answers
31k
views
Why is ClaimTypes.NameIdentifier not mapping to 'sub'?
Using ASP.NET Core 2.2 and Identity Server 4 I have the following controller:
[HttpGet("posts"), Authorize]
public async Task<IActionResult> GetPosts() {
var authenticated = this.User....
43
votes
5
answers
106k
views
The audience is invalid error
I have 3 projects 1- Javascript SPA 2- Web API Project, 3- IdentityServer with EF Core
I started debugging API and Identity Server and successfully get the jwt token but, when I try to get value from ...
41
votes
3
answers
14k
views
How can I use IdentityServer4 from inside and outside a docker machine?
I want to be able to authenticate against an Identity Server (STS) from outside and inside a docker machine.
I am having trouble with setting the correct authority that works both inside and outside ...
40
votes
2
answers
52k
views
Identity Server 4 Authorization Code Flow example
I'm trying to implement Identity Server 4 with AspNet Core using Authorization Code Flow.
The thing is, the IdentityServer4 repository on github have several samples, but none with Authorization Code ...
38
votes
3
answers
27k
views
How to correctly use the introspection endpoint with identity server 4?
I'm using Identity Server 4 and I'm trying to use the introspection endpoint, but just by the docs I'm not getting it.
The docs just gives this example
POST /connect/introspect
Authorization: Basic ...
38
votes
6
answers
37k
views
I am getting "code challenge required" when using IdentityServer4
I am trying to redirect to IdentityServer for authorization, and getting "code challenge required" in redirect URL.
An error message shows invalid_request with code challenge required, and also my ...
38
votes
2
answers
45k
views
Getting Scope Validating error in Identity Server 4 using JavaScript Client in asp.net core
I am getting the below error while making a request to my Identity Server application from my Javascript Client Application.
fail: IdentityServer4.Validation.ScopeValidator[0]
Invalid scope: openid
...
37
votes
3
answers
68k
views
Identity Server 4: adding claims to access token
I am using Identity Server 4 and Implicit Flow and want to add some claims to the access token, the new claims or attributes are "tenantId" and "langId".
I have added langId as one of my scopes as ...
35
votes
1
answer
33k
views
What is the Signing Credential in IdentityServer4?
We are in the process of implementing Identity Server 4 with our .NET Core web app.
I went trough the Identity Server documentation. When configuring the Identity server (using DI) there is the line:
...