We are now very nearly finished the agreement. The last along with simplest factor is always to annotate the endpoints with a required role. A sample you will see above, for the admin panel.
That’s it! It actually was the last portion when considering consent!
Step Two: Test
Since you may observe, following your updates we aren't able to setup your panels as a result of the a failure studies. Inside area i shall demonstrate how exactly to test it physically. Subsequently we shall fix the robotic screens.
For starters, ask an authentication token when it comes to routine consumer.
This ought to give back a token.
Today, let’s make sure to use administrator board utilising the above.
You must see HTTP/1.1 403 blunder.
That works as expected. Routine cellphone owner cannot connection management endpoint. Let’s duplicate the above strategies when it comes to administrator cellphone owner.