Questions tagged [identitymodel]
77 questions
0
votes
0 answers
IdentityModel.OidcClient RefreshTokenDelegatingHander
I'm trying to use RefreshTokenDelegatingHander but couldn't find any proper way or sample yet with Xamarin.forms.
Has any one got any success?
Here is what i tried:
var options = new OidcClientOptions
{
Browser =…

SoftSan
- 2,482
- 3
- 23
- 54
0
votes
1 answer
Which OpenId Grant Type should I use in MVC application? Code? Client Credentials?
With ASP.NET Core 5, Angular 10 and Identity Server 4 I created 4 applications:
Auth using Identity Server 4;
Asp.Net Core 5 API
Asp.Net Core 5 MVC
Angular 10 SPA
On the Angular application (4) I am using OIDC Client JS and Code Grant Type.
The…

Miguel Moura
- 36,732
- 85
- 259
- 481
0
votes
1 answer
how to define AuthorizationCodeTokenRequest with ClientAssertion
i'm trying to figure out how the define my AuthorizationCodeTokenRequest for Code Flow
for the JWT scenario , using the IdentityModole freamwork
let say i have a defined client on my OP Server
new Client
{
ClientId = "myClientId"
ClientSecrets =…

Amit Barkai
- 51
- 1
- 7
0
votes
1 answer
IdentityServer4 - Subdomain on DiscoveryDocument
That's my scenario.
Identity: https://mydomain.subdomain.com.br/homol/identity
When access the endpoint https://mydomain.subdomain.com.br/homol/identity/.well-known/openid-configuration this is my response
{
…

Alexandre Bueno
- 19
- 1
- 5
0
votes
0 answers
IdentityModel - RequestClientCredentialsTokenAsync
This method RequestClientCredentialsTokenAsync to generate token (oauth2) works fine for me when I call it from unit test, but from the API MVC .Net Framework 4.6.1 I have this exception : ( I am sorry, the exception is in french language)
…

Firas Farhat
- 1
- 2
0
votes
1 answer
.NET generating invalid JWT tokens
I am generating a JWT token in my WindowsService using IdentityModel.Tokens.Jwt, like so:
private JwtSecurityToken GetJwtToken()
{
var symmetricSecurityKey = new SymmetricSecurityKey(Convert.FromBase64String(_secretKey));
var…

dzenesiz
- 1,388
- 4
- 27
- 58
0
votes
1 answer
oauth2 : "sub claim is missing from userinfo endpoint" Microsost open ID Connect - OIDC CLient
I am using microsoft OidcClient for oauth2.0 for google accounts and I am getting
"sub claim is missing from userinfo endpoint" error."
Can anyone suggest if I am missing anything or doing anything wrong.
public async Task Authorize ()
{
…

TheDeveloper
- 1,127
- 1
- 18
- 55
0
votes
1 answer
How to authenticate user from an asp.net core 3.0 / angular app and authorize the app for api access with IdentityServer4
I have already implemented this task for a WinForms application using IdentityModel.OidcClient and IdentitityServer4. Next task is to do it for angular. The docu of ID4 says that that native apps and SPAs can be handled with the same flow, the…

Mustafa
- 109
- 2
- 8
0
votes
1 answer
Safe handle error on generating JWT token with RSA
I am trying to generate JWT toekn with RSA algorithm for signing.
But i am getting this exception System.ObjectDisposedException: 'Safe handle has been closed'
on converting token to json format on this method.
jwtToken =…

TutuGeorge
- 1,972
- 2
- 22
- 42
0
votes
1 answer
IdentityServer4 System.ArgumentNullException: Value cannot be null. Parameter name: type when trying to refresh token
I have identityserver4 v2.4 setup to user ASP.Net Identity and Entity Framework as an operational store. When I call tokenClient.RequestRefreshTokenAsync(oldRefreshToken); as follows, I always get an invalid_grant error in the…

Harindaka
- 4,658
- 8
- 43
- 62
0
votes
0 answers
IdentityModel: Getting UserInfo from access token via IdentityServer
I have identity server(IdentityServer4) setup and running as localhost.
My client project is AspNet WebForms at this moment. There is another application(javascript) which uses same identity server.
This javascript application calls my webform…

Cybercop
- 8,475
- 21
- 75
- 135
0
votes
0 answers
How to manually validate identityserver accesstoken on the client side
I posted a question some time ago: Is it possible to use IdentityModel to integrate a webform app in .net 4.5 with IdentityServer4 without using OWIN?
. I almost did that integration manually. Now, I have some more questions: Do I need to validate…

Guille
- 367
- 1
- 5
- 17
0
votes
1 answer
IdentityServer4 and OidcClient on IOS prompt
I have IDS4 and a Xamarin.Forms app all working fine except one little issue. Every single time the iOS app accesses the IDP server it first gives me this prompt:
"AppName" Wants to Use "" to Sign In
This allows the app and website to share…

Post Impatica
- 14,999
- 9
- 67
- 78
0
votes
1 answer
IdentityServer4 with AspNetCore.Identity: Custom SignInManager not being called when using TokenClient
I have IdentityServer4 working with AspNetCore.Identity. Logins work fine from the AspNetIdentity Login Page as well as when using the IdentityModel TokenClient.RequestResourceOwnerPasswordAsync.
Then I wanted to extend this to be able to…

brenwebber
- 365
- 3
- 6
0
votes
1 answer
IdentityServer4 All Client Scopes in Token
I have a multitenant app secure with an IdentityServer4 implementation. I recently updated it to the latest ID4 and the behavior seems to have changed. Previously, I could make a request with the TokenClient inside of the IdentityModel…

Darthg8r
- 12,377
- 15
- 63
- 100