[Koha-bugs] [Bug 20624] Disable the OAuth2 client credentials grant by default

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri May 4 12:58:29 CEST 2018


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

--- Comment #15 from Kyle M Hall <kyle at bywatersolutions.com> ---
Created attachment 75061
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=75061&action=edit
Bug 20624: Unit tests

This patch adds tests to verify that disabling the RESTOAuth2ClientCredentials
syspref
makes any request on the /api/v1/oauth/token using the
'client_credentials' grant fail with 'grant not implemented'.

To test:
- Apply this patch
- Run:
  $ kshell
 k$ prove t/db_dependent/api/v1/oauth.t
=> FAIL: Tests fail because the change is not implemented!

Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list