Skip to content

Instantly share code, notes, and snippets.

View timothyjeffcoat's full-sized avatar

Timothy Jeffcoat timothyjeffcoat

View GitHub Profile
@timothyjeffcoat
timothyjeffcoat / appProdProjectContainer.php
Created June 9, 2016 17:12
symfony sso idp appProdProjectContainer
<?php
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\DependencyInjection\Container;
use Symfony\Component\DependencyInjection\Exception\InactiveScopeException;
use Symfony\Component\DependencyInjection\Exception\InvalidArgumentException;
use Symfony\Component\DependencyInjection\Exception\LogicException;
use Symfony\Component\DependencyInjection\Exception\RuntimeException;
use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
@timothyjeffcoat
timothyjeffcoat / security.yml
Created June 9, 2016 14:47
SSO IDP security.yml
security:
encoders:
# Our user class and the algorithm we'll use to encode passwords
# http://symfony.com/doc/current/book/security.html#encoding-the-user-s-password
AppBundle\Entity\User: bcrypt
providers:
# in this example, users are stored via Doctrine in the database
# To see the users at src/AppBundle/DataFixtures/ORM/LoadFixtures.php
# To load users from somewhere else: http://symfony.com/doc/current/cookbook/security/custom_provider.html
@timothyjeffcoat
timothyjeffcoat / apache_error.log
Created June 9, 2016 14:43
symfony sso IDP login error
[2016-06-09 08:36:33] request.INFO: Matched route "sso_login_path". {"route_parameters":{"_controller":"Krtv\\Bundle\\SingleSignOnIdentityProviderBundle\\Controller\\SingleSignOnController::ssoLoginAction","_route":"sso_login_path"},"request_uri":"http://idp.example.com/sso/login/?_failure_path=http%3A%2F%2Fidp.example.com%2Flogin%3F_target_path%3Dhttp%253A%252F%252Fconsumer1.com%252F%253F_hash%253DOT5lyNHoRoLehKaJS4l0sDae5dC5pQCgPJ26NPV%25252BbLM%25253D&_hash=1vxor%2FgfuqOYTKCFK4gpf9sqOtNOAHJpVpW66O%2Bcppo%3D&_target_path=http%3A%2F%2Fconsumer1.com%2Fotp%2Fvalidate%2F%3F_target_path%3Dhttp%253A%252F%252Fconsumer1.com%252F%253F_hash%253DOT5lyNHoRoLehKaJS4l0sDae5dC5pQCgPJ26NPV%25252BbLM%25253D&service=consumer1"} []
[2016-06-09 08:36:33] request.CRITICAL: Uncaught PHP Exception Symfony\Component\Security\Core\Exception\AuthenticationCredentialsNotFoundException: "The token storage contains no authentication token. One possible reason may be that there is no firewall configured for this URL." at /Users/timothyj
@timothyjeffcoat
timothyjeffcoat / appDevUrlMatcher.php
Created June 8, 2016 21:39
appDevUrlMatcher.php
<?php
use Symfony\Component\Routing\Exception\MethodNotAllowedException;
use Symfony\Component\Routing\Exception\ResourceNotFoundException;
use Symfony\Component\Routing\RequestContext;
/**
* appDevUrlMatcher.
*
* This class has been auto-generated