druxt / umami.demo.druxtjs.org

Umami food magazine DruxtJS demo site
https://umami.demo.druxtjs.org
MIT License
5 stars 5 forks source link

Enable authentication #405

Open Decipher opened 2 years ago

Decipher commented 2 years ago

Is your feature request related to a problem? Please describe. As a user I want to see a demo with working authentication.

Describe the solution you'd like

Describe alternatives you've considered

Additional context Config: authorization_code grant with PKCE support.

  auth: {
    redirect: {
      callback: '/callback',
      logout: '/',
    },
    strategies: {
      drupal: {
        scheme: 'oauth2',
        endpoints: {
          authorization: baseUrl + '/oauth/authorize',
          token: baseUrl + '/oauth/token',
          userInfo: baseUrl + '/oauth/userinfo',
        },
        clientId: process.env.OAUTH_CLIENT_ID,
        responseType: 'code',
        grantType: 'authorization_code',
        codeChallengeMethod: 'S256',
      },
    },
  },