• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 41
  • Last Modified:

Could you point a good way to implement a bearer token by using PHP?

Hi Experts

Could you point a good way to implement a bearer token by using PHP?

Thanks in advance
0
Eduardo Fuerte
Asked:
Eduardo Fuerte
  • 3
  • 3
1 Solution
 
Julian HansenCommented:
What are you going to be using it for?
Are you going to be connecting to an existing Authentication service?
Are you going to setup your own?

What authentication scheme are you wanting to use (OAuth, JWT, Other)?
0
 
Eduardo FuerteAuthor Commented:
Hi

I'm planning to use
Slim Framework
and they say at the end of this page:


In conclusion
Slim framework offers a clean and quick way to build a REST api. Although it does not have built-in libraries for authentication you can easily add 3rd party code for the same. The extremely small size of the base framework allows a quick installation on any server. In future posts we will look into some authentication methods for Slim framework.
0
 
Julian HansenCommented:
A bearer token is just a hash that identifies a person to a service. Usually you use it to get an access token.

A bearer token usually has a long life span
An access token has a much shorter life span (30min for example)

The paragraph above seems to indicate that you need to implement your own authentication. That leaves it wide open and subject to your requirements.

You could use OAuth or JWT's or you could use a very simple login. Depending on wh
0
Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

 
Eduardo FuerteAuthor Commented:
I'm going to better study your references.

Thank you for help!
0
 
Julian HansenCommented:
You are welcome - I see my post got truncated - there was a bit that came after that that seems to have been lost - sorry about that.
0
 
Eduardo FuerteAuthor Commented:
No problems!
It was very understandable.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now