diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..b9dcc39 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2021 DONFN & kcbanner + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/Readme.md b/Readme.md index 600e32b..87d1131 100644 --- a/Readme.md +++ b/Readme.md @@ -1,4 +1,4 @@ -# cas +# Node CAS | forked from [kcbanner](https://github.com/kcbanner/node-cas) Central Authentication Service (CAS) client for Node.js @@ -143,25 +143,4 @@ Longer example with CAS proxy (also see the [wiki](https://github.com/joshchan/n ## License -(The MIT License) - -Copyright (c) 2011 Casey Banner <kcbanner@gmail.com> - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -'Software'), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file +Moved to LICENSE.md diff --git a/lib/cas.js b/lib/cas.js index 3a49580..a671a59 100644 --- a/lib/cas.js +++ b/lib/cas.js @@ -22,7 +22,8 @@ var cheerio = require('cheerio'); /** - * Initialize CAS with the given `options`. + * Initialize CAS w + ith the given `options`. * * @param {Object} options * { @@ -375,8 +376,7 @@ CAS.prototype.validate = function(ticket, callback, service, renew) if (ticket.indexOf('PT-') == 0) { validate_path = 'proxyValidate'; } else { - //validate_path = 'serviceValidate'; - validate_path = 'proxyValidate'; + validate_path = 'serviceValidate'; } }