Questions tagged [service-provider]
380 questions
111
votes
7 answers
How to get an instance of IServiceProvider in .NET Core?
IServiceProvider is an interface with single method:
object GetService(Type serviceType);
It's used to create instances of types registered in .NET Core native DI container.
An instance of IServiceProvider itself can be obtained by calling a…

Arkadiusz Kałkus
- 17,101
- 19
- 69
- 108
57
votes
7 answers
Service providers with SAML version 2 for SSO accessible to public?
I'm wondering if there are any publicly available SAML version 2 SPs (Service Providers) that can be used to test SSO(Single Sign On)
Salesforce and Google apps both have an SSO solution, but how to go get access to them and what is the cost for…

Joseph Weissman
- 5,697
- 5
- 46
- 75
39
votes
3 answers
Laravel 4 - when to use service providers?
I tried to google it but did not find detailed information.
Service providers are a great way to group related IoC registrations
in a single location. Think of them as a way to bootstrap components
in your application.
Not understanding from…

Dariux
- 3,953
- 9
- 43
- 69
35
votes
2 answers
Understanding the concept behind Service provider framework like JDBC using the factory method
From Effective Java (Item 1: Consider static factory methods instead of constructors):
The class of the object returned by a static factory method need not even exist
at the time the class containing the method is written. Such flexible static…

Geek
- 26,489
- 43
- 149
- 227
33
votes
3 answers
Laravel - How to get current user in AppServiceProvider
So I am usually getting the current user using Auth::user() and when I am determining if a user is actually logged in Auth::check. However this doesn't seem to work in my AppServiceProvider. I am using it to share data across all views. I var_dump…

Codearts
- 2,816
- 6
- 32
- 54
23
votes
5 answers
Laravel 5.2 Service provider not booting
I have a weird issue with a service provider. I have a ComposerServiceProvider with a dd("I'm loaded"); in the boot() function. Nothing is happening.
I also have App\Providers\ComposerServiceProvider::class in config/app.php. I ran composer…

Illes Peter
- 1,637
- 5
- 25
- 43
20
votes
7 answers
Laravel 5 register middleware from in package service provider
I'm currently developing a package in/for Laravel 5.
My package contains a custom middleware and I would like to add it to the $routeMiddlewarearray of the Kernel class from in my package Service Provider.
But I can't seem to find a way to do…

Joren Van Hocht
- 845
- 1
- 9
- 21
18
votes
2 answers
using xamarin forms with IServiceProvider
I was looking into "Dependency Injection" on xamarin forms and found some concepts that use something like ContainerBuilder. The solutions found online such as this, talk about how you can have DI setup and inject them into your view models.…

Neville Nazerane
- 6,622
- 3
- 46
- 79
16
votes
10 answers
How to bypass Keycloak login form and jump directly to the IDP login?
I'm running the saml-broker-authentication example. The first thing that I see is in the UI is a user/pass for with an option to use a broker (image below).
Is there a way to skip this form and go straight to the IDP?
After clicking on one of the…

AlikElzin-kilaka
- 34,335
- 35
- 194
- 277
12
votes
2 answers
creating META-INF/services folder in Eclipse
I am trying to create an extensible app in Java and chose to use SPI. According to this tutorial I am following, I am supposed to create a specific file in META-INF/services in my jar, but don't know how.
I know how to create jar with META-INF, but…

tom
- 311
- 3
- 4
- 13
11
votes
2 answers
Creating laravel service class
My Uptime.php
"https://api.uptimerobot.com/v2/getMonitors",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT =>…

Christian Gallarmin
- 660
- 4
- 15
- 34
11
votes
2 answers
SAML2 Metadata - Multiple Signing Certificates
I'm looking at a SAML IdP's metadata and it lists three unique certificates - 2 signing and 1 encryption.
...
…

Daniel Gatto
- 113
- 1
- 1
- 5
9
votes
1 answer
ServiceCollection does not contain a definition for AddScoped and no accessible extension method accepting a first argument of type could be found
I have a windows service which uses Quartz for scheduling the tasks. And I am trying to achieve the Dependency Injection as by default the Quartz doesn't support that with default Job Factory. So I had to create a custom Job Factory as follows.
var…

Sibeesh Venu
- 18,755
- 12
- 103
- 140
9
votes
2 answers
Laravel 5.2 What goes in facade getFacadeAccessor return
So I am trying to create my first ever Service provider and complimentary Facade in Laravel.
Service Provider:

Bill Garrison
- 2,226
- 3
- 34
- 75
9
votes
1 answer
Communication with the service provider failed: No peer certificate in Twitter
I integrated the twitter API in my application for posting a message. It is generating an exception like this:
oauth.signpost.exception.OAuthCommunicationException: Communication with the service provider failed: No peer certificate
@Pawan's…

hharry
- 422
- 1
- 9
- 21