How to use Laravel Socialite with Laravel Spark - laravel

Is it possible to use Laravel Spark on a site where logins are controlled via Laravel Socialite? The documentation doesn't make this immediately clear to me. I understand I wouldn't be able to utilize the 2-factor authentication. Without access to the source code I can't scope out the difficulty, so I'm hoping someone who's used it can assist in answering this.

First
Laravel Spark is not meant something to integrate with an existing project. Its something to start with it, which save your time so don't 've to integrate common things and quickly implement / integrate / enhance your custom business / application requirements. Visit https://spark.laravel.com/ to check what you'll get ready made when start with Spark.
Here's what the official website says.
Spark provides the perfect starting point for your next big idea.
Forget all the boilerplate and focus on what matters: your application
Second
Spark is not free, You need to buy subscription key "Spark API token" which will lead you to install / use speak and start modify that for your business needs.
However
If your application already build on Spark and you are looking for features that offer by new version of spark, you might need to upgrade your Spark. You can check your Spark version by php artisan spark:version command
Updating might break your application, you need to be always careful
and follow the official guide and do backup.
Using Laravel Socialite with spark
You should be able to integrate socialite on your laravel application build on spark if that's your application business case or application requirement like any other requirements. This might be tricky to enhance the spark authentication code or follow spark approach to implement features. If you are a paid customer of spark you can ask for support. And to scope out difficulty you can go through the comments of this post https://laracasts.com/discuss/channels/spark/integrating-socialite-with-spark , it seems devs are already trying to integrate those.
Spark and the 2-factor authentication issue
I seems that spark latest version already integrate two factor authentication support. Here some text form official doc
Spark makes it simple to offer two-factor authentication to your
users. Two-factor authentication provides your users additional
account security by requiring them to provide a token during login in
addition to their username and password. This token is generally
retrieved from an application or SMS on their cellphone. Read more on that https://spark.laravel.com/docs/6.0/two-factor
Finally
Here's a screencast for a quick overview of what Spark is https://laracasts.com/series/laravel-spark/episodes/1
Hope That Helps

Related

Using custom metrics in self-hosted sentry

I have started using sentry within my org and loving it so far.
I've been trying to use its performance monitoring tool with custom metrics added.
While I can add custom metrics to the transactions I'm generating in sentry_sdk (for Python), I can't get access to them on the dashboard of our self-hosted installation of sentry.
After a lot of digging, I came across this paragraph here which states that
This feature is only available to organization on our latest plans which include Dynamic Sampling. Customers on legacy plans must move to one of these plans in order to access custom metrics.
From what I gather, I believe their plans in general is to run sentry on their servers. Unless you opt-in to their self-hosted code that can be downloaded from github here.
This is absolutely a bummer because I know my org will not consider moving internal data to third-party servers.
Wondering if someone knows of a solution to this problem. If sentry folks know of (paid) options that enables this feature on self-hosted version or if someone has hacked into their open source code?
I'd also love to hear any out-of-the-box suggestion you folks might have.

looking for Parse alternative server

I'm a hobby developer that use Parse.com as my database and website host, as Facebook is going to shutdown Parse.com, I'm now looking for alternative Parse server.
I use Parse's Cloud Code Hosting to build Dynamic Web App, and Parse itself to store data collected from the website I've build, with custom Cloud Code to help getting and managing data. I've build a Windows Phone app for myself to manage the data I've collected too.
Is there any alternative server that has my requirement?
Dynamic Website
Database host
Custom Cloud Code (with BeforeSave and AfterSave trigger)
with Windows Phone SDK (or REST API if doesn't have)
Very thank you for helping me!
Try out Hasura.
Hasura (http://www.hasura.io): Hasura is a neat PaaS + BaaS solution. It is now competing with Firebase, Kinvey, Heroku et al. There is a full comparison page here: Compare | Hasura (https://compare.beta.hasura.io) . The difference majorly lies in infra ownership as well as no tech lock-in due to open-source components(like docker, kubernetes,postgres) building the major chunk of the platform. Check it out. There is also an option to explore (https://explore.beta.hasura.io/) Hasura by building your own blog web app and a todo app in under 15 mins.
Hasura should fit in perfectly for your needs.
DISCLAIMER : Hasura Engineer here.
I'm using Simbla website application development. It doesn't support all of your requirments but it has great UI builder with a backend parse database.
You can try using the parse open source server it has cloud code and you can use a custom database with it.

Mean.IO - how to implement additional OAuth providers

mean.io does a great job of implementing a number of Oauth providers out of the box, unfortunately I want to use Spotify which is not one of them.
Mean.io uses passport which means that it should be as easy as implementing the passport-spotify npm module. However I am having difficulty understanding how mean.io's Oauth comes together. I also am having difficulty finding relevant information on how it works.
I can see that there is a config file in the config folder where the Oauth providers are configured but I can't tell what happens past there.
Is anybody able to point me in the right direction on how to implement an additional OAuth provider with mean.io?
Strategies
Passport has a comprehensive set of over 140 authentication strategies
covering social networking, enterprise integration, API services, and
more. The complete list is available on the wiki.
You might be interested in this one:
https://github.com/JMPerez/passport-spotify

Does a Talend connector to Google Contacts exists?

I have a pretty simple question (for once :D) :
Do you know if a talendconnector to google-contacts exists ?
I can't find one into http://www.talendforge.org/components/, neither on the 4 first pages of Google itself.
As a fallback, do you think it would be possible to wrap a Talend component around google-contacts ... I guess yes, and so I would be surprised that no one had already developped it !
I've not seen a Google Contacts connector in Talend but there's a problem in the fact that to access the API you will need to auth via OAuth2. There's currently nothing standard in Talend to help with this (although it would be pretty useful) but Gabriele Baldassarre who semi regularly answers questions under the Talend tag has built a series of components to access Twitter data which has a similar OAuth requirement.
His website might be a useful reference to building this should you want to do so.
Edit
As of 5.4 Talend's RESTful components such as tRestClient now support OAuth2 so it is possible to provide OAuth2 tokens in your RESTful connection to help you connect to web services secure by OAuth2. There's not (as of yet) a Google Contacts connector available but you could replicate it now.

Simple php framework to support multi-tenancy

I am looking for a PHP based framework which is ready to go with following features
1. Simple dashboard with login/logout
2. Multiple DB with each db representing a client
Just the basic framework.
3. Simple registration support
Use case:
I download from github and deploy on the server - Assume the server is all configured up with dns and stuff.
I create a user through registration - a new db is created and tenant folder created on the server
I can then access
tenant1.stckoveawesm.com
tenant2.stckoveawesm.com
each connecting to different db. Assume: *.stckoveawesm.com is mapped to the server I am hosting the framework on.
I know there is code igniter, Zend and Symphony that supports the framework. I m looking for a library/framework which is ready to go. A shell code which can just do the trick with min. config.
I finally managed to get something done using Laravel framework and is hosted on github for folks to help and improve. Any one wants to pitch in and help fork and let me know so I can collaborate.
https://github.com/sseshachala/laravel-multi-tenant

Resources