FusionAuth with Asp.net framework 4.5.2
-
Hello everyone,
I am working on a SAAS web application, for authentication and authorization I am looking to use Fusion Auth. The target framework of my application is .net 4.5.2. I can see Fusion Auth no longer maintain the C#(.Net) Client, but I have access to this client library via the GitHub.
I have some questions before I start the development, can anyone please highlight,- what are the disadvantages of using C#(.Net) Client library and not .Net Core?
- Is there any feature that can't be accessed or implemented via asp.net older framework?
- Will the old framework client library can get discontinued in some way in the future?
- Anyone who used C#(.Net) client library and faced difficulty in implementing any feature of FusionAuth?
Thank you
-
Hiya,
Have you tried the netcore client and confirmed it won't work for you? The main disadvantage of using the older unsupported library is that it is unsupported. This means that it won't receive new features or track new version of FusionAuth functionality.
I'd also wonder if you could get by without the client library at all. If you are just using OAuth, you could use a standard OIDC library. These posts are using RazorPages, but may be helpful. With them I used the IdentityModel project, which just hit 1.0.0.
I'm afraid I'm not too familiar with all the options for using OAuth with ASP.NET so can't make any library recommendations.
-
Hello,
Do you have any idea how can I utilize the old github library to make function calls of fusion auth client library for older frameworks of Asp.net(4.5.2)?
When I try to use the login provided by fusion auth which has redirect link which routes to the controller in our application, in the end, inside the redirect function we use it to get token.
To get the access token we have to call the "exchange code for access token" function(client library function call), how can I use that function from old library(no such function is available in fusion Auth API.)?
At this point, after the login process, do I have to apply for the token again with username and password? if I want to access the token from API?.net core doesn't work with older frameworks of asp.net(4.5.2.) installation error.
-
Hiya,
I see a method that looks useful:
ExchangeOAuthCodeForAccessToken
in this file:Looks like it was released in version 1.12.0. What version are you using?
At this point, after the login process, do I have to apply for the token again with username and password? if I want to access the token from API?
When you get the access token, you can then present it to whatever needs to verify the user is logged in. If you enable refresh tokens, you can store that off and present it for a new access token without the user logging in again. Check out this post about how the authorization code grant works for more details.
.net core doesn't work with older frameworks of asp.net(4.5.2.) installation error.
I filed an issue about that. Not sure we can fix it, since ASP.NET 4.5.2 is over 5 years old, but at least we can take a look.