It hasn’t been too long since my last update but since then I have made tremendous progress. When I wrote my last blog post I had two of my planned 7 services ready(there’s still lot to do with them but ready enough for now). Fast forward six days and I’ve made three more. Of course the last two to be made are going to be the hardest and ones that require more work than the other five combined. At least I think so but we’ll see.
Some changes I’ve made:
I rewrote the first service I did to use GORM as well to keep the project cohesive. It made the service a little neater, too.
I made changes to my token validation on authentication service (the one made with Spring Boot). Before it just returned true or false if the token in question was valid or not but now if it is valid it will actually send the role of the user to the asking service as well. Then I had to modify the existing services to use the newly returned user role to check if the user actually has the rights to access the resource in question.
PS. I am quite positive that I will ditch the Spring Boot authentication service entirely some day and use Go for that, too. Like I’ve said before I don’t understand it so good at the moment and that can’t be good, can it?