query_auth_params
Sometimes you are working on an update to a views page, an article or a new feature on a page that you only want to share with a fellow developer, the customer or a friend. The catch here is that you don't want to give them access as registered users. You don’t want them to have access as authenticated users, you want them to have access only as anonymous users.
You simply want to share a secure link so they can review and comment on the update.
The Query Auth Params module does exactly that. It provides access to anonymous users by using specific query parameter values that you can use to "protect" the page(s) you want to hide from public view.
Let’s say you want to protect example.com/new-awesome-feature or example.com/new-awesome-page. With Query Auth Params you can add example.com/some-page?my_param_key=my_param_value and this page won’t be displayed unless the user has the full url with the correct query params.
You can even use it as a "mini" scheduling module or a user page firewall (/user/login, /user/password) as long as you know what you are doing.
Warning: This is not a security access module and should not be used as such. It provides basic access control for hiding simple pages from your website. Do not use this for advanced access scenarios etc.
Instructions:
- Install with composer as usual.
- Go to /admin/config/development/query_auth_params
- Add the page(s) you want to protect.
- Choose between 3 options: forever, once, until a specific datetime.