Part of the EllisLab Network
   
1 of 3
1
Community Auth
Posted: 23 August 2009 11:45 PM   [ Ignore ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1235
Joined  05-17-2009

I’ve created a new authentication system called Community Auth. I know there are a lot of choices in the wiki; maybe somebody will find it useful. Check it out and give me some feedback!

Community Auth

I also created a support thread:

http://codeigniter.com/forums/viewthread/127094/

 Signature 

Brian
Brian’s Web Design - Temecula
Community Auth - CodeIgniter Authentication Application

Profile
 
 
Posted: 06 December 2011 05:39 PM   [ Ignore ]   [ # 1 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1235
Joined  05-17-2009

I would like to update everyone, letting you all know that a lot of work has recently been done with Community Auth. It’s still available on Bitbucket, and it is installed at community-auth.com, so you can check it out. It comes pre-installed in CodeIgniter 2.1.0.

 Signature 

Brian
Brian’s Web Design - Temecula
Community Auth - CodeIgniter Authentication Application

Profile
 
 
Posted: 07 December 2011 12:26 AM   [ Ignore ]   [ # 2 ]  
Summer Student
Total Posts:  6
Joined  03-30-2008

I’ve changed where my comauth directory is, in the config to
$config[‘base_url’] = ‘http://localhost/comauth/
Everytime i want to register / login, gives me back to http://localhost/
Is there something im missing?

Profile
 
 
Posted: 07 December 2011 12:33 AM   [ Ignore ]   [ # 3 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1235
Joined  05-17-2009
Underware - 07 December 2011 12:26 AM

I’ve changed where my comauth directory is, in the config to
$config[‘base_url’] = ‘http://localhost/comauth/
Everytime i want to register / login, gives me back to http://localhost/
Is there something im missing?

You will probably have to remove or adjust the rewrite settings in /.htaccess.

I would try to change line 2 to:

RewriteBase /comauth/

You could remove the /.htaccess altogether, but then ‘index_page’ in config/config will need to be set to ‘index.php’.

 Signature 

Brian
Brian’s Web Design - Temecula
Community Auth - CodeIgniter Authentication Application

Profile
 
 
Posted: 07 December 2011 10:30 AM   [ Ignore ]   [ # 4 ]  
Summer Student
Total Posts:  6
Joined  03-30-2008

Did the RewriteBase /comauth/
Run localhost/comauth/init get a 404 error
  define(‘REDIRECT_TO_HTTPS’, 0);
Registration says: Registrations are not allowed at this time. (probably haven’t done the init thing).
The home page shows, but no logo image.

Profile
 
 
Posted: 07 December 2011 10:48 AM   [ Ignore ]   [ # 5 ]  
Summer Student
Total Posts:  6
Joined  03-30-2008

Sorry, the init was working after i disable it.
But the logo and css are still not showing.

Profile
 
 
Posted: 07 December 2011 11:51 AM   [ Ignore ]   [ # 6 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1235
Joined  05-17-2009
Underware - 07 December 2011 10:48 AM

Sorry, the init was working after i disable it.
But the logo and css are still not showing.

I changed the way that CSS and images are called. If you download the tip at the repository, you should be good.

 

 Signature 

Brian
Brian’s Web Design - Temecula
Community Auth - CodeIgniter Authentication Application

Profile
 
 
Posted: 07 December 2011 11:38 PM   [ Ignore ]   [ # 7 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  417
Joined  03-08-2011

In the process of trying your app…

...have removed leading slash on /css and /img logo. Same applies to all the /js script files.
 

 Signature 

Ongoing project:
  http://johns-jokes.com/joke-of-the-day/2010/May.html
My Hippy Trail:
  http://the-road-to-kathmandu.johns-jokes.com/
In case you forget:
  http://deformedweb.co.uk/php_variable_tests.php

Profile
 
 
Posted: 07 December 2011 11:53 PM   [ Ignore ]   [ # 8 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1235
Joined  05-17-2009
John_Betong_002 - 07 December 2011 11:38 PM

In the process of trying your app…

...have removed leading slash on /css and /img logo. Same applies to all the /js script files.
 

Repo tip actually uses the html helper to load everything. Just did that commit this evening. Let me know what you think.

 Signature 

Brian
Brian’s Web Design - Temecula
Community Auth - CodeIgniter Authentication Application

Profile
 
 
Posted: 08 December 2011 11:31 AM   [ Ignore ]   [ # 9 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  417
Joined  03-08-2011

Still in the process of trying your app:

I have downloaded, configured and installed the latest version:


Suggestions:

//cosmetic
1. file: ‘./application/views/template_content.php’
  line: 66
  add:
    <span>
      <?php echo date(‘l, jS F Y H:i:s’,time());?>
    </span>
   
// errors    
2. file: ‘./application/views/configuration.php’   
  line: 27..32
  remove preceding slash from href=”/documentation/configuration/...
 
// think it is best to set default to 0
3. file: ‘./application/config/constants.php’   
  line: 21
  add:
      define(‘USE_SSL’, isset($_SERVER[‘HTTPS’]) && $_SERVER[‘HTTPS’]); // original default: 1
     

// easier to set profiler      
4.a file: ‘./application/config/constants.php’   
  line: 23
  add:
      define(‘ENABLE_PROFILER’, 1); // requires following step

// part of above step
4.b file: ‘./application/core/MY_Controller.php’   
  line: 28
  edit:
      $this->output->enable_profiler( defined(‘ENABLE_PROFILER’) && ENABLE_PROFILER);
     
 
 
     
My next big question is, is it possible to run SSL using a XAMPP localhost?

If possible then can you point me in the right direction as where to start searching or modify your introduction documentation to say that SSL is absolutely essential.

 
 
     
     
edit: corrected path for My_Controller.php and constants.php

 Signature 

Ongoing project:
  http://johns-jokes.com/joke-of-the-day/2010/May.html
My Hippy Trail:
  http://the-road-to-kathmandu.johns-jokes.com/
In case you forget:
  http://deformedweb.co.uk/php_variable_tests.php

Profile
 
 
Posted: 08 December 2011 01:09 PM   [ Ignore ]   [ # 10 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1235
Joined  05-17-2009

@ John - Thanks for the feedback. I’ll look into these things later today.

About SSL on XAMPP, yes, I do this all the time.

I set up my domains via /xampp/apache/conf/extra/httpd-vhosts.conf

Inside that, I have something like this:

#
# Virtual Hosts
#

NameVirtualHost *:80
NameVirtualHost 
*:443
SSLStrictSNIVHostCheck off

<VirtualHost *:80>
 
ServerName localhost
 DocumentRoot 
"C:\xampp\htdocs\localhost"
 
<Directory "C:\xampp\htdocs\localhost">
  
# this only needs to be here for the error pages
  # and the fact that the site doesn't have an .htaccess
  
RewriteEngine On
 
</Directory>
</
VirtualHost>
#<VirtualHost *:443> 
# DocumentRoot "C:\xampp\htdocs\localhost"
# ServerName localhost
# SSLEngine on 
# SSLCertificateFile conf/ssl.crt/server.crt 
# SSLCertificateKeyFile conf/ssl.key/server.key 
#</VirtualHost>

<VirtualHost *:80>
 
ServerName localhost.community_auth
 DocumentRoot 
"C:\xampp\htdocs\community_auth"
</VirtualHost>
<
VirtualHost *:443
 
DocumentRoot "C:\xampp\htdocs\community_auth"
 
ServerName localhost.community_auth_isolated
 SSLEngine on 
 SSLCertificateFile conf
/ssl.crt/server.crt 
 SSLCertificateKeyFile conf
/ssl.key/server.key 
</VirtualHost>

<
VirtualHost *:80>
 
ServerName localhost.another-website
 DocumentRoot 
"C:\xampp\htdocs\another-website"
</VirtualHost>

<
VirtualHost *:80>
 
ServerName localhost.abc
 DocumentRoot 
"C:\xampp\htdocs\abc"
</VirtualHost>
<
VirtualHost *:443
 
DocumentRoot "C:\xampp\htdocs\abc"
 
ServerName localhost.abc
 SSLEngine on 
 SSLCertificateFile conf
/ssl.crt/server.crt 
 SSLCertificateKeyFile conf
/ssl.key/server.key 
</VirtualHost

It has been a long time since I set this up, so I don’t remember if anything else needed to be done.

 Signature 

Brian
Brian’s Web Design - Temecula
Community Auth - CodeIgniter Authentication Application

Profile
 
 
   
1 of 3
1