{"id":18360168,"url":"https://github.com/wekan/meteor-accounts-cas","last_synced_at":"2025-04-10T03:29:50.879Z","repository":{"id":149226105,"uuid":"150646750","full_name":"wekan/meteor-accounts-cas","owner":"wekan","description":"CAS login for Wekan. Moved to here from https://github.com/ppoulard/meteor-accounts-cas","archived":false,"fork":false,"pushed_at":"2019-05-22T13:22:26.000Z","size":41,"stargazers_count":0,"open_issues_count":3,"forks_count":2,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-02-15T18:52:03.873Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wekan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-09-27T20:55:26.000Z","updated_at":"2019-07-21T00:54:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"7021439e-41e0-42a1-8229-07b5462c7bcc","html_url":"https://github.com/wekan/meteor-accounts-cas","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wekan%2Fmeteor-accounts-cas","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wekan%2Fmeteor-accounts-cas/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wekan%2Fmeteor-accounts-cas/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wekan%2Fmeteor-accounts-cas/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wekan","download_url":"https://codeload.github.com/wekan/meteor-accounts-cas/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248150518,"owners_count":21055937,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-05T22:26:52.480Z","updated_at":"2025-04-10T03:29:50.853Z","avatar_url":"https://github.com/wekan.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"This is a merged repository of useful forks of: atoy40:accounts-cas\n===================\n([(https://atmospherejs.com/atoy40/accounts-cas](https://atmospherejs.com/atoy40/accounts-cas))\n\n## Essential improvements by ppoulard to atoy40 and xaionaro versions\n\n* Added support of CAS attributes\n\nWith this plugin, you can pick CAS attributes : https://github.com/joshchan/node-cas/wiki/CAS-Attributes\n\nMoved to Wekan GitHub org from from https://github.com/ppoulard/meteor-accounts-cas\n\n## Install\n\n```\ncd ~site\nmkdir packages\ncd packages\ngit clone https://github.com/wekan/meteor-accounts-cas\ncd ~site\nmeteor add wekan:accounts-cas\n```\n\n## Usage\n\nPut CAS settings in Meteor.settings (for example using METEOR_SETTINGS env or --settings) like so:\n\nIf casVersion is not defined, it will assume you use CAS 1.0. (note by xaionaro: option `casVersion` seems to be just ignored in the code, ATM).\n\nServer side settings:\n\n```\nMeteor.settings = {\n    \"cas\": {\n        \"baseUrl\": \"https://cas.example.com/cas\",\n        \"autoClose\": true,\n        \"validateUrl\":\"https://cas.example.com/cas/p3/serviceValidate\",\n        \"casVersion\": 3.0,\n        \"attributes\": {\n            \"debug\" : true\n        }\n    },\n}\n```\n\nCAS `attributes` settings :\n\n* `attributes`: by default `{}` : all default values below will apply\n* *  `debug` : by default `false` ; `true` will print to the server console the CAS attribute names to map, the CAS attributes values retrieved, if necessary the new user account created, and finally the user to use\n* *  `id` : by default, the CAS user is used for the user account, but you can specified another CAS attribute\n* *  `firstname` : by default `cas:givenName` ; but you can use your own CAS attribute\n* *  `lastname` : by default `cas:sn` (respectively) ; but you can use your own CAS attribute\n* *  `fullname` : by default unused, but if you specify your own CAS attribute, it will be used instead of the `firstname` + `lastname`\n* *  `mail` : by default `cas:mail`\n\nClient side settings:\n\n```\nMeteor.settings = {\n\t\"public\": {\n\t\t\"cas\": {\n\t\t\t\"loginUrl\": \"https://cas.example.com/login\",\n\t\t\t\"serviceParam\": \"service\",\n\t\t\t\"popupWidth\": 810,\n\t\t\t\"popupHeight\": 610,\n\t\t\t\"popup\": true,\n\t\t}\n\t}\n}\n```\n\n`proxyUrl` is not required. Setup [ROOT_URL](http://docs.meteor.com/api/core.html#Meteor-absoluteUrl) environment variable instead.\n\nThen, to start authentication, you have to call the following method from the client (for example in a click handler) :\n\n```\nMeteor.loginWithCas([callback]);\n```\n\nIt must open a popup containing you CAS login form or redirect to the CAS login form (depending on \"popup\" setting).\n\nIf popup is disabled (== false), then it's required to execute `Meteor.initCas([callback])` in `Meteor.startup` of the client side. ATM, `Meteor.initCas()` completes authentication.\n\n## Examples\n\n* [https://devel.mephi.ru/dyokunev/start-mephi-ru](https://devel.mephi.ru/dyokunev/start-mephi-ru)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwekan%2Fmeteor-accounts-cas","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwekan%2Fmeteor-accounts-cas","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwekan%2Fmeteor-accounts-cas/lists"}