Herramientas de usuario

Herramientas del sitio


personas:brolin:dokuwiki_oauth

Diferencias

Muestra las diferencias entre dos versiones de la página.

Enlace a la vista de comparación

Última revisiónAmbos lados, revisión siguiente
personas:brolin:dokuwiki_oauth [2019/06/03 00:12] – creado brolinpersonas:brolin:dokuwiki_oauth [2019/06/03 00:14] – [Configuración de dokuwiki con acceso OAuth] brolin
Línea 1: Línea 1:
 ====== Configuración de dokuwiki con acceso OAuth ====== ====== Configuración de dokuwiki con acceso OAuth ======
  
-Register application at the Google Developer Console +  - Open [[https://cloud.google.com/console/project|Google Developer Console]] in your browser and log in into your Google Account. If you do not have Google Account yet, it is good time to create one. 
-Open Google Developer Console in your browser and log in into your Google Account. If you do not have Google Account yet, it is good time to create one. +  Click **Create project...** (you may see the page like this http://snag.gy/MZaOh.jpg). 
-Click Create project… (you may see the page like this http://snag.gy/MZaOh.jpg). +  Fill new project form, give some name and project ID (see http://snag.gy/Ipmxr.jpg). 
-Fill new project form, give some name and project ID (see http://snag.gy/Ipmxr.jpg). +    :!: Google may ask you to confirm you contact phone with SMS or callback. "Evil Corporationdefine their own rules. It's up to you to decide :) 
-:!: Google may ask you to confirm you contact phone with SMS or callback. Evil Corporation” define their own rules. It's up to you to decide :) +  Open menu **APIs & auth** -> **Credentials** (see http://snag.gy/ZuLfU.jpg) 
-Open menu APIs & auth → Credentials (see http://snag.gy/ZuLfU.jpg) +  Form "**Create Client ID**" will be opened. Fill it: 
-Form Create Client ID” will be opened. Fill it: +    * **Application type:** (required) choose "Web application"
-Application type: (required) choose Web application+    * **Authorized JavaScript Origins** enter your hostname (make sure http or https is the same for both settings). For example: <code>http://www.your-domain.com</code> 
-Authorized JavaScript Origins enter your hostname (make sure http or https is the same for both settings). For example: +    * **Authorized Redirect URIs** enter these lines: <code>
-http://www.your-domain.com +
-Authorized Redirect URIs enter these lines:+
 http://www.your-domain.com/doku.php?id=start&do=login http://www.your-domain.com/doku.php?id=start&do=login
 http://www.your-domain.com/start?do=login http://www.your-domain.com/start?do=login
Línea 18: Línea 16:
 http://www.your-domain.com/doku.php/start?do=login http://www.your-domain.com/doku.php/start?do=login
 http://your-domain.com/doku.php/start?do=login http://your-domain.com/doku.php/start?do=login
-Instead of your-domain” put your actual hostname where DokuWiki is installed. :!: Note: if your DokuWiki is accesed with HTTPS then enter the URI with https, not http. +</code> Instead of "your-domainput your actual hostname where DokuWiki is installed. :!: **Note:** if your DokuWiki is accesed with HTTPS then enter the URI with **https**, not **http**
- +  Click "Create client IDbutton. 
-Click Create client ID” button. +  Now you have page with all required information for plugin setup. You will need two values from here: **Client ID** and **Client secret**
-Now you have page with all required information for plugin setup. You will need two values from here: Client ID and Client secret. +  Open menu **APIs & auth** -> **Consent screen**
-Open menu APIs & auth → Consent screen. +  Fill "PRODUCT NAMEand e-mail address as well, or you can get this error http://stackoverflow.com/questions/18677244/error-invalid-client-no-application-name.
-Fill PRODUCT NAME” and e-mail address as well, or you can get this error http://stackoverflow.com/questions/18677244/error-invalid-client-no-application-name. +
  
 ===== Enlaces ===== ===== Enlaces =====
personas/brolin/dokuwiki_oauth.txt · Última modificación: 2019/06/03 01:00 por brolin