This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule MyApp.Guardian.KeyServer do | |
@moduledoc ~S""" | |
A simple GenServer implementation of a custom `Guardian.Token.Jwt.SecretFetcher` | |
This is appropriate for development but should not be used in production | |
due to questionable private key storage, lack of multi-node support, | |
node restart durability, and public key garbage collection. | |
""" | |
use GenServer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* http://mysite.com/security/dashboard/some-action */ | |
array( | |
'router' => array( | |
'routes' => array( | |
'security' => array( | |
'type' => 'Segment', | |
'may_terminate' => true, | |
'options' => array( | |
'route' => '/security[/:controller[/:action]]', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Base\Mvc\Controller\Plugin; | |
use Zend\View\Exception; | |
use Zend\View\Model\ViewModel; | |
use Zend\Mvc\MvcEvent; | |
use Zend\Mvc\ModuleRouteListener; | |
use Zend\Mvc\Controller\Plugin\Layout; | |
use Zend\Mvc\View\Http\InjectTemplateListener; |