Jump to content
Sign in to follow this  
Grundly

Separation model Account re-login behaviour in WebDirect...

Recommended Posts

Hello folks

I am experiencing a peculiar behaviour, which is creating a user case problem, in a solution that is utilizing the Data Separation Model and WebDirect. I need to know if this behavior is normal, a bug, or if my implementation is incorrect.

I've got an interface file and a data file. Each file has two Privilege Sets defined (in addition to [Full Access]); call them Floor and Manager. Floor has very restricted access, and Manager has more liberal access (but no where near Full Access).

Scenario 1) I've made a script in the interface file which performs a re-login. A user logs in as Floor privileges via WEBDIRECT. User then performs the script and enters credentials for Manager. The interface file successfully performs the re-login and gains the privileges associated with Manager. However, the data file does NOT change, it does not re-login, and it still exhibits the behaviour of the Floor privileges. I know this is an incorrect implementation. Which brings me to:

Scenario 2) I've made a script in the interface file which collects the account name and password from the user (show custom dialogue), stores them in temporary global fields and as local variables, clears the temporary global fields (keeps the variables), then performs the re-login using those variables (which works). The interface file gains the new privileges as expected. Then, that same interface script calls a re-login script in the data file, passes those login credentials to it, and then performs a re-login there in the data file as well. This works perfectly in FileMaker Pro Advanced, but it does not work in WebDirect. WebDirect still exhibits the same behaviors as described in Scenario 1: interface file does gain the new privileges, but the data file remains unchanged, retaining the original login's privilege set. 

Thus, how can I make WebDirect act like FileMaker Pro in regards to getting both parts of data separation model to perform a re-login? 

Thank you

 

Share this post


Link to post
Share on other sites

I am interested to see the outcome of this.  Scenario 2 is where my mind went as I read Scenario 1 as I have Scenario 2 working in some multiple file separation models (Interface, Data, and Media files)   I do recall having login issues when testing for web direct and have not gone further with it.  Although I do know the simplest solution is to have the Interface file auto login to a default account then Put your Floor and Manager scripts only in the Data file.  The data is what you want to protect and do not need data protection in the interface file.  In fact it makes new updates of the interface file easy as you don't have to code in ways to reset passwords in all files when you distribute an updated interface file.  I have planned to work this out, and it is more complicated when there is one interface and data and media files.  Perhaps this helps you.  

Cheers,

