How do I remove AssignRoles and UnAssignRoles from ServiceStack API
servicestack
Solution
you could do the following which will remove only AssignRoles and UnAssignRoles
AuthFeature authFeature = new AuthFeature(() => new AuthUserSession(), new IAuthProvider[] { new BasicAuthProvider() });
authFeature.IncludeAssignRoleServices = false;
Plugins.Add(authFeature);
Problem
I'm using the Authentication feature in ServiceStack and configured the Auth plugin to use CredentialsAuthProvider. On the generated metadata page, ServiceStack shows the following operations: - Auth - AssignRoles - UnAssignRoles I'm only using the Auth operation, why I would like to remove the roles operations to avoid that the readers of this page get confused on how to use the API. Is this possible?