Stuar iconStuarSep 26, 2026 ~1 min source read

Stuart Clark (Deciphered): Druxt Auth 0.5.0; two ways to sign in without leaving your site

Every Druxt site I have built signs people in by sending them somewhere else to do it: out to Drupal's login page, on to a consent screen, and eventually back. With Druxt Auth 0.5.0 the username and password can now be handled entirely in the frontend instead, either through the authorization code grant or through the password grant.

Stuart Clark (Deciphered): Druxt Auth 0.5.0; two ways to sign in without leaving your site

Share this story

Send the public story page.

Useful takeaways from this story.

Every Druxt site I have built signs people in by sending them somewhere else to do it: out to Drupal's login page, on to a consent screen, and eventually back.

With Druxt Auth 0.5.0 the username and password can now be handled entirely in the frontend instead, either through the authorization code grant or through the password grant.

If you have not used it, Druxt Auth wires Nuxt's auth module to Simple OAuth on the Drupal side.

Building the complete brief

The page is ready to read now. The fuller skim-friendly version will appear here automatically.

The useful part

Every Druxt site I have built signs people in by sending them somewhere else to do it: out to Drupal's login page, on to a consent screen, and eventually back. With Druxt Auth 0.5.0 the username and password can now be handled entirely in the frontend instead, either through the authorization code grant or through the password grant. If you have not used it, Druxt Auth wires Nuxt's auth module to Simple OAuth on the Drupal side.

How it works

  • The first is the authorization code grant, which now takes credentials directly.
  • Druxt Auth signs the visitor in through Drupal's JSON login route first, so the authorize step finds a session waiting and returns a code without rendering anything:

What to take from it

It targets Nuxt 2 today, because @nuxtjs/auth-next does.

Keep reading in the app

Open the app view to save this story, compare related coverage, and continue from the same source.

Open in app