Auth0 Home Blog Docs

API Setup documentation for C#, UseJwtBearerAuthentication is obselete

documentation
c
api-authorization

#1

I am following the documentation here:
https://manage.auth0.com/#/apis/59aa44e15c0d160491d4bf81/quickstart
Under Configuring your API to accept RS256 signed tokens
The C# code mentioned is indicating as obselete, is it possible to update the documentation with the latest code, ideally for .net core.
Thanks


#2

Also, the example at https://auth0.com/docs/api/management/v2/tokens for calling the management API in C# uses RestSharp, which is not compatible with .net core.


#3

Thanks for reporting. I have made a not to look into both of these.

For the RestSharp snippet, we are using a 3rd party library which generates the code from a HAR snippet. Not sure if they support .NET Core. If not, I’ll raise an issue on that library


#4

Thanks for reporting. I have made a note to look into both of these.

For the RestSharp snippet, we are using a 3rd party library which generates the code from a HAR snippet. Not sure if they support .NET Core. If not, I’ll raise an issue on that library


#5

@bradflyon Unfortunately RestSharp itself does not yet support .NET Core, so not much we can do about that. They are busy working on it though.

You can of course also use our Auth0.NET library which is a wrapper around our Management and Authentication APIs. It is a .NET Standard library, and works with .NET Core: https://github.com/auth0/auth0.net


#6

Thanks. I just used httpClient to make the calls, but need to check out Auth0.NET


#7

Thanks. I just used httpClient to make the calls, but need to check out Auth0.NET


#8