itchyny / calendar.vim

A calendar application for Vim
MIT License
1.95k stars 71 forks source link

Fail in authorization to Google #206

Closed LogicNg closed 1 year ago

LogicNg commented 1 year ago

@itchyny thanks for this amazing plugin!

I got "Fail in authorization to Google" after pasted the requested code. I added

echom client.client_id
echom client.client_secret
echom client.redirect_uri
echom string(response.content)

after line 62, client_id, client_secret were just the same as the values shown in Google Console. redirect_uri = urn:ietf:wg:oauth:2.0:oob. However, response.content was empty.

https://github.com/itchyny/calendar.vim/blob/fe13024cc3575d83f158339562f0e2d97fb44375/autoload/calendar/google/client.vim#L56-L66

I'm on Win 11.

itchyny commented 1 year ago

Hmm, what was the response code?

itchyny commented 1 year ago

No further description given, and at least it works well for me, so closing. If you have some clue to what's wrong with the plugin, feel free to reopen.

itchyny commented 1 year ago

Sorry for closing without investigation. Now I understand the problem, we need to migrate from the OOB flow.

itchyny commented 1 year ago

I fixed the OAuth initialization. If you still have interest in this plugin, hope this works in your environment.