Ben

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Similar Content

    • By steveald
      I would like to use the OnLayoutSizeChange script trigger to control how my WebDirect app window appears on various devices. But I can't find any script steps that are compatible with WebDirect that I can use to make this happen. I had hoped it was as simple as something like If Get(Device) = 4 (iPhone) then Set Zoom Level [50%]. Am I limited to having the script trigger go to different layouts created at different sizes? I would rather not have to duplicate all of the details of the app's layouts for multiple device scenarios.
    • By stan111
      Gents,
      two problems:
      1. I can't access my db file using FilemakerGo. Localhost works, Webdirect - doesn't. 
      2. I can't either access my file via mobile browsers. PC browsers work, mobile - doesn't. Tested on my iPhone with Safari and Chrome.
      Thanks for help.

    • By jaboda
      Hi,
      This is a peculiar bug which seems to have appeared with a recent Chrome update.
      Create a Web Viewer control with the following content:
      "data:text/html,<html><body bgcolor=\"#EEEEEE\">HELLO</body></html>" Then view the layout in WebDirect in Chrome. You'll notice it doesn't display anything. Remove the bgcolor and it works as expected. It also works in FileMaker.
      There are numerous workarounds but I can't find out how to fix it.
       
      Anyone else experienced this?
    • By Stickybeak
      I am investigating moving my database to web direct. To do so I need to get scribe working on fmphost.
      I have added a script step to register the plugin - which works fine in self hosted or fmphosted but I still get an error telling me that I need to install the plugin when I try to run it in webdirect.
       
      I have be speaking with fmphost who reported "It turns out the Scribe plugin also needed to be enabled in the FileMaker Server Admin Console. We have enabled the plugin, so it should be working now.".
      I am wondering if my license wont work with web direct. My license is described as "360Works Scribe 2.15 / Upgrade from Single User License to Scribe Workgroup License (Upgrade)".
      Any ideas?
    • By 360Works
      360Works New Update: 360Deploy 2.5
      360Works has just released 360Deploy 2.5; it ships with server-side scheduling, granular deployments, and several important improvements to the deployment process.

      360Works provides outside-the-box innovation, so you can be the genius FileMaker developer at work while using the most robust, innovative development tools you need to get the job done.

      360Deploy is a FileMaker deployment tool, designed to make FileMaker data migration easier. It utilizes the FileMaker Data Migration Tool, but it is so much more than a "wrapper". It completely automates the tedious data migration tasks, while pushing changes from the development environment to the production server.
       
      Download 360Deploy 2.5  
        What Does 360Deploy Do?
       
      Clones the development database Transfers clone to the production server Imports the data from the production database and into the clone to absorb the new architecture *For large databases, it supports a scheduling feature to run imports overnight. Backs up the production solution in archived folders prior to import should clients wish to revert back to the old version Renames the deployed file Resumes the deployed file  
      What's New in 360Deploy 2.5?

      360Deploy 2.5 introduces compatibility with Server Side Scheduled Scripts. You can now schedule deployments from the admin console. This is very useful if you need the deployment to run at a set down time where users are not accessing the database, such as overnight hours.

      Granular deployments are another big feature in 360Deploy 2.5; it allows you to turn files on and off for deployment without needing to re-do all of the configuration steps. You can simply select the files you do or do not want deployed at a specified time without any hassle.

      There are several important improvements to help you experience a more elegant and easier deployment process:
      Multiple configurations can be stored in the same file now, allowing different configurations to use different license keys Deploying the same file multiple times to the same server is now smoother Implemented a more graceful process for kicking users out and closing files; the file-closing workflow has been reworked and improved for a better user experience  
      Please visit our changelog for a complete list of changes.
      Keep in mind, once you press the 'deploy' button in 360Deploy, there is nothing left to do. It sends the new version to FileMaker Server (or multiple servers), and then runs in the background on each server, so you are free to continue working, take a break, or head home for the night, knowing that the new version will be safely deployed to users on each server by the time you get back. You'll receive an email when the process is complete. Skip the hassle of fumbling with files on the server and stick to the 'one-button click' of 360Deploy for dev changes.
      Download 360Deploy 2.5   Compatibility

      360Deploy 2 requires FileMaker Pro or Advanced 16, and production databases must be hosted on FileMaker Server 14 or later.

      After downloading 360Deploy on your server and configuring settings with the simple 360Deploy Setup utility, 360Deploy will deploy the development file changes to your users with the click of one button.
      Purchasing

      360Deploy 2.5 is a free upgrade for 360Deploy 2 license holders, which is a huge benefit of maintaining the latest version of 360Works software.

      If you do not have a license, 360Deploy 2 is available immediately for purchase at the 360Deploy page. Pricing starts at $195, which includes deployment with a single FileMaker solution (this can be a multi-file solution) and a single production server. It allows updated file versions for one solution to be deployed to one live / production server.

      Additionally, there is a free demo license available which can deploy to any number of servers for testing and evaluation purposes. Higher grade license types are available for purchase as well.
      About 360Works
      Located in metro Atlanta, 360Works, a FileMaker Platinum Business Alliance member, has been providing development solutions for 22 years. The company is a leading developer of both shrink-wrapped and custom database solutions for clients such as NASA, Pixar, US Marines, Make-A-Wish foundation and others. The company is credited for its forward-thinking solutions, dedication and unparalleled client service.
      Video Tutorial on 360Deploy 2.5
          Download 360Deploy 2.5  
       
  • Who Viewed the Topic

    3 members have viewed this topic:
    Wil'z  Şemsi Saracoğlu  Lee Smith 
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.