mantisbt-plugins / Calendar

Adds the task scheduling function in MantisBT based on the calendar of events with the possibility of one-way synchronization with Google Calendar.
15 stars 7 forks source link

Error trying activate user Calendar #16

Closed BoGnY closed 6 years ago

BoGnY commented 6 years ago

Hi, I have follow all step for installation, but when I'm on user calendar page, I click on "Enable sync with Google Calendar", I allow permission, but at the end, I give this error:

The server denied the request. Error: Could not determine client ID from request

The strange thing is that the redirect uri after oauth permission is this: https://bug.bogny.eu/plugin.php?page=Calendar/user_config_google&state=%5B%22user_config_google%22%5D&code=4/AAA7m0ynV3KTzmkYzn_rBE5N39-AXpxK5IUbQDphxh60tp8je46c-RKXM4TqPfY0hCThz1LWS4moAxSBNHhDrOE#

Maybe the problem are caused by %5B%22 or %22%5D????? IDK

This is my uploaded json file:

                                    Array
(
    [client_id] => 1234567890-ASDASDASDASDASDASD.apps.googleusercontent.com
    [project_id] => bogny-eu
    [auth_uri] => https://accounts.google.com/o/oauth2/auth
    [token_uri] => https://accounts.google.com/o/oauth2/token
    [auth_provider_x509_cert_url] => https://www.googleapis.com/oauth2/v1/certs
    [redirect_uris] => Array
        (
            [0] => https://bug.bogny.eu/plugin.php?page=Calendar/user_config_google
        )
    [javascript_origins] => Array
        (
            [0] => https://bug.bogny.eu
        )
)

Thanks for any help!

brlumen commented 6 years ago

Hello @BoGnY! I will try to help you as quickly as possible!

brlumen commented 6 years ago

Maybe the problem are caused by %5B%22 or %22%5D????? IDK

@BoGnY The problem is not exactly in string format. I have already encountered this error. At first glance, there is not enough line in your json file [client_secret] =>

Try downloading the file again from the google control panel.

brlumen commented 6 years ago

Please let me know if you have turned on the sync.

brlumen commented 6 years ago

@BoGnY I deleted the line "client_secret" from my json file and the error was reproduced exactly like you. So try again download the file from the google control panel.

BoGnY commented 6 years ago

Sorry, now it works... Maybe a server problem 👍