DEV Community

Discussion on: Building REST APIs In .NET 8 The Easy Way!

Collapse
 
djnitehawk profile image
Dĵ ΝιΓΞΗΛψΚ • Edited

planning to write those articles in the future as time permits. however, the documentation is quite easy to follow in the meantime if you're interested. thanks!

Collapse
 
msoffsite profile image
Mark Stone

Yeah, no, it isn't. I've successfully generated a token and am trying to access a simple endpoint without request that is a get and returns only a string. I followed the example given at fast-endpoints.com/docs/security#s.... JWT authorizes fine but I am getting a 401 and 403. According to fast-endpoints.com/docs/swagger-su..., because AllowAnonymous isn't within the configure method and the 403 because something is forbidden but who knows what.

Thread Thread
 
djnitehawk profile image
Dĵ ΝιΓΞΗΛψΚ

probably a minor misconfiguration issue. pls create a support ticket with repro code either on discord or github. we'll get you sorted 😉

Thread Thread
 
msoffsite profile image
Mark Stone

I was able to get it fixed. Turned out it was the policy portion that messed me up a bit.

Thread Thread
 
rahiyansafz profile image
Rahiyan Safin

can you share how you solved it?

Collapse
 
pookiepats profile image
pookiepats

what an answer

Collapse
 
mrp100461 profile image
Mark Pearson (Contractor) • Edited

public class Endpoint : Endpoint is incorrect because it causes
Inconsistent accessibility: base class 'Endpoint' is less accessible than class 'Endpoint'
You also have a ; missing in program.cs
This not easy to follow you have global using when this should be in file
Don't handle the nullable in the proj file