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!
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.
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
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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!
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.
probably a minor misconfiguration issue. pls create a support ticket with repro code either on discord or github. we'll get you sorted 😉
I was able to get it fixed. Turned out it was the policy portion that messed me up a bit.
can you share how you solved it?
what an answer
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