Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what is the difference between personal access token and json web token for user Authentication?

I know we can use json web token for user authentication in web application. The app client sends a couple username and password to application server, web application server return a JSON web token to app client.

Today, I read some passages about personal access token in Laravel 5.4 document . But, I'm not sure whether they are a meaning. what is personal access token? The personal access token in Laravel is equivalent to JSON web token for user authentication?

Who can help me?

like image 257
Shaun Avatar asked Mar 06 '17 15:03

Shaun


People also ask

What is the difference between JWT and access token?

So the real difference is that JWT is just a token format, OAuth 2.0 is a protocol (that may use a JWT as a token format or access token which is a bearer token.). OpenID connect mostly use JWT as a token format.

What is difference between access token and token?

Access tokens are what the OAuth client uses to make requests to an API. The access token is meant to be read and validated by the API. An ID token contains information about what happened when a user authenticated, and is intended to be read by the OAuth client.

What is JSON Web Token used for?

JWT, or JSON Web Token, is an open standard used to share security information between two parties — a client and a server. Each JWT contains encoded JSON objects, including a set of claims. JWTs are signed using a cryptographic algorithm to ensure that the claims cannot be altered after the token is issued.

How are JSON Web Tokens used for authentication?

How do JSON Web Tokens work? In authentication, when the user successfully logs in using their credentials, a JSON Web Token will be returned. Since tokens are credentials, great care must be taken to prevent security issues. In general, you should not keep tokens longer than required.


1 Answers

This is the definition

Personal access token

Sometimes, your users may want to issue access tokens to themselves without going through the typical authorization code redirect flow. Allowing users to issue tokens to themselves via your application's UI can be useful for allowing users to experiment with your API or may serve as a simpler approach to issuing access tokens in general.

A personal access token is just a JWT(Json Web Token) created for user authentication with your own frontend to offer your users a dashboard for managing personal access tokens instead of using the user/password form.

like image 183
pedrofb Avatar answered Oct 21 '22 08:10

pedrofb