Luracast/Restler — Issue #21: API class Auth is missing
Author: KitCarrau
Created: 2011-12-15 15:35:49+00:00
State: open

I am trying to add an authentication class using `addAuthenticationClass`. However, my authentication class cannot be found.

It is in the same directory as the class where I am calling Restler from. I have tried using the `$base_path` parameter to send in a custom path to the authentication class but have had no luck.

I receive this error:
`
Fatal error: Uncaught exception 'Exception' with message 'API class Auth is missing.' in C:\Users\Kit\Documents\\api\plugins\restler\restler.php:241 Stack trace: #0 C:\Users\Kit\Documents\\api\plugins\restler\restler.php(260): Restler->addAPIClass('Auth', '/0.1') #1 C:\Users\Kit\Documents\\api\app\Controllers\0.1\Router.php(19): Restler->addAuthenticationClass('Auth', '/0.1') #2 C:\Users\Kit\Documents\\api\app\Router.php(10): VersionRouter->__construct() #3 C:\Users\Kit\Documents\\api\index.php(8): Router->__construct() #4 {main} thrown in C:\Users\Kit\Documents\\api\plugins\restler\restler.php on line 241
`