I have managed to setup a Microservices for authenticating users and providing JWT tokens. I have now a separate SS implementation for validating JWT tokens that were issued by the Microservice.
I do wonder why:
My service has only following code in the AppHost:
Plugins.Add(new AuthFeature(() => new AuthUserSession(),
new IAuthProvider[]
{
new JwtAuthProviderReader
{
HashAlgorithm = "RS256",
PublicKeyXml = publicKeyXml
},
}));
But when I get the metadata page of this Service, I see following available services:
- AssignRoles
- Authenticate
- UnAssignRoles
I am a bit confused why these services are there, and they aren’t secured.
In the Microservice I added the RegistrationFeature plugin so I see:
- AssignRoles
- Authenticate
- UnAssignRoles
- Register
- ConvertSessionToToken [secured]
Also here, why aren’t the AssignRoles, UnAssignedRoles, and (maybe) Register not secured?
Thanks for the great support in advance!