RSCodingClub / STUCO-Backend

MIT License
3 stars 0 forks source link

Use local copy of Google OAuth2 certificates. #61

Closed itotallyrock closed 7 years ago

itotallyrock commented 7 years ago

Situation

Currently we have a few options. On every request we ask Google for their certificates. On startup we save their certificates to a variable in memory. Or we keep a local cache for each process that expires.

Pros and cons to each...

Send a request to Google Each Time

Pros

Cons

Startup Certificates

Pros

Cons

Local Cache

Pros

Cons

itotallyrock commented 7 years ago

For the most part this has been fully implemented and will be seen in an upcoming commit. I decided to use the local cache strategy as it was most fitting and solved the most problems with the simplest solutions.