OAuth Set Up Guide for Tinfoil

This guide will teach you how to set up OAuth (Open Authorization) which is essential to access shops in Tinfoil. Without this, you will not be able to download anything from Tinfoil.

Warning

It is recommended to backup the Switch before using it for the first time: https://rentry.org/jl1101_switch_backup

Requirement:

  1. Windows Computer
  2. USB-C Cable to connect Switch to Computer

Obtaining your Google account API credentials

  1. Download rustfoil.zip and extract the files into a folder.
  2. Visit this website.
  3. Scroll down a little and click on Enable the API button.
  4. A popup with Google Cloud will appear, press AGREE AND CONTINUE.
  5. Click on the CREATE PROJECT button at the top-right.
  6. Click on the CREATE button.
  7. Click on NEXT.
  8. Click on ENABLE.
  9. Click on the hamburger menu at the top-left.
  10. Hover your cursor over APIs & Services.
  11. Select OAuth consent screen.
  12. Select checkbox External and click the CREATE button.
  13. The User support email must be the same as your Google account.
  14. Scroll down to Developer contact information and enter the same email.
  15. Click on Save and continue.
  16. Click on ADD OR REMOVE SCOPES.
  17. A panel should pop out on the right.
  18. Click on the search bar near the top of the panel, type in "drive" and select Google Drive API.
  19. Select the checkbox for "../auth/drive.readonly" and click Update.
  20. Click on SAVE AND CONTINUE.
  21. Click on ADD USERS.
  22. Type in the same email as before and click the ADD button.
  23. Click on Credentials on the left-hand side bar.
  24. Click on + CREATE CREDENTIALS and select OAuth client ID.
  25. Click on the drop-down bar and select Desktop app.
  26. Click on CREATE.
  27. Click on DOWNLOAD JSON.
  28. Move the downloaded file to the folder where you extracted the zip to in step 1.
  29. Rename the downloaded file to credentials.json.
  30. Start run.bat by double-clicking it.
  31. Copy the URL from the Comand Prompt window. (Click and drag over the entire URL, ensure that it's highlighted, then right-click on the URL to copy.)
  32. Go back to the browser which you used to set up the whole thing earlier and paste the copied URL into the URL bar.
  33. You may be prompted to login, ensure that you are logged in to the same Google account that you used earlier.
  34. If you get "Access blocked: XXX has not completed the Google verification process" error, please go back to step 21 and 22. Ensure that the email address matches your Google account's email address then try again from step 32.
  35. Click on Continue.
  36. Click on Continue again.
  37. You should see "You may now close this window.". Close the window.
  38. Go back to the Command Prompt window. You should see text like these.
  39. In the program folder, you should see that a new folder called COPY_TO_SD has been created.
  40. Open the COPY_TO_SD folder and copy all the files/folders inside.
  41. Connect your Switch to your computer using the USB-C cable.
  42. Open Album on the Switch.
  43. Go all the way to the right and launch the app USB File Transfer.
  44. Open File Explorer on your Computer and click on Nintendo Switch at the left sidebar.
  45. Double-click on SD Card and paste the files/folders that you copied earlier into this folder.
  46. Choose to overwrite if asked.
  47. Your Switch is now setup for OAuth with your Google account.
Edit Report
Pub: 08 Nov 2023 06:03 UTC
Edit: 08 Nov 2023 06:52 UTC
Views: 599