directus / v8-archive

Directus Database API — Wraps Custom SQL Databases with a REST/GraphQL API
https://docs.directus.io/api/reference.html
505 stars 204 forks source link

Auth login Thrid party token through API #1748

Open tech-andgar opened 4 years ago

tech-andgar commented 4 years ago

• Version of Directus 8.4.0 (DigitalOcean)

• PHP version 7.2.24-0ubuntu0.18.04.2

• MySQL version Server version: 5.7.29-0ubuntu0.18.04.1 (Ubuntu)

• Webserver + version server Apache/2.4.29 (Ubuntu)

• Error message (if any) • Steps to reproduce

I have a problem authenticating for Request login access API, (http://{{ baseUrl }}/{{ projectUrl }}/auth/authenticate) but it’s not email or password. Third party token access like facebook or google token but from API (not from UI dashboard). Try to do it by creating webhook, but I don’t know what is not good method.

hemratna commented 4 years ago

Hi @andgar2010 Unfortunately, I can not understand what you are trying to achieve here.

Currently /:project/auth/authenticate support the email, password.

If you want to add support for login via Facebook or Google, Please follow the SSO guide

hemratna commented 4 years ago

Hi, @andgar2010 Any updates?

tech-andgar commented 4 years ago

Hi @hemratna, Sorry I'm late. I haven't answered for days. I'm going to explain the case:

The client does not need web access for SSO authentication to obtain jwt, because the client already has SSO authentication (fb, google, etc) from APP and/or another page. I need how to make it implement different standard authentication method (mail and password) to the SSO token to get jwt from directus.

hemratna commented 4 years ago

@andgar2010 May be https://docs.directus.io/api/authentication.html#sso-callback will help.