Skip to content

I am trying to run it on Windows #108

@o-bardiuk

Description

@o-bardiuk
D:\www\xxx.localhost\drupal>php ./vendor/bin/drush  -y config:set simple_oauth.settings public_key ../keys/public.key

 // public_key key does not exist in simple_oauth.settings config. Do you want to create a new config key?: yes.

D:\www\xxx.localhost\drupal>php ./vendor/bin/drush -y config:set simple_oauth.settings private_key ../keys/private.key

 // private_key key does not exist in simple_oauth.settings config. Do you want to create a new config key?: yes.

D:\www\xxx.localhost\drupal>php ./vendor/bin/drush simple-oauth:generate-keys ../keys

[warning] openssl_pkey_export(): Cannot get key from parameter 1 KeyGenerator.php:25
 [error]  TypeError: openssl_pkey_get_details(): Argument #1 ($key) must be of type OpenSSLAsymmetricKey, bool given in openssl_pkey_get_details() (line 27 of D:\www\xxx.localhost\drupal\web\modules\contrib\simple_oauth\src\Service\KeyGenerator.php) #0 D:\www\xxx.localhost\drupal\web\modules\contrib\simple_oauth\src\Service\KeyGenerator.php(27): openssl_pkey_get_details(false)
#1 D:\www\xxx.localhost\drupal\web\modules\contrib\simple_oauth\src\Service\KeyGeneratorService.php(78): Drupal\simple_oauth\Service\KeyGenerator::generateKeys()
#2 D:\www\xxx.localhost\drupal\web\modules\contrib\simple_oauth\src\Commands\SimpleOauthCommands.php(72): Drupal\simple_oauth\Service\KeyGeneratorService->generateKeys('D:\\www\\xxx.lo...')
#3 [internal function]: Drupal\simple_oauth\Commands\SimpleOauthCommands->generateKeys('../keys', Array)

Now when I run

D:\www\shoom.localhost\nuxt>npm run dev

> quickstart-druxt-site@1.0.0 dev
> nuxt


 FATAL  DruxtAuth requires a clientId to be provided.                                                         03:32:14

  at ModuleContainer.NuxtModule (node_modules\druxt-auth\dist\index.ssr.js:22:11)
  at ModuleContainer.addModule (node_modules\@nuxt\core\dist\core.js:239:34)
  at node_modules\@nuxt\utils\dist\utils.js:639:43
  at async ModuleContainer.ready (node_modules\@nuxt\core\dist\core.js:51:7)
  at async Nuxt._init (node_modules\@nuxt\core\dist\core.js:478:5)


   │   ✖ Nuxt Fatal Error                                    
   │   Error: DruxtAuth requires a clientId to be provided.  



D:\www\shoom.localhost\nuxt>

Can somebody help me with this?

Maybe there is a dump of the database with all settings and dummy keys that I can use from this point?
I really don't want to dig into all of that OAuth stuff that I have no idea about.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions