Questions tagged [identitymodel]
77 questions
1
vote
1 answer
AddOpenIdConnect with manual Configuration - SecurityTokenSignatureKeyNotFoundException
Existing Systems
We are using Identity Server 4 to provide single sign on feature with Google, Azure, or other External providers without any problem. All we have to do is add client details and authority url or disco url (eg.…

TTCG
- 8,805
- 31
- 93
- 141
1
vote
1 answer
When using HttpClient with .AddClientAccessTokenHandler() extension, role claim is not included
I am using IdentityModel.AspNetCore and .AddClientAccessTokenHandler() extension to automatically supply HttpClient with access token (at least that is what I understand I can use it for) to an API. Some API endpoints are authorized based on a role.…

mikeyy
- 835
- 1
- 10
- 18
1
vote
1 answer
Using IdentityModel in VB.NET for OpenID Connect Authentication
I am creating an application in VB.NET 4.7.2 with Visual Studio 2019.
The user must authenticate himself with OpenID Connect.
I already downloaded the IdentityModel Package with the NuGet Package Manager and tried to code the authentication…

tedirgin
- 23
- 1
- 9
1
vote
1 answer
getting 401 unauthorize while using IdentityModel.AspNetCore -1.0.0-rc.4.1
I am trying to access a protected API using client credential flow in my asp.net core 3.1 application.
For token management I am using IdentityModel.AspNetCore -1.0.0-rc.4.1.
public void ConfigureServices(IServiceCollection services)
{
…

user584018
- 10,186
- 15
- 74
- 160
1
vote
1 answer
Authorization code flow with Identitity4 and OidcClient
For a Winforms Desktop application I will use the authorization code flow with PKCE. As Identity provider I use IdentityServer and as client library OicdClient.
Next step I have to decide which Browser to use for the user…

Mustafa
- 109
- 2
- 8
1
vote
1 answer
WinFormsSample with 'native.hybrid' Client does no longer work?
If I change the client in this sample to 'native.hybrid'
https://github.com/IdentityModel/IdentityModel.OidcClient.Samples/tree/master/WinFormsWebView
and set
Flow = OidcClientOptions.AuthenticationFlow.Hybrid
then the login to IS4 works (after a 5s…

Mustafa
- 109
- 2
- 8
1
vote
1 answer
Attach Event Listener to Microsoft.IdentityModel.Logging
This is an asp.net application using framework 4.7.
I'm attempting to attach to the Microsoft.IdentityModel.Logging.IdentityModelEventSource.Logger in an asp.net application (I'm using OpenIdConnect in an OWIN startup class, I am having problems and…

Tom Regan
- 3,580
- 4
- 42
- 71
1
vote
1 answer
Is it possible to reference IdentityModel library in a project .Net framework 4.5?
When I try to install the nuget package for IdentityModel for my .NET Framework 4.5 console application, I get the error:
Could not install package 'IdentityModel 3.10.10'. You are trying to install
this package into a project that targets…

jipthechip
- 157
- 1
- 13
0
votes
0 answers
IdentityModel GetDiscoveryDocumentAsync send error in aspx application
I'm trying to access an API via Visual Basic from a gridview RowUpdating event on an aspx site.
I defined the corresponding sub as Async and get no errors or warnings, however once the called await function reaches the call to…

Guddo
- 1
- 3
0
votes
1 answer
Testcontainers keycloak error when run in gitlab pipeline
I am using Testcontainers to run some tests against keycloak. This works fine on my development machine but fails in gitlab pipeline.
The error I get is: Error connecting to http://docker:32769/realms/clienttest/.well-known/openid-configuration.…

Eelke
- 20,897
- 4
- 50
- 76
0
votes
1 answer
GetConfigurationAsync for OpenIdConnectConfiguration returns Object reference not set exception
I am running version 6.28.1 of Microsoft.IdentityModel.Protocols.OpenIdConnect in a 4.8 .NET Framework project.
Trying to get the configuration to validate a token and get an exception that I can't dig into:
var discoveryDocument = await…

Paola Badillo
- 1
- 1
0
votes
1 answer
Using Moq to test HttpClient RequestClientCredentialsTokenAsync
I am trying to mock an Http Client that uses the IdentityModel extension to request a client credentials token.
var tokenResponse = await _httpClient.RequestClientCredentialsTokenAsync(requestContent);
I started doing the setup with:
var httpClient…

BrunoMartinsPro
- 1,646
- 1
- 24
- 48
0
votes
0 answers
API OAuth2 Token Management with IdentityModel.AspNetCore for AuthorizationCodeTokenRequest
I'm integrating a .Net Core Api app with a third party Api. The third party Api requires the use of OAuth2. The OAuth2 requires the authorization code approach to exchange for OAuthToken for Api to Api http requests for no user involvement…

JReam
- 898
- 2
- 13
- 28
0
votes
0 answers
Modify thumbprint value in in web.config programmatically in C#
I have a app where I need to change the thumbprint without open the web.config file.
…

Zoblod-1
- 1
0
votes
1 answer
updating Microsoft IdentityModel packages to 6.23x suddenly adding 10 more package dependencies
Anyone experience an unexpected issue when upgrading your IdentityModel package dependencies? Is this a "bug" or is there another way to get around this?
I have several .NET 4.8.1 framework console apps that have a dependency on the IdentityModel…

Margo Noreen
- 396
- 1
- 3
- 12