jmcblane / egwtools

Tools for accessing Ellen White's writings. Working GUI, CLI, and Discord bot.
13 stars 5 forks source link

Guidance on to run this tool #1

Open blaiseAI opened 2 years ago

blaiseAI commented 2 years ago

Thanks for working on this great tool, can you provide more guidance on how I can run this locally.

derrikF commented 2 years ago

this code is outdated, so you don't need any guidance, you need to change the code.

for example, the file lib/auth.rb does not contain the addresses specified on the page https://a.egwwritings.org

and here https://cpanel.egwwritings.org/.well-known/openid-configuration you can see which grant_types are supported but in lib/auth. rb, others are specified

for example, you need something else instead of

    :authorize_url
    :token_url

because it's always an error

  "error": "unsupported_grant_type",
  "error_description": "The specified 'grant_type' is not supported."

after making some changes, for example, I have this

    :authorization_endpoint => "https://cpanel.egwwritings.org/connect/authorize/",
    :token_endpoint => "https://cpanel.egwwritings.org/connect/token/" )

I get an authentication error {'type':'https://httpstatuses.io/404','title':'Not Found', 'status':404, 'traceId': '00-2fc85114a5c3697ad156566c642086c0-9746e205a8bdc2ce-00'} (OAuth2::Error) although the username and password are correct

need to fix the code