Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I am trying to run it on Windows #108

Open
o-bardiuk opened this issue Oct 4, 2023 · 0 comments
Open

I am trying to run it on Windows #108

o-bardiuk opened this issue Oct 4, 2023 · 0 comments

Comments

@o-bardiuk
Copy link

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

> [email protected] 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant