Hello,
It seems that authorization can be bypassed altogether when users open their browser console and type the following (dependent upon the authorization defined in routes:
localStorage.setItem('antd-pro-authority', "[\"admin\"]");
You can test this for yourself by following these steps:
localStorage.setItem('antd-pro-authority', "[\"admin\"]"); in your browser consoleIs this a known bug? Is this authorization strategy just here temporarily for mock/demo purposes and meant to be refactored by developer?
Yes, this is for demo purpose.
You can check how auth2 and JWT token plays together.
You can close the issue if this answers your question
Ok thanks, I was able to implement JWT strategy to secure the application.
Most helpful comment
Yes, this is for demo purpose.
You can check how auth2 and JWT token plays together.
You can close the issue if this answers your question