You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following modification can be used to enable user access verification against an external database. Useful if you are running a private installation of pathfinder and want to enable access to a group that cannot be defined simply as "alliance" or "corp"
## 3rd Party external authorization website
Your external authorization site should implement a JSON API that takes a URL in the form ....
https://<your-site>/<path-to-api>/<character ID to verify>
A username and password are sent in the header
The API should return a JSON string of "OK" if the user is allowed to access pathfinder. Any other response is ignored and the user cannot log on to pathfinder.
## environment.ini
Add the following lines to both your [ENVIRONMENT.DEVELOP] and [ENVIRONMENT.PRODUCTION] sections ...
; External Authorization Settings
EXT_AUTH_ENABLE = true
EXT_AUTH_URL = http://localhost/portal/api/authorize/ ; change to your site
EXT_AUTH_USER = admin ; change as required, sent in header
EXT_AUTH_PASS = admin ; change as required, sent in header
##charactermodel.php
Add the following code to function isAuthorized ...
public function isAuthorized(){
$isAuthorized = false;
$f3 = self::getF3();
if ($f3->get('ENVIRONMENT.EXT_AUTH_ENABLE'))
return $this->externalAuth();
$whitelistCorporations = $whitelistAlliance = [];
The Web request options can be customised as required for different authorization or security schemes. See the F3 documentation for details on how to use \Web::instance
The following modification can be used to enable user access verification against an external database. Useful if you are running a private installation of pathfinder and want to enable access to a group that cannot be defined simply as "alliance" or "corp"
## 3rd Party external authorization website
Your external authorization site should implement a JSON API that takes a URL in the form ....
https://<your-site>/<path-to-api>/<character ID to verify>
A username and password are sent in the header
The API should return a JSON string of "OK" if the user is allowed to access pathfinder. Any other response is ignored and the user cannot log on to pathfinder.
## environment.ini
Add the following lines to both your [ENVIRONMENT.DEVELOP] and [ENVIRONMENT.PRODUCTION] sections ...
##charactermodel.php
Add the following code to function isAuthorized ...
Add the following new function ...
The Web request options can be customised as required for different authorization or security schemes. See the F3 documentation for details on how to use \Web::instance
http://fatfreeframework.com/web#Instantiation
The text was updated successfully, but these errors were encountered: