How to provide token authentication to decoupled frontend

Created on 9 July 2018, almost 6 years ago
Updated 10 April 2024, 2 months ago

Love the project here. My question is regarding Drupal 8 as a backend only, for a separate frontend (Vue.js in this case).

Our site is not a "single page app" or anonymous-only (obviously.. since we offer social authentication).

We are using simple_oauth 8.x-3.x to provide the access tokens per-user for the frontend to authenticate, which works well, except with social_auth; since those users are being auto-authenticated to the Drupal backend (cookie/session only), and I'm unable to request a password grant token since we don't know the user's password. I've tried manually creating simple_oauth access_token entities assigned to a user, but they don't validate.

Have you run into this issue? Do you know of a solution? I don't feel like it's an edge case, the only requirements to encounter this difficulty is a decoupled site with social authentication. If this requires work, and you know how this could be done, let me know and I will get on it immediately.

Excited to hear ideas! Thanks again for all the great work here.

πŸ’¬ Support request
Status

Closed: outdated

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States jwjoshuawalker San Diego

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024