DMXzone Security Provider ASP Support Product Page

Solved

Can't get security provider to work (enforcer)

Reported 20 May 2014 20:08:06
1
has this problem
20 May 2014 20:08:06 Steve Skinner posted:
I haven't had much luck at all with the Security Provider Extension. I follow the instructions in the video tutorials, but I cannot get it to work right.

For instance, just preventing access to a page using the simplest version (single user) doesn't work. In one test, I get a login prompt, but it will not accept the login, even though I know I'm typing the username and password exactly correct. In a second test on a different domain, I can't even get it to prompt for the password. The enforcer code that was loaded to the page doesn't enforce anything. The page just loads.

Replies

Replied 20 May 2014 21:12:05
20 May 2014 21:12:05 Teodor Kuduschiev replied:
Hello Steve,
Please provide links to your pages where we can check the issues.
Replied 20 May 2014 23:44:45
20 May 2014 23:44:45 Steve Skinner replied:
Ok, I managed to figure out the enforcer, but I still have a related question.

My enforcer test page is here:
aspadmin.scriptsource.com/enforcertest.asp

It properly detects whether you are logged in or not, and if not - it redirects you here:
aspadmin.scriptsource.com/securitytest2.asp

So, go ahead and login using admin and testing for username and password. That will allow you to see the content on enforcertest.asp. Here's where I have a question... I want to link my "Logout" in the upper right to the logout function and redirect to the page where login occurs, but I am unable to use a behavior to control the Security Provider Executor because it says "you need to define a DMXzone Security Provider Executor first...".

I only need one place for a login function, not on every page that needs to be protected by the login.

I just want to be able to have a link for "logout" which performs that function and redirect to the main login page. How do I do that?
Replied 21 May 2014 08:56:06
21 May 2014 08:56:06 Teodor Kuduschiev replied:
Hello Steve,
Just go to Site > DMXzone Security Provider > Manage Page Security Provider Executor -> Click OK and then you will be able to apply the Log Out behavior
Replied 21 May 2014 15:51:01
21 May 2014 15:51:01 Steve Skinner replied:
It doesn't exactly work like that. It requires you to implement a SEcurity Provider Executor on the page before you can do that. That's the problem.
Replied 21 May 2014 16:25:11
21 May 2014 16:25:11 Teodor Kuduschiev replied:
It worka exactly how i explaied this to you. Please just follow the steps above and the logout behavior will be available then!
Replied 21 May 2014 17:09:28
21 May 2014 17:09:28 Steve Skinner replied:
Ok, I'll try again.
Replied 21 May 2014 20:37:13
21 May 2014 20:37:13 Steve Skinner replied:
Ok, I followed your instructions to the letter and updated my page:
aspadmin.scriptsource.com/enforcertest.asp

At first it doesn't appear to work because nothing happens when you click logout. However, you are actually logged out, but you are not redirected until you click refresh. Is there a way to have the logout behavior to also redirect?
Replied 21 May 2014 20:41:00
21 May 2014 20:41:00 Steve Skinner replied:
Disregard, I just figured it out.

Edited the Security Provider Executor and added a behavior for "when the user logs out" with the behavior connector.

It takes awhile to learn how all your extensions can be further enhanced with the behavior connector, but they are very flexible. I always appreciate the great support you guys provide!
Replied 22 May 2014 09:01:25
22 May 2014 09:01:25 Teodor Kuduschiev replied:
Hi Steve,
Sorry, I forgot to mention the redirect on logout behavior.

Reply to this topic