Questions tagged [identitymodel]

77 questions
0
votes
1 answer

IdentityModel breaks with "Could not load file or assembly 'System.Numerics.Vectors, Version=4.1.4.0"

We have a .NET Framework 4.7.1 project I installed IdentityModel 6.0.0 with the NuGet Package Manager. It installed the following dependencies for me: Microsoft.Bcl.AsyncInterfaces 6.0.0 System.Buffers 4.5.1 System.Memory…
hannodb
  • 223
  • 1
  • 11
0
votes
1 answer

Is there a way to use IdentityModel for automated token manegement with HTTP Clients inside Azure Activity Functions?

Let's say I have an HTTPClient configured in a custom FunctionsStartup class to be used inside an Azure Activity function, and I wanted that client to piggyback on IndentityModel's authentication token management, is there a reliable way to do this?…
0
votes
1 answer

IdentityModel.AspNetCore problem with proxy credentials for backchannel HttpClient

I'm using IdentityModel.AspNetCore to manage client access tokens in a background service. Access to the internet is only possible through a corporate proxy server which uses windows authentication. The proxy server is configured in Windows options…
0
votes
2 answers

IdentityModel RequestRefreshTokenAsync method always return invalid_client

I have the following code: public async Task RefreshTokenAsync(string refreshToken) { HttpClient client = new(); var discoveryResponse = await client.GetDiscoveryDocumentAsync("https://localhost:44334"); var response =…
0
votes
1 answer

Logging out from IdentityServer does not close the webview popup

I have used IdentityModel.OidcClient with a UWP app and connected to Azure AD. Login webview opens and automatically closes but the logout popup does not automatically close. My implementation is based on this. When logout happens the final function…
0
votes
1 answer

Verifying session still valid with IdentityModel/IdentityServer4

I can't get IdentityModel to validate if the token still has a valid session. Here's my client code. _http is an instance of HttpClient. Don't judge me on using username/password in this instance. It's with a trusted application and I'm starting off…
eltiare
  • 1,817
  • 1
  • 20
  • 28
0
votes
1 answer

Identity Model invalid_client

I am just starting to learn about identity model and have been looking at the examples here - https://identitymodel.readthedocs.io/en/latest/client/token.html I'm looking at the simplest example - Requesting a token using the client_credentials…
Mike
  • 45
  • 7
0
votes
1 answer

Using ResourceOwnerPassword flow for .NET Core 3.1/IdentityModel 5.1

I am playing with the IdentityServer4. Part of that I am trying to build a client using IdentityModel 5.1.0 and trying to use following piece of code available here // request token var tokenClient = new TokenClient(disco.TokenEndpoint, "ro.client",…
whoami
  • 1,689
  • 3
  • 22
  • 45
0
votes
1 answer

How can I use IdentityModel.OidcClient in a c# webapi to verify and validate token generated from active directory service supporting openid connect?

I have a webapi in c# and a frontend angular application. The angular application is making calls to active directory services such as azure ad, to get the access token. While on subsequent webapi calls the web api application needs to validate the…
debanka
  • 187
  • 1
  • 4
  • 13
0
votes
1 answer

SSO not working for IdentityModel.OidcClient

I am adding OIDC login to a WinForms application. I set up the application using the IdentityModel.OidcClient library and pulled the boilerplace code from their WinForm Sample. The OIDC successfully shows the login form, does MFA, and I get back the…
0
votes
1 answer

How do I read a jwt token in .NET?

I want to inspect a jwt token just to peak on the content. I don't have the private key to validate it, but I still want to explore the content. When I try using System.IdentityModel.Tokens.Jwt I don't get the claims as expected. I can see the token…
Tomas Jansson
  • 22,767
  • 13
  • 83
  • 137
0
votes
0 answers

Unable to get AddAccessTokenManagement() to use caching service from AddDistributedSqlServerCache()

I'm trying to implement a backend-for-frontend .NET Core 3.1 project where the tokens retrieved from Identity Server are stored in a SQL cache. The BFF is based on the implementation from SpaHost - GitHub. In the project I'm using…
cminus
  • 1,163
  • 12
  • 25
0
votes
1 answer

How to use the IdentityModel extension methods (TokenRefresh) added for System.Net.Http in my UWP app which uses Windows.Web.Http

I want to use the IdentityModel extension methods (TokenRefresh) added for System.Net.Http in my UWP app which uses Windows.Web.Http. However, I'm currently using version 4.3.1. On this version Windows.Web.Http.HttpClient extensions are NOT…
SurenSaluka
  • 1,534
  • 3
  • 18
  • 36
0
votes
1 answer

IdentityServer shows blank PostLogoutRedirectUri for Android Native App

I have created an OAuth Server using IdentityServer4 and .Net Core Signin Manager. The Login works great and returns to my app. The Logout doesn't seem to know who is logging out. The Logout Razor Page code is as follows: public async…
Jim Wilcox
  • 1,480
  • 16
  • 33
0
votes
0 answers

IdentityServer4 Register from a Client Application

I have created an OAUth server using IdentityServer4 together with .Net Core Identity. It works fine for the most part. The Startup code is as follows: public void ConfigureServices(IServiceCollection services) { ... …