Questions tagged as 'passport'

1
answer

User Seeds Laravel do not work correctly with Passport

I am developing an API in Laravel by relying on the authentication it provides Passport , populating the development database with the Seeders and performing the tests with the client Postman . The problem is this:    By populating m...
asked by 04.04.2017 / 09:35
1
answer

Authorize SPA client using client credential grant token and personal access token - Laravel Passport

First I will put them in context. I am developing a Rest API using laravel and as authorization method oauth2 using Laravel Passport implementation. On the other hand I am developing a Javascript client (Single Page Application or SPA) tha...
asked by 07.05.2018 / 23:07
1
answer

How do I implement Passport in angular 2.0 and nodeJs?

I ask this question, because I already made some application with authentication with these technologies: MongoDb, Angular, NodeJs and Express. The fact is that I have been researching about Passport, but I can not implement it in nodeJs at all,...
asked by 22.08.2017 / 16:19
0
answers

passportjs always directs to fail logon

I'm trying to make a logon with passportjs but for more than I put the user and password well always directs me to the fail logon. Passport.js module.exports = function(passport) { passport.use('local', new LocalStrategy({ us...
asked by 27.11.2018 / 13:29
0
answers

Laravel Passport login api

When I try to log in with a user created from my API control, it does not allow me, however, if I try to login with a user created from my website, I have no problem. To create the user I am using $input['password'] = bcrypt($request->passw...
asked by 29.07.2018 / 06:01
0
answers

Use Passport-facebook in a rest API in NodeJS? [closed]

I have an application made in express , until now I used the same server to show HTML and so on. This application has a Facebook login and it works. I need to know how to implement the Facebook login in a API to be used from a client a...
asked by 19.05.2017 / 14:49
1
answer

error logging in with user with different role to admin

I have an api rest made in laravel 5.6 where I authenticate and register with passport and oauth, I register successfully but I am having problems logging in with users that do not have administrator role, it tells me they are not authorized....
asked by 27.07.2018 / 17:40
0
answers

How to show user data Laravel Passport

This is what it shows me when I send the user's data so that it generates a token with laravel postman, but I would like to know how to show the data of the user who has just logged in since I am interested in knowing the role of this user , I k...
asked by 23.05.2018 / 16:37
0
answers

Laravel Passport: invalid_credentials, The user credentials were incorrect

I try to test the authentication with Laravel Passport and there is no way ... The error is in the capture of postman, at the moment I try to create a user with postman I miss the error of the capture. User.php class User extends Auth...
asked by 13.05.2018 / 18:36
1
answer

Laravel Passport - Grant Type Not supported

{ "error": "unsupported_grant_type", "message": "The authorization grant type is not supported by the authorization server.", "hint": "Check the 'grant_type' parameter" } Reply when making the request by post, the grant_type is not supported...
asked by 03.05.2018 / 23:16