I'm planning to write a few api's to improve my programming knowledge. But as a starter I'm thinking about authentication. I've been searching for a solution, but I'm wondering if there are better options. What I want to achieve is to have a AuthenticationAPI which handles the authentication. I want to have a kind of a microservice architecture with a few small app's/api's. The authentication (and authorisation) should be handled by the AuthenticationAPI.
What I have tried:
While searching for a solution, I ended up with IdentityServer. Which can generate a token, which can be "shared" across other app's/api's. Each app/api can check with the AuthenticationAPI if the token is still valid.
But I'm wondering if there are better options for such a architecture? Could anyone provide some other options? That would be highly appreciated.