https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38338

--- Comment #49 from Olivier Hubert <[email protected]> ---
Created attachment 195697
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=195697&action=edit
Bug 38338: this patch lays the groundwork for native XOAUTH2 authentication
support in Koha. It also implements the CCG XOAUTH2 flow.

Important: it currently only supports the CCG flow. The other flows need to be
implemented and tested.

Test plan
0. Determine which email address will be receiving the test email.
1. Install the required dependencies if they are not already installed:
  1.1. sudo cpanm Authen::[email protected]
  1.2. sudo cpanm Email::[email protected]
2. Apply the patch.
3. Update the database, by running the following command in the Koha git
directory:
  3.1. perl installer/data/mysql/updatedatabase.pl
4. Restart Plack, if Plack is running.
5. In the Intranet, navigate to the SMTP Servers page. For example, the link is
available in the Administration page, under the "Additional parameters"
section.
6. Create or update an SMTP server to use XOAUTH2 authentication. Specifically
fill the following fields:
  6.1. User name: use the email address that will be used to generate the OAUTH
token.
  6.2. Authentication type: OAUTH
  6.3. OAUTH server type: Client Credentials Grant
  6.4. Token URL: the complete URL (with Tenant ID if needed) to the /token
endpoint for the server.
  6.5. Scope: the complete scope that will be used to obtain the token.
  6.6. Client ID: the client ID that will be used to obtain the token.
  6.7. Client secret: the client secret that will be used to obtain the token.
  6.8. Adapt the other parameters according to your SMTP server's
specifications.
7. Update system preferences to send from the email specified in step 6.1.
  7.1. In particular, KohaAdminEmailAddress should be using that email.
  7.2. Ensure that SendAllEmailsTo is configured to the email address that is
used for the test (step 0).
8. Open the profile of any patron, for example: Henry Acevedo (23529000035676).
9. Edit and save the profile to add any email address as a primary email, if
there isn't one already.
10. From the "Plus" menu, select the option to "Send welcome notice".
11. From the command line, run the following command in the Koha git directory:
  11.1. perl ./misc/cronjobs/process_message_queue.pl
12. Check the email account used at step 0 to confirm that the email was
received correctly.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to