Changes between Version 9 and Version 10 of OAuth2Plugin
- Timestamp:
- Dec 24, 2016, 12:21:51 PM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
OAuth2Plugin
v9 v10 1 1 [[PageOutline(2-5,Contents,pullout)]] 2 2 3 = OAuth2 Authentication Plugin3 = Authenticate using OAuth2 4 4 5 5 == Description 6 6 7 This is a small OAuth2 plugin intended for use in authenticating against Google. In theory, it should work with other providers too. It currently replaces the existing HTTP authentication, however this is not strictly necessary and can be easily removed.7 This is a plugin intended for use in authenticating against Google. It uses OAuth2 authentication. In theory, it should work with other providers too. It currently replaces the existing HTTP authentication, however this is not strictly necessary and can be easily removed. 8 8 9 9 Requires the oauth2client Python module. … … 17 17 18 18 If you have any issues, create a 19 [/newticket?component=OAuth2Plugin&owner=ysobolev new ticket]. 19 [/newticket?component=OAuth2Plugin new ticket]. 20 21 [[TicketQuery(component=OAuth2Plugin&group=type,format=progress)]] 20 22 21 23 == Download … … 29 31 == Installation 30 32 31 1. Obtain a "client_secrets.json" file. Instructions below assume you are using Google OAuth2. 32 a. Creating a new project [https://console.developers.google.com/ here]. 33 b. Under "APIS & AUTH" click "Credentials" and then "Create new Client ID." 34 c. Select "Web application" 35 d. For Javascript origins, set the address of your server (ex: https://example.com/). 36 e. For redirect URI, set the path to your Trac project followed by oauth2callback (ex.: https://example.com/trac/myproject/oauth2callback). 37 f. Under the newly created client ID section, click "Download JSON." 38 39 2. Drop the plugin in your plugins directory. 40 3. In your configuration section, disable the http authentication. Then specify the location of "client_secrets.json." 41 42 {{{#!ini 33 1. Obtain a "client_secrets.json" file. The instructions below assume you are using Google OAuth2 authentication. 34 * Creating a new project [https://console.developers.google.com/ here]. 35 * Under "APIS & AUTH" click "Credentials" and then "Create new Client ID". 36 * Select "Web application". 37 * For Javascript origins, set the address of your server, for example: https://example.com/. 38 * For redirect URI, set the path to your Trac project followed by oauth2callback, for example: https://example.com/trac/myproject/oauth2callback. 39 * Under the newly created client ID section, click "Download JSON". 40 1. Drop the plugin in your plugins directory. 41 1. In your configuration section, disable the http authentication. Then specify the location of "client_secrets.json": 42 {{{#!ini 43 43 [components] 44 44 trac.web.auth.loginmodule = disabled … … 47 47 secrets = /path/to/client_secrets.json 48 48 }}} 49 50 4. Optionally, if you would like to restrict access to a particular Google Apps domain, add the following. 51 52 {{{!ini 49 1. Optionally, if you would like to restrict access to a particular Google Apps domain, add the following: 50 {{{#!ini 53 51 [oauth2] 54 52 domain = my.google.apps.domain 55 53 }}} 56 57 54 58 55 == Recent Changes