Google OAuth Tool
FAQ
What is this tool for?
This tool is for obtaining the code required for the various different Stremio GDrive addons.
How do I use this tool?
A prerequisite for using this tool is that your OAuth client must be of the Web application
type. You must also add the following URL to the list of authorised redirect URIs in the Google Cloud Console:
You can find a more detailed guide on using this tool to setup a Stremio Google Drive addon here.
How does this tool work?
Once you input your Client ID, the tool will construct an OAuth URL that allows you to authorise the client to access your Google Drive, using this tool as the redirect URI. Once you authorise the client, Google will redirect you back to this tool with an authorisation code, that is automatically extracted and filled in for you. Then, you can click the Generate Code
button which uses the authorisation code to obtain a new refresh token and access token. You then choose your format depending on the addon you are using, and it is displayed for you to copy.
Is this safe?
Everything is run on your device, and no data is sent anywhere.
The client ID and client secret are stored in your browser's session storage, which is cleared upon closing the tab. The authorisation code is also stored in the session storage to allow the tool to transfer it from the callback URL back to the tool to automatically fill it in for you.
As long as your device isn't already compromised, this tool is safe to use.
You can view the source code for this tool on GitHub.