headless support

Created on 20 February 2018, almost 7 years ago
Updated 14 March 2023, almost 2 years ago

Hello

I'm using drupal as a backend for a mobile app, and use keycloak for this app too.
Our architecture is similar to what is described in https://medium.com/@ak1394/simple-social-login-for-react-native-apps-71279bf80ffc

The Openid_connect module does not work when I use drupal in headless model. To elaborate, when a user logs in on the app, via Keycloak, and when that user doesnt exist in Drupal, the user isnt created in drupal. Im not sure, but am guessing the keycloak module is the same in this respect.

When using drupal in headless model, the flow, as described in the link above, has call back url. Currently this is just a blank drupal page, which the mobile app has registered internally (deep linked), and it loads the app.

Feature request
It would be good to have a module that can be place on a page, as a block, which can

  1. extract the code token from the url
  2. request the user info from keycloak
  3. check if the user exists
  4. if the user doesnt exist, create the user

Im happy to help with implementing this, but would greatly appreciate some hand holding, as Im very new to php.

Feature request
Status

Closed: won't fix

Version

1.0

Component

Code

Created by

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.

  • 🇧🇪Belgium BramDriesen Belgium 🇧🇪

    Setting back to closed as I still don't understand what the real problem is here.

    We're also 5 years after the fact the issue was created :-)

Production build 0.71.5 2024