forked from saidul85/XBMC-gdrive
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSetupOAUTH2.html
22 lines (22 loc) · 2.46 KB
/
SetupOAUTH2.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE html>
<html>
<body>
<h2>How to setup your own OAUTH2 authentication</h2>
<ol>
<li>Visit <i>https://console.developers.google.com/</i> and sign in using your Google Account.
<li>Click <b>create a project</b>.
<li>Give the project a <i>Project name</i>.<br/><img src='http://dmdsoftware.net/GoogleSetupOAUTH2/step1.png'/>
<li>Click <b>create</b>. You will be taken to the Project's dashboard.
<li>On the left pane, select <b>APIs</b> under <i>APIs & Auth</i>.<br/><img src='http://dmdsoftware.net/GoogleSetupOAUTH2/step2.png'/>
<li>Select <b>Drive API</b>.<br/><img src='http://dmdsoftware.net/GoogleSetupOAUTH2/step3a.png'/>
<li>On the top of the screen, click the <b>Enable API</b>. The Drive API should now be enabled.<br/><img src='http://dmdsoftware.net/GoogleSetupOAUTH2/step3.png'/>
<li>On the left pane, select <b>Credentials</b> under <i>APIs & Auth</i>.<br/><img src='http://dmdsoftware.net/GoogleSetupOAUTH2/step4.png'/>
<li>Click <b>Create new Cliend ID</b>.<br/><img src='http://dmdsoftware.net/GoogleSetupOAUTH2/step5.png'/>
<li>On the <i>Create Client ID</i> screen, select <b>Installed Application</b>. Click <b>Configure consent screen</b>.
<li>On the resulting screen, select an email address and enter a product name. Click <b>save</b>.<br/><img src='http://dmdsoftware.net/GoogleSetupOAUTH2/step7.png'/>
<li>You will be taken back to the <i>Create Client ID</i> screen. Selected <b>Installed Application</b>, select <b>Other</b> under <i>Installed Application Type</i>. Click <b>Create Client ID</b>.<br/><img src='http://dmdsoftware.net/GoogleSetupOAUTH2/step6.png'/>
<li>On the screen with the Create new Client ID, your credentials will appear. This is your Client ID and Client secret that you will need to enter into the XBMC / KODI plugin if using Login Type "your own OAUTH2".<br/><img src='http://dmdsoftware.net/GoogleSetupOAUTH2/step8.png'/>
<li>To authorize your login with the OAUTH2, visit the following URL, substituting <b><i>[CLIENT_ID]</i></b> with your client ID -- <br/><br/>https://accounts.google.com/o/oauth2/auth?scope=https://www.googleapis.com/auth/drive.readonly&redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=code&client_id=<i><b>[CLIENT-ID]</b></i> <br/><br/>so that it resembles <br/><br/><i>https://accounts.google.com/o/oauth2/auth?scope=https://www.googleapis.com/auth/drive.readonly&redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=code&client_id=772521706521-bi11ru1d9h40h1lipvbmp3oddtcgro14.apps.googleusercontent.com</i>
</u>
</body>
</html>