Questions tagged [dotnetopenauth]
DotNetOpenAuth is an open source library for OpenID 1.1 and 2.0 supporting OAuth 1.0, 1.1, 2.0 as Consumer and Service Provider.
1,114
questions
0
votes
0
answers
142
views
GeneralException Message: An error occurred sending the request
I have used Asp.net core 6 with OpenIdConnectDefaults.AuthenticationScheme Authentication include MicrosoftGraph. It is working fine when first time we login on the web application. But If user login ...
0
votes
0
answers
142
views
OpenIdDict custom value in exchange response
Previously I was using OpenIddict Version 3.1.1. Suddenly faced issue in token validation at API side. Though it was a preview version, I decided to move to latest OpenIddict 4.3.0.
Point is in ...
1
vote
1
answer
271
views
Using individual Accounts and Microsoft.Identity.Web for Authentication in ASP.NET Core 6
With AzureAD.UI being deprecated I wanted to build a web app that uses individual accounts and Microsoft.Identity.Web for authentication. I have tried multiple ways and twice thought I had it, just to ...
0
votes
1
answer
79
views
Share credentials in different OAuth grant type
I have a client application accessing my server resources protected by authorization code grant type. Now the client application need another resource access which is protected by client credentials.
...
0
votes
1
answer
597
views
How to get refresh token in Identity Server 4 with password grant type
I have a Blazor SPA and a registered client in Identity Server 4 .
I take username and password from user a create an access token request to my identity server 4.
var client = new HttpClient()...
0
votes
1
answer
585
views
Azure B2C Server Web Application
Working on a Razor Page web application and trying to let it authenticate users against Azure b2c. I have configured the following code.
builder.Services.AddAuthentication(OpenIdConnectDefaults....
1
vote
0
answers
209
views
IDX20803: Unable to obtain configuration when dockerize project
I have 2 projects IdentityServer and bankAccount.api
identityServer address : https://localhost:5001
bankaccount address : http://localhost:5005
When the project runs outside of Docker, everything ...
0
votes
2
answers
316
views
Generating Reference Token Instead of JWT
Please find below the steps I applied in order to generate Reference Token instead of JWT:
In the [Clients] table, I updated property [AccessTokenType] = 1. Please note that this is the client ...
2
votes
0
answers
3k
views
Authenticate with Oauth2 to read IMAP in C# MVC web-application
I would like to read e-mails from a signed in user using IMAP.
I have created a console application for testing purposes and making sure the app-registration settings in azure are correct.
The console ...
0
votes
1
answer
2k
views
How to add custom claims to Jwt Token in OpenIdConnect in .Net Core
Just like AzureAD we have our own custom Firm ActiveDirectory which we are connecting from UI as well as API for Authentication in .NetCore using OpenIdConnect (AddOpenIdConnect extension method).
In ...
1
vote
0
answers
293
views
why my id_token seems to be lost when logout button is clicked
I am using OpenIdConnect and needs to use an external login provider.
In the callback function of the authentication, I have these lines to get the id_token and needs to save it somewhere as it is ...
1
vote
0
answers
379
views
DotNetOpenAuth NuGet package still recommended for building a .NET OAUTH2 Authorization server?
I'm beginning the R&D (and scoping requirements) to implement an OAUTH2 Authorization Server, and our existing framework is ASP.NET (version 4.6.1 +). Is there an existing well-exercised SDK for ...
1
vote
0
answers
120
views
XMLHttpRequest error in .Net core 3.0 and angulr8,Access to XMLHttpRequest at url from from origin 'https://. has been blocked by CORS policy
I am trying to call SignIn in angular.
Login(reqobj: { RedirectUrl: string; }) {
var Url = this.GeturlFromServerName(this.baseUrl) + "Account/SignIn";this.baseUrl+reqobj.RedirectUrl;
return this....
0
votes
1
answer
415
views
IdentityServer4 return unknown claims using OpenId
I have created an IdentityServer4 server from is4aspid template (Basic IdentityServer that uses ASP.NET Identity for user management), it come with 2 sample users.
After that, I have create a razor ...
4
votes
0
answers
1k
views
DotNetOpenAuth OAuth2
So I've been getting my first steps into OAuth2 and managed to get an access token from a private API using RestSharp. Since that is only one small step in the whole process I've wondered if there is ...
1
vote
1
answer
8k
views
oauth2 authentication c# code is not working
I am trying to consume oauth2 api using auth code. In first step, i received auth by providing client id and secret, and now in 2nd step, i need access token using that auth code.
I tried below c# ...
1
vote
0
answers
330
views
How to open my GET RestRequest in URL to login
My problem is for oath2 first auth for client approval (then redirected to a callback url which handle token exchange)
I need to add acr_value to a DotNetOpenAuth client.RequestUserAuthorization ...
0
votes
2
answers
405
views
Trying to log into Azure AD using OpenID and dotnetopenauth but getting "No OpenID endpoint found."
I've searched SO for similar questions and reviewed all of them but I haven't found one that helped me with the issue that I'm having.
I'm trying to add authentication to our legacy webforms ...
0
votes
1
answer
361
views
Owin Oauth occasional too many redirects only on load balanced environment
I have a weird issue which occurs on my asp.net MVC app with Owin Oauth authentication/authorization, while it's load balanced. This application acts an Oauth endpoint , our client applications ...
0
votes
2
answers
756
views
openid connect authentication protocol in extranet network
I have a scenario where i have to use openID connect in extranet network. When an application initializes, it downloads the metadata document from .well-known/openid-configuration for which it makes a ...
0
votes
1
answer
387
views
OAuth 2.0 with DotNetOpenAuth for .NET not work with google account
I Try to use OAuth 2.0 for google authorize with DotNetOpenAuth library for .NET, the code works on Facebook, but with google when I request callback to google endpoint, after user select a google ...
0
votes
1
answer
254
views
googleConsumerKey and googleConsumerSecret for DotNotOpenAuth library
I am completely new to DotNetOpenAuth library and am currently trying to use it in a WebForms ASP.Net website project. I have successfully installed the library in my website using Nuget.
However, ...
1
vote
0
answers
155
views
dotnetopenauth with AzureAD b2c
I am using dotnetopenauth (version 4) to obtain an accesstoken for my Api. This works perfectly fine but i cannot figure out how i can read the profile information for the user (which is send back by ...
2
votes
0
answers
234
views
IdentityServer4 - MVC app hosts Aurelia SPA + WebAPI
I'm trying to do something that seems like it would be a straightforward thing. I've looked through the IS4 QuickStarts and found a bunch of things regarding OAuth online, but with the latest changes ...
1
vote
1
answer
739
views
OpenAuth / Google API donet An existing connection was forcibly closed by the remote host
I am using open auth with google api's to authenticate users using .NET. I have been receiving this error on a sever with a high level of requests. On smaller servers there is no issue. I can't find ...
0
votes
1
answer
2k
views
OAuth and OWIN Authentication - Confusion
I have been asked to create a 'Authentication/Authorization' Middle man or broker as an http,MVC web application, so that this can be used to multiple applications on our organization for ...
1
vote
0
answers
297
views
Implementing authorization grant using dotnetopenauth?
I'm fairly new to authentication implementation but have been trying to implement the above for a while with no success.
From what I understand, authorization grant involves redirecting the user to ...
1
vote
1
answer
4k
views
Azure AD gets stuck after login into microsoft login page
I am new to Azure AD.
I have an ASP.Net Azure application integrated with Azure AD authentication. I have deployed the application on azure cloud and its configured to run on http. Sometime Azure AD ...
3
votes
0
answers
1k
views
How to consume a REST API with OAuth 1.0 using DotNetOpenAuth
Desperately trying to find a way to use DotNetOpenAuth for consuming a REST API with OAuth 1.0, I do not want to give up on DotNetOpenAuth yet. (I don't seem to be the only one struggling with how to ...
0
votes
0
answers
797
views
Not able to get user given name and surname using UseOpenId Connect Authentication
I have configure the app for using open Id :
app.UseOpenIdConnectAuthentication(new OpenIdConnectOptions
{
ClientId = Configuration["Authentication:AzureAD:ClientId"],
...
1
vote
0
answers
85
views
Verifyauthentication method of Facebookclient(oAuth) doesn't give any data
I am using Facebook client to access my MVC4 application through DotNetOpenAuth.AspNet. But after successfull login i am not able to fetch any data Such as ProviderName, UserName and UserId from ...
2
votes
2
answers
242
views
Single AuthZ/AuthN Endpoint in DotNetOpenAuth2
I am working on implementing an authentication server which will provide single-sign-on for the web applications our company produces and am working with DotNetOpenAuth2 at the moment. My problem is ...
1
vote
3
answers
707
views
How to extend access token in ASP.NET SDK sample
My application is based on ASP.NET SDK sample for Microsoft graph from here: https://developer.microsoft.com/en-us/graph/docs/get-started/aspnetmvc
I successfully build an application which manages ...
3
votes
0
answers
368
views
DotNetOpenAuth VS IdentityServer3
What are the pro and cons of using DotNetOpenAuth vs IdnetityServer3/4 as the OAuth2 Authorization Server.
What is most popular choice among these two and why?
1
vote
1
answer
969
views
DotNetOpenAuth WebServerClient.ProcessUserAuthorization() always returns null
I am trying to add implementation of refresh tokens into my API. I'm trying to use WebServerClient.RefreshAuthorization(), but that requires the IAuthorizationState parameter. The only way I can ...
2
votes
0
answers
83
views
Authorization flow using signing and encryption with public/private keypair
We would like to implement an authentication consumer using a REST service from a third party provider.
To retrieve userinformation they are only providing the authorization flow. This flow returns ...
2
votes
0
answers
422
views
DotNetOpenAuth OAuth 1.0a Consumer automation
I've question regarding automation with oAuth 1.0a. I need to access a REST API at a oAuth provider on behalf of a user. The provider has oAuth version 1.0a implemented.
At forehand excuse my ...
1
vote
0
answers
454
views
DotNetOpenAuth - UserAgentClient::ExchangeUserCredentialForToken - How to pass the redirect_uri parameter
Trying to retrieve the OAuth2.0 AccessToken using DotNetOpenAuth library, coded the same as below -
https://github.com/DotNetOpenAuth/DotNetOpenAuth/wiki/Security-scenarios
private static ...
5
votes
2
answers
1k
views
Azure AD API returns System.Security.Principal.GenericIdentity.IsAuthenticated as false always
I am trying to integrate my web service to authenticate using Azure AD. The response from Azure AD varies each time. When i open my site in firefox normal browser, the IsAuthenticated as true.
...
1
vote
2
answers
2k
views
Refresh auth token for MS Graph with C#
How to refresh Authentication token for
Microsoft Graph using Microsoft Graph .NET Client Library or other using C#?
What I am currently doing is keeping token in the static class:
public class ...
1
vote
0
answers
370
views
Azure AD OpenId Connect Token Authentication
I am stuck with Azure Active Directory OpenId.
I Have a ReactJs Web Client that does Authentication to Azure AD, When signed in a token_id is return representing a JWT token. This will be passed back ...
0
votes
1
answer
200
views
include an identity claim in access token
How to include an identity claim in an access token using DotNetOpenAuth? Specifically the email claim.
It is clear how to make a scope claim (so in the response it would be something like scope=...
0
votes
1
answer
666
views
How to log in user after OpenId authentication
You will have to forgive me for not knowing the magic behind OpenId. In my flow; the user is directed from an external site and authenticated with OpenId. They are returned to my app to create an ...
0
votes
0
answers
758
views
how to load OAuth certificate in dot net core
we are implementing the new application in dot net core, in the part we need to use open id authentication with our SecureAuth server. I am unable to figure out how to load the certificate into ...
0
votes
1
answer
162
views
Unable to Create User using Google Admin SDK - Exception 401 Unauthorized
I am trying to populate users in my C# application. However, I keep getting this exception:
{"Error occurred while sending a direct message or getting the response."}
[DotNetOpenAuth.Messaging....
0
votes
2
answers
689
views
Obtaining authorization token from Azure AD with Dotnetopenauth
I am trying to obtain authorization token from Azure AD through DotNetOpenAuth library. I do not want to use ADAL because I have a huge project in .net 3.5 and ADAL does not supports .net 3.5 (only ....
5
votes
1
answer
160
views
Compiling specific version of DotNetOpenAuth with a small change, signing issues
I am trying to build the version 4.3.0 release. But I am getting the known error:
Could not load file or assembly 'DotNetOpenAuth.Core' or one of its dependencies. Strong name signature could not be ...
0
votes
1
answer
1k
views
OAuth 2.0 Code Grant flow
There is a sample implementation of the OAuth 2.0 Authorization server and sample workflow for each grant type.
The IETF has an OAuth 2.0 specification for the Code Grant Flow.
When you take a look at ...
1
vote
1
answer
2k
views
OAuth 2.0 How to invalidate granted auth tokens using password grant
For the following scenario:
User Agent (Browser, User) making Ajax requests to Resource Server
ASP.NET MVC application using DotNetOpenAuth (Client)
OAuth-Authorization Server
ASP.NET Web API (...
2
votes
1
answer
1k
views
DotNetOpenAuth rejecting Access Token requests when redirect_uri contains querystring parameters
I'm developing an OAuth v2 Authorization Server using the OWIN middleware and I'm trying to implement the OAuth2 Authorization Code Grant Flow but I'm running into an issue where my client is ...