Changes between Version 9 and Version 10 of OAuth2Plugin


Ignore:
Timestamp:
Dec 24, 2016, 12:21:51 PM (4 years ago)
Author:
figaro
Comment:

Further cosmetic changes

Legend:

Unmodified
Added
Removed
Modified
  • OAuth2Plugin

    v9 v10  
    11[[PageOutline(2-5,Contents,pullout)]]
    22
    3 = OAuth2 Authentication Plugin
     3= Authenticate using OAuth2
    44
    55== Description
    66
    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.
     7This 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.
    88
    99Requires the oauth2client Python module.
     
    1717
    1818If 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)]]
    2022
    2123== Download
     
    2931== Installation
    3032
    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
     331. 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".
     401. Drop the plugin in your plugins directory.
     411. In your configuration section, disable the http authentication. Then specify the location of "client_secrets.json":
     42 {{{#!ini
    4343[components]
    4444trac.web.auth.loginmodule = disabled
     
    4747secrets = /path/to/client_secrets.json
    4848}}}
    49 
    50 4. Optionally, if you would like to restrict access to a particular Google Apps domain, add the following.
    51 
    52 {{{!ini
     491. Optionally, if you would like to restrict access to a particular Google Apps domain, add the following:
     50 {{{#!ini
    5351[oauth2]
    5452domain = my.google.apps.domain
    5553}}}
    56 
    5754
    5855== Recent Changes