Basic authentication, anonymous access, and redirection

We have a web-enabled database that most users access anonymously. We recently received a requirement to hide certain columns in our views from everyone but a small group. So the idea is to make these specific people log in so we can compute the column hide-when formula based on their username.

It’s been many years since I’ve done web stuff, so I’ve forgotten a lot, and never learned a lot of the newer stuff. If I recall, the first time an Anonymous user tries to open a design element (view, document, etc) that is not available to public access users, they are prompted to log in, and after successful authentication they are brought back to the element they were trying to open.

The problem for us is, our views ARE available to public access users. It’s just that certain columns need to be hidden based on the user’s name being in a field on the database profile document. So the user trying to open that view will not prompt for authentication. Thus we need to force it. My company uses basic authentication - there is no chance of getting session-based authentication implemented here. To the best of my knowledge, the only way to force authentication is to append ?login to the end of a URL. However, when the user logs in using the form that is presented, they are redirected to the server’s home page, rather than back to the database element they were trying to get at.

How can I force the ?login link to bring the user back to our database when they’ve successfully authenticated?

Subject: Basic authentication, anonymous access, and redirection

Can you just use two versions of the view, opening one version when the username is “Anonymous” and the other when it is not?

Subject: RE: Basic authentication, anonymous access, and redirection

Nope - they’re actually folders, not views, and they’re created by the users who do have the Notes client. They’re always changing, and there can be anywhere up to 150 at a time. We can’t create a new view for every folder that exists.

Subject: Basic authentication, anonymous access, and redirection

Hi, I dont know whether Groups and Roles work in web.If they work i can suggest u some way.Just add the people whom u wanted them not to see the columns in a group by creating a new group for them.Then in column Properties Advanced Tab write the hide when formula and at the same time create a role as well.Enable the role for the group and write the hide when formula in the column .I dont know whether all these features work in wb.But verify with them.

Subject: RE: Basic authentication, anonymous access, and redirection

Yes, groups and roles do work, but in order for someone to be known as a member of a group, they need to log in. That’s the whole problem - how do we let them login and have them redirected back to the view they were trying to open, rather than to the server’s home page.