https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42870
--- Comment #34 from David Cook <[email protected]> --- __KOHA PLUGIN TEST PLAN__ - ktd --sso --dovecot up - Setup Keycloak and Koha as per the instructions at https://wiki.koha-community.org/w/index.php?title=Testing_SSO - Install "XOAUTH2 SMTP Email Transport" Koha Plugin in your Koha (for instance the koha-plugin-email-xoauth2.kpz plugin attached to Bugzilla) - Restart Koha (ie sudo koha-plack --restart kohadev) - Create a new SMTP server (Navigate to Administration > SMTP servers) - For "Transport module" choose "XOAUTH2 SMTP Email Transport" - For Configuration, click "Add default SMTP XOAUTH2 configuration" - Change the configuration to match something like the following: { "grant_type": "client_credentials", "client_id": "kohaoidc", "client_secret": "<client secret>", "scope": "openid profile", "token_url": "http://sso:8082/auth/realms/test/protocol/openid-connect/token" } - Fill in "Host" as "dovecot" - Fill in "Port" as 31587 - Fill in "Name" as "test" - Fill in "Username" as "service-account-kohaoidc" - Change "Debug mode" to "Enabled" - Click "Submit" - tail -f /var/log/koha/kohadev/plack-error.log - Go to http://localhost:8081/cgi-bin/koha/admin/smtp_servers.pl - Click "Send test email" - Note a line like this: Net::SMTP=GLOB(0x599a9b7ae0c8)<<< 235 2.7.0 Logged in. - Note that you can safely ignore the final following line for the actual email sending: Net::SMTP=GLOB(0x599a9b7ae0c8)<<< 421 4.4.0 44728a8a0763 Failed to connect to relay server (connect) Side note: - This test plan relies on a patched version of Net::SMTP. Without the patch, you'll get an error like "500 5.5.2 Line too long" due to a protocol error in Net::SMTP. - If you're not using the patched version, you'll need to do the following: - Click "Realm settings", click "Tokens" tab, change "Default Signature Algorithm" from "RS256" to "ES256", click "Save" - Go to "Client", choose "kohaoidc", click "Service account roles" tab, click "default-roles-test" and click "Unassign". - Then go to "Client scopes" tab for the "kohaoidc" client, change "Default" to "Optional" for all the scopes with "Default" Assigned type. -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list -- [email protected] To unsubscribe send an email to [email protected] website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
