Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 1 year ago.
Improve this question
I'm working with laravel 6.x and 8.x for my applications. I was trying to find a way to protect my api routes with csrf protection, but it seems impossible to do it.
So I looked for another way to protect my api routes, and I found Laravel Passport : https://laravel.com/docs/8.x/passport
I keep reading the documentation and i don't really understand how it works.
So I post this so that someone can explain to me how Laravel Passport can be implemented in my applications.
Thanks for your help. :)
Check this url. It was very simple.
Toptal:Laravel-passport-tutorial
If you don`t get, you can research vie youtube too.
Related
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 2 years ago.
Improve this question
What are the differences between these 2? And which one is better for a simple VueJS app?
I've read their documents a few times but still confused.
Thank you very much.
Passport provides a full OAuth2 server implementation for your Laravel application in a matter of minutes. It is therefore necessary to have a brief knowledge of OAuth2.
Sanctum it is a simple package to issue API tokens to your users without the complication of OAuth. Sanctum uses Laravel's built-in cookie based session authentication services.
In a small application use Sanctum. it's simple and easy.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
I am new to APIs. I want to make an API-centric Laravel web app and an Android app. They will use private API.
I am not sure how to make the user auth for the API. I have read many articles about JWT and many more about OAuth2 but I am still not sure which one to use and how to actually make it.
I recommend that you read through this very digestable book - https://apisyouwonthate.com/. It helps with the theory and the implementation of an API in Laravel. Although the code is specifically for Laravel 4, virtually everything in the book is still helpful.
Starting in Laravel 5.2, the framework has been providing support for token authentication and web form authentication right out of the box. https://www.laravel.com/docs/5.3/passport
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I was looking for an example where Marklogic Rest API is called using AJAX.
GET OR POST METHOD using authentication.
Any help is greatly appreciated.
Thanks
The example using jQuery at https://developer.marklogic.com/learn/semantic-infopanel is fairly complete. It lacks authentication, but http://api.jquery.com/jQuery.ajax/ explains how to add basic authentication and Is Digest authentication possible with jQuery? has some options for digest authentication.
Along with authentication there are other security issues to consider: CSRF and CORS for instance.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I am new in Laravel. I have to use Bitcoin for checkout page. Can anybody help me how to integrate Bitcoin in laravel framework.
The Blocktrail PHP SDK works with Laravel, in fact there's an example project to get you started: Simple Block Explorer
Their API supports payments and webhooks as well as plain blockchain data, check out their API documentation: https://www.blocktrail.com/api/docs
Update 1
I've added an additional example project - a personal wallet for receiving and making payments (with an integrated block explorer). The project demonstrates the payment api as well as the webhooks api.
See it here: Simple Bitcoin Wallet App
As far as I am aware, there is no library setup for Bitcoin payment processing in Laravel, however the API for Coinbase (https://www.coinbase.com/docs/api/overview) is pretty decent, and shouldn't be too hard to implement yourself.
<form action="/create_payment" method="POST">
<script
src="https://checkout.stripe.com/checkout.js" class="stripe-button"
data-key=pk_test_6pRNASCoBOKtIshFeQd4XMUh
data-image="/square-image.png"
data-name="Demo Site"
data-description="2 widgets ($20.00)"
data-amount="2000"
data-currency="usd"
data-bitcoin="true">
</script>
</form>
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I would like to know if there is already a Google+ API available to the developers. I have not yet found something?
The API is now here available: https://developers.google.com/+/
https://services.google.com/fb/forms/plusdevelopers/ This is the link to sign up for Google+ API access.
The official Google+ API can be found at: http://developers.google.com/+/api/
There is an unofficial API, PHP.GooglePlusAPI, that you can use this to fetch public data. It's something to play around with while we're waiting for the full official API from Google:
Update:
I've just added support for feed posts as well. You can use this library in your server-side code to read a public profile, post, and relationship data, cache it in a MySQL database, and serve the data to a front-end as a JSON or JSONP service.
Google just announced the developer's page
https://developers.google.com/+/
Check out the following - both work pretty well:
https://github.com/jmstriegel/php.googleplusapi
http://code.google.com/p/javaplus/
I think that you'll find this article a good read.
Google Plus doesn't have a public API
yet, nor has it announced when one
will be available. But if you want to
find out about future developer
opportunities, Google has a mailing
list you can sign-up for to receive
more information in the future.
Taken from article linked above.
It is just released..
http://www.globinch.com/2011/09/15/google-api-released-supports-access-to-public-data/
The API itself is there - it's restful, and requires a client library for each language in order to be used.
Here is one for Java: Googl-plus-java-api
For Android developers, visit here: https://developers.google.com/+/mobile/android/