Questions tagged [service-provider]
380 questions
0
votes
1 answer
Laravel Bind Object Interface with an implementation that has variables parameters in it's constructor
Please note that before aksing this questions I've looked into:
laravel-4 way to inject an object that requires configuration into a controller
Laravel 4: Passing data from make to the service provider
and
Laravel 4: Confused about how to use…

Keith Mifsud
- 1,599
- 1
- 16
- 26
0
votes
0 answers
Custom Serviceprovider not found
I tried to implement a custom service provider and facade to my project:
1. Creation of folders for class to be included and facade
/app/Helpers/GeoLocation.php
/app/Facades/GeoLocation.php
2. Creation of class to be provided:…

sesc360
- 3,155
- 10
- 44
- 86
0
votes
1 answer
Shibboleth SP clustering
We are supporting a multi-tenant application. Most of the time, there is substantial load on our application. Our technology stack involves:
Rails 3.2.13
Ruby 1.9.3
Running on Apache/2.2.15 (Unix) with Passenger(3.0.11).
Related Gems:
devise…

arrk-shoba
- 39
- 3
0
votes
1 answer
Service Providers and IoC in Laravel
I am going through the tutorial here, and I've run accross the following block of code in the ServiceProvider.
public function register()
{
$this->app->bind("chat.emitter", function ()
{
return new EventEmitter();
});
…

MirroredFate
- 12,396
- 14
- 68
- 100
0
votes
1 answer
phpBB as a Oauth service provider
I'm building a website and would like to allow users from a specific phpBB forum to log in using their existing forum account. The websites are uncorrelated and I plan on giving access to other phpBB forums at a later time, so I can't share…

Jukurrpa
- 4,038
- 7
- 43
- 73
0
votes
0 answers
Laravel 5 - Extending a Abstract Provider
I am trying to extend Laravel\Socialite\Two\AbstractProvider , and I am unsure what is the best / proper way to do this in Laravel. Reading the documentation has lead me to believe I should be doing this in a service provider.
Any help would be…

LukePOLO
- 1,110
- 3
- 13
- 28
0
votes
1 answer
Laravel IoC with namespace doesn't work
I'm trying to understand Repository Pattern in Laravel but it doesn't work. It gives me an error "Target [IUserRepository] is not instantiable.". The provider works fine after I added this 'Repositories\User\UserServiceProvider' but the problem is…

Rbex
- 1,519
- 6
- 24
- 50
0
votes
1 answer
Integrating Spring Security SAML module with CAS
Is it possible to use Spring Security SAML module for enabling SAML 2.0 Service Provider functionality with CAS? Native SAML support in CAS does not support this. We have a web application which already uses CAS for authentication and now there is a…

Torsti
- 1
- 1
0
votes
1 answer
Simplesamlphp costuming the time of redirect
While using SimpleSAMLphp as SP we use:
require_once('/var/simplesamlphp/lib/_autoload.php');
$as = new SimpleSAML_Auth_Simple('xxx');
$as->requireAuth();
However the user is redirected to the current page or a specified page just after the method…
0
votes
1 answer
SP redirect to OKTA IDP - I get response 401 Unauthorized
I have configured SAML 2.0 application on OKTA.
For SAML 2.0, Okta (acting as the IDP) supports 2 methods of authentication:
In IDP initiated the flow is:
User goes to Okta (assumption is that the user has an existing Okta session)
User clicks on…

moran
- 51
- 2
- 9
0
votes
1 answer
Syntax error on Service Provider
I don't understand why, but I can't get rid of "syntax error, unexpected '::' (T_PAAMAYIM_NEKUDOTAYIM)" after setting a Service Provider. Does anyone have any clue why this is happening?
My ServiceProvider:
namespace Repositories;
use…

Rui Silva
- 99
- 4
- 12
0
votes
2 answers
Why am I getting class not found? (Laravel, PHP)
I'm trying to add a binding to the register method in my ServiceProvider but I keep getting this error:
{"error":{"type":"Symfony\\Component\\Debug\\Exception\\FatalErrorException","message":"Class 'MyApp\\Providers\\App' not…

Sheldon
- 9,639
- 20
- 59
- 96
0
votes
1 answer
Proper registering a Service Provider in Laravel 4.1 using $this->app->share()
I've written this image upload service but the problem is that I keep getting the following error.
I've tried a number of suggestions but I don't seem to get over it.
error type ReflectionException, message Class upload.image does not…

Mushangi Derrick
- 134
- 9
0
votes
2 answers
SAML 2.0 service provider implementation
I am implementing SAML2.0 ServiceProvider in java using spring-security-saml-sample code. After successful login response gets redirect to root path(welcome file) of application.How to redirect it to any controller ?
Thanks,
Tejas

Peter
- 405
- 3
- 6
- 14
0
votes
0 answers
ServiceProvider not found on phpunit testing for Laravel 4
I am new to laravel 4, and I am following a Laravel tutorial on Culttt.com right now. I added a package into the project and create a Facade to access: Philipbrown/Suypo, it works fine.…