|
Using the examples from the CGI::Session::Auth::DBI and CGI::Session::Auth pages, I have attempted to implement the _login function with no success. I'm using Windows 7 and Apache 2.
#!/usr/bin/perl -w use strict; use CGI::Carp qw(fatalsToBrowser); use...
Started by nbolton on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
LoginVarPrefix: By ....
See the modules in the Auth be using _login directly.
To access a real user database, you have to use a subclass that modifies the _login method appropriately .
Auth only knows the user 'guest' with password 'guest'.
|
|
I've posted this on Server Fault , but as there is sort of a programming aspect to it, I'll post it here too.
I have an ASP.NET MVC 1.0 application that uses Forms Authentication. We are using Windows Server 2008. I need to lock down the site so that ...
Started by Josh on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Or, use a version of the following provider:
<add name="AdProvider" type="System.Web.Security.ActiveDirectoryMembershipProvider... .
Trick here is to change the provider for your authentication to use Active Directory, rather than change the settings to Windows .
|
|
I have an urls.py with this line:
url(r'^logout/$', 'django.contrib.auth.views.logout', name="auth_logout"),
In my template tag i have this line:
<a href="{% url auth_logout %}">Logout</a>
Now, I would like to add the next_page param to the...
Started by Björn Lilja on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Url(r'^logout/$', 'django.contrib.auth.views.logout', {'next_page': '/'}, name='auth_logout;.*)/$', 'django.contrib.auth.views.logout', name='auth_logout_next'),
And then modify your template to pass in the next_page
<a href="{% url....
|
Ask your Facebook Friends
|
I am implementing a facebook connect based application, and when I use
$facebook->require_login()
I am redirected to the application page, after being presented with a login page on facebook. Now, when the application page loads, a "auth_token" parameter...
Started by jeffreyveon on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
I thought that maybe I could write a condition that checked to see if the auth_token was saved.
|
|
I want to create a helper screen that can create a bunch of Django auth users on my site and have those accounts setup the same exact way as if they were done one by one through the Django auth GUI signup. What methods from Django auth would I have to...
Started by MikeN on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
If you require the UI to be used, one option... .
What are you trying to accomplish exactly? Are you just trying to populate your user database with a bunch of fake/test users? Then simply do some logic to do so and save the models like you normally would .
|
|
I've two subdomains. Each subdomain has its own authenticated users database. I'm using
$auth = Zend_Auth::getInstance(); if($auth->hasIdentity()){ }
to check user login credentials. It works prefectly for each individual subdomain. But when I log ...
Started by understack on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Do somewhere at top of your.
You should restrict the auth cookies to the current subdomain.
|
|
A short question for the PROs. Is it possible to use Zend_Auth_Adapter_DbTable with ZendX_Db_Adapter? I've tried this:
$adapter = new Zend_Auth_Adapter_DbTable( Zend_Registry::get('db') ); $adapter->setTableName('USERS') ->setIdentityColumn('username...
Started by former on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
$adapter = new Zend_Auth_Adapter_DbTable( Zend_Registry::get('db') ); $adapter->')); $auth = Zend_Auth....
At first we the right code.
Okay, here is the right way to use Firebird DB with Zend_Auth.
The authentication yourself.
|
|
This is very simple. I write
$auth->getStorage()->write($user);
And then I want, in a separate process to load this $user, but I can't because
$user = $auth->getIdentity();
is empty. Didn't I just... SET it? Why does it not work? Halp?
Started by John on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Here's the implementation of the Auth getIdentity function and read functions:
/** * Defined by Zend_Auth_Storage_Interface * * @return mixed */ public function read() { return $this->_session->{$this-....
Hello,
It's supposed to work.
|
|
I tried using
// do login if request is posted if (isset($_POST) && !empty($_POST)) { // do authencation ... } else { // request not posted // see if already logged in if (Zend_Auth::getInstance()->hasIdentity()) { echo "already logged in as: " . Zend...
Started by iceangel89 on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
I check that a user id exists : Zend_Auth::getInstance()->getIdentity()->id;
Maybe or somthing similar) if not you will have to re-authenticate on each request
Are you ever calling Zend_Auth::getInstance()->getStorage()->write....
|
|
Hello. I've asked already on MSDN forum, now have a try here.
I wanted to do what I guess tried many. I wanted to create a WCF-service hosted in IIS6 and disable anonymous authentication in IIS. And don't use SSL.
So only way I have is to use basicHttpBinging...
Started by Shrike on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
--> <service name="MyNamespace.MyServiceType....
Try disabling MEX like this:
<services> <!-- Note: the service name must match the configuration name for the service implementation .
The MEX endpoint may still be the problem (see this post ) .
|