You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to access Booked API after changing the Authentication mechanism to CAS. For this, used CAS Plugin and configured changes in CAS.Config,php as follows -:
conf['settings']['cas.version'] = '2.0'; // '1.0' = CAS_VERSION_1_0, '2.0 = CAS_VERSION_2_0, 'S1' = SAML_VERSION_1_1$conf['settings']['cas.server.hostname'] = 'X.X.X.X'; // the hostname of the CAS server$conf['settings']['cas.port'] = '443'; // the port the CAS server is running on$conf['settings']['cas.server.uri'] = 'cas'; // the URI the CAS server is responding on$conf['settings']['cas.change.session.id'] = 'false'; // Allow phpCAS to change the session_id$conf['settings']['email.suffix'] = '@yourdomain.com'; // Email suffix to use when storing CAS user account. IE, email addresses will be saved to Booked Scheduler as username@yourdomain.co $conf['settings']['cas_logout_servers'] = 'https://X.X.X.X:443/cas/logout'; // Comma separated list of servers to use for logout. Leave blank to not use cas logout servers$conf['settings']['cas.certificates'] = ''; // Path to certificate to use for CAS. Leave blank if no certificate should be used$conf['settings']['cas.debug.enabled'] = 'true';
$conf['settings']['cas.debug.file'] = '/opt/lampp/htdocs/booked/phpcas.log';
Now when trying to use Booked API, I am unable to authenticate users
POST- : http://Booked_IP/booked/Web/Services/Authentication/Authenticate
{"username":"admin","password":"password"}
I get the following response- :
<!DOCTYPE html><htmllang="en"><head><metacharset="UTF-8" /><metaname="viewport" content="width=device-width, initial-scale=1" /><title>CAS – Central Authentication Service</title><metaname="_csrf" content=""/><metaname="_csrf_header" content=""/><linkrel="stylesheet" href="/cas/css/#.css" /><linkrel="icon" href="/cas/favicon.ico" type="image/x-icon" /></head><bodyid="cas"><divid="msg" class="errors"><h2>Application Not Authorized to Use CAS</h2><p>The application you attempted to authenticate to is not authorized to use CAS.</p></div><scriptsrc="https://cdnjs.cloudflare.com/ajax/libs/headjs/1.0.3/head.min.js"></script><scripttype="text/javascript" src="/cas/js/cas.js"></script></body></html>
Is there anything I am missing here? Any other changes need to be done to use Authentication API with CAS?
The text was updated successfully, but these errors were encountered:
Well right off the top I am seeing an issue with the protocol; i.e. http is being requested but https for the CAS client is being configured w/o the use of any x509 certificate and/or PKCS#12 trust store from root or intermediate CA's being specified in the configuration.
Hi guys
I am trying to access Booked API after changing the Authentication mechanism to CAS. For this, used CAS Plugin and configured changes in CAS.Config,php as follows -:
Now when trying to use Booked API, I am unable to authenticate users
POST- : http://Booked_IP/booked/Web/Services/Authentication/Authenticate
{"username":"admin","password":"password"}
I get the following response- :
Is there anything I am missing here? Any other changes need to be done to use Authentication API with CAS?
The text was updated successfully, but these errors were encountered: