Admin rights on an application where there is no log in or sign up

0
I have an application where anyone can access it as an anonymous user. However, certain pages are restricted to admin access only. What steps should be taken to implement admin rights in an application without a login system? To better understand the application's structure, consider a news site scenario. Users can enter, read news, and exit without logging in. Only the admin can create news articles, yet there's no login system in place.
asked
2 answers
0

I don't see why you wouldn't have a small login button somewhere for admins to access a login page. Anyway, some options:

- create a login page with a dedicated url so admins can manually navigate and login via e.g. {yoururl}/p/login while anymous users don't see this option in the menu or on their pages

- if you really don't want admins to login, create an endpoint and fetch/update the necessary data from another app where admins do login

 

A login system doesn't mean everyone needs to pass a login page. You can have a homepage and navigation for anonymous users and put a login page behind a button / link / menu item for other user roles.

answered
0

In Mendix I'd solve this with the login.html page that is available in your application's directory. Implement the administration module for managing the admin users and then the admin user would be able to login by navigating to your app's URL followed by '/login.html'

answered