Dashboard For Mobile App - laravel

I am building a native app in android / ios and using laravel 5.3 for server side API's development. This app is related to E-commerce where user and seller will come buy an sell their product. To browse all the users, products and other statistics and action I want to develop an admin / dashboard panel. What is the best way to do this.

There are number of ways to do it. You can use tokenized api from laravel for authentication and you can use jwt sort of libraries. Which will allow you to authenticate and with tokenized api you can securely make http request with your laravel back end. You just have to specify api guard specifically for your admin panel. There is one default api guard as well. You can use that one or create new. Completly upto you.

You can check this: https://asgardcms.com/. It's a modular multilingual CMS built with Laravel 5, with an MIT license.

Related

Shopify 3rd Party SSO WP Shopify Pro plugin

Hello I have a client with a wordpress website using WP Shopify Pro plugin. I only have access to the shopify store is this plugin able to interact with a custom shopify app? The client sells online courses and would like a single sign on solution I have jwt experience but trying to picture how this is gonna integrate being new to shopify. I've only played with adding admin functionality.
We have a Shopify+Thinkific site bridge (we have Thinkific Premium, with SSO available), we want our Shopify customers log into their Thinific account. SSO
How can this be accomplished with jwt token? Anyone done anything similar?
https://developers.thinkific.com/more/sso/
https://www.shopify.com/partners/blog/17056443-how-to-generate-a-shopify-api-token
Anyone have any examples of a custom app where they created successful 3rd party SSO interrogation without multipass?

Login users from other sites in my laravel app with their account

I have a laravel 7 website that's mainly used as a membership program for some companies.
A new feature demands that users from those companies may login in my site with their account (account of my site) through a request generated on their company side.
Each app has its own DB. In my DB I keep track from which app each user is.
What would be a secure approach to accomplish this feature?
You could implement an API using either Laravel Passport or Laravel Sanctum for authentication, depending on your use-case/preference.
Here are a couple of boilerplate projects that you can take a look at for reference:
Passport: https://github.com/pktharindu/nuxt-laravel-passport-example
Sanctum: https://github.com/pktharindu/laravel-api-boilerplate
You'll of course need to do some customizations to keep track of where the user is coming from.

Which Auth is usfull in Laravel / VueJS project?

I am planning a small project and have a question about authentication. I would like to implement the site with Laravel 8. However, as soon as the user has successfully logged in, he should be directed to the user dashboard. The User Dashboard should be a pure VueJS Single Page Application.
Now my question. Which auth should I use here? Session or token for the whole site or is both possible and useful?
If I use the token auth variant, for example, then I can protect the Vue app very well but I cannot access the user information outside the Vue app. For example, the current profile picture of the user should appear in the navbar and not only in the vue app but also on the landing page, contact page etc.
How can I do this and what will be the best practice and thanks for your help!
Use token based Authentication
(Laravel Passport)
Use Token-based authentication system.
In this way, you'll be able to manage the entire application UI and role checking in the frontend only. I would rather prefer to go with JWT [https://jwt-auth.readthedocs.io/en/develop/laravel-installation/]. It's easy to use and the documentation is pretty good. It's even supported by Lumen also. If you wish to integrate any micro-service in your application future, then it's available in Lumen micro-service also.

Sharing login between OAuth 2 and Session Authentication

At the moment we have a React application that uses OAuth2 for authentication and a second application that uses Laravel with Backpack. Is there any viable way to share the login between the two apps, as they are just two parts of the same system.
[UPDATED]
Additional information: both the Laravel project using session auth (https://laravel.com/docs/5.7/authentication) and the React application using OAuth 2 (https://laravel.com/docs/5.7/passport) will be running in the same browser. The intention is to make a seamless transition between these two parts.
Both Session auth and OAuth are using the default implementations provided by Laravel.
Short story behind the requirement - we have a system where the user can order products, but some of the users are also sellers. We have the Laravel project as the front-end shop part and the React app as a panel for moderating the products that you sell.

Laravel 5.2 + Socialite + Update Status

Well, for quite some time now, i've been doing some research on which plugin to use in Laravel 5.2 for the purpose of authenticating users in my website via their social networks accounts.
I wanted to use Hybridauth, but it is not compatible with Laravel 5.2, it is compatible only with Laravel 4.2. So, i was thinking of using Socialite, but the thing is that i want to give my user the ability to post his social network status via my own website.
So, is there a way that i could give my user this ability using Socialite?
Laravel Socialite handles authentication only.
You can get an access token for the various social media APIs using socialite, but the package does not offer any methods for interacting with those APIs.
If you want your user to be able to post to social media accounts you will need to write the code to interact with those APIs for use a package which provides that functionality, but it is beyond the scope of Socialite.

Resources