微信内可能无法直接打开本站。请点右上角 ··· → 在浏览器打开,或复制链接。
Stuart Clark (Deciphered): Druxt Auth 0.5.0; two ways to sign in without leaving your site
RSS 官方收录 · 可信分层展示
关键摘要
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.
- 0 the username and password can now be handled entirely in the fronten…
- If you have not used it, Druxt Auth wires Nuxt's auth module to Simple…
规则摘要 · 来源可核验
正文提要
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. It targets Nuxt 2 today, because @nuxtjs/auth-next does.
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: