RocketChat / Apps.Google.Calendar

Rocket.Chat app to integrate Google Calendar into your chat
MIT License
15 stars 4 forks source link

Login Authentication Complete #1

Closed Gautime closed 5 years ago

Gautime commented 5 years ago

Draft pull request. Need to extract the authentication code received from first api call during authentication. That authentication code is then further used to make another api call involving the code as one of the parameter, to exchange the code for the access token, which will be used while making api requests on behalf of the user.

Logging out slashcommand logs out the user and redirects the authorised_uri, which in this case is the local server address.

Gautime commented 5 years ago

Update : Able to access authorisation code and use it to exchange for access token. Also stored access token in persistence layer of the app engine to be able to use it to make API requests from anywhere inside the app.