I have created vNext empty project.
Added some API and views.
I also disabled registration, by removing [AllowsAnonymous]
from Register methods, because I don't want public registration.
But what I want, is to allow private registration.
I will definitely need a "superadmin" user.
Then I see different ways:
Invite system:
site.com/register?invite-token
, which expires after registration or X hours. Superadmin will be able to create this tokens.Everyone can register, but only approved (by superadmin) users can really login.
Superadmin creates users manually.
And finally the questions:
How to create a "superadmin" user securely? (I'm publishing to azure)
I found an example, how to do it: github, but storing opentext pass in code looks bad.
- Which of the ways is the best or most? Are there well-known packages for such tasks?
- Any of this ways impies, there is an admin-only-interface. How to secure it correctly?
- How to scale for the case: "superadmin" > "admin" > "user" ?