{"action":"created","issue":{"url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/12873","repository_url":"https://api.github.com/repos/RocketChat/Rocket.Chat","labels_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/12873/labels{/name}","comments_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/12873/comments","events_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/12873/events","html_url":"https://github.com/RocketChat/Rocket.Chat/issues/12873","id":388285788,"node_id":"MDU6SXNzdWUzODgyODU3ODg=","number":12873,"title":"CAS - Improvement Suggestion","user":{"login":"fabien4455","id":22091839,"node_id":"MDQ6VXNlcjIyMDkxODM5","avatar_url":"https://avatars3.githubusercontent.com/u/22091839?v=4","gravatar_id":"","url":"https://api.github.com/users/fabien4455","html_url":"https://github.com/fabien4455","followers_url":"https://api.github.com/users/fabien4455/followers","following_url":"https://api.github.com/users/fabien4455/following{/other_user}","gists_url":"https://api.github.com/users/fabien4455/gists{/gist_id}","starred_url":"https://api.github.com/users/fabien4455/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabien4455/subscriptions","organizations_url":"https://api.github.com/users/fabien4455/orgs","repos_url":"https://api.github.com/users/fabien4455/repos","events_url":"https://api.github.com/users/fabien4455/events{/privacy}","received_events_url":"https://api.github.com/users/fabien4455/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-12-06T16:13:49Z","updated_at":"2018-12-17T09:16:50Z","closed_at":"2018-12-13T19:21:31Z","author_association":"NONE","body":"### Description:\r\n\r\nCAS is a tool for authenticating users on an application. Actually on Rocket.Chat it's also used for creating accounts, but, there is a problem. We have users on Rocket.Chat. \r\n\r\nWe want to use CAS for authentificate existing users, so, I have added to users the object CAS in service object like this :\r\n\r\n ![image](https://user-images.githubusercontent.com/22091839/49595794-1694a700-f979-11e8-8898-b834202d1061.png)\r\n\r\nIt's working great I can now login with CAS authentification.... Without doing that I had the error message : Account is already existing..\r\n\r\nThe big problem, we have CAS users that we don't want to access the chat, but with CAS activated they can create an account without our approval.  \r\n\r\nThe accounts are actually created by LDAP on a specific place... On CAS we have all users.\r\n\r\n### Steps to reproduce:\r\n\r\nUse CAS button to login it works with existing account... \r\nUse CAS button to register it also works... but I don't want that. \r\n\r\n### Expected behavior:\r\n\r\nRocket Chat tell : Creating account by CAS is currently disabled by administrator. You can only login in.\r\n\r\n### Actual behavior:\r\n\r\nRocketChat create an account with any CAS... \r\n\r\n### Server Setup Information:\r\n\r\n- Version of Rocket.Chat Server: 0.71.1\r\n- Operating System: Ubuntu 18.04\r\n- Deployment Method: docker ( docker-compose.yml )\r\n- Number of Running Instances: 1\r\n- DB Replicaset Oplog:\r\n- NodeJS Version: v8.11.3\r\n- MongoDB Version: 3.4.18...\r\n\r\n\r\n### I suggest you and I would like that you add a setting like : Disable CAS Register in CAS settings. To only have CAS login. \r\n\r\nThank's"},"comment":{"url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/comments/447773665","html_url":"https://github.com/RocketChat/Rocket.Chat/issues/12873#issuecomment-447773665","issue_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/12873","id":447773665,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0Nzc3MzY2NQ==","user":{"login":"fabien4455","id":22091839,"node_id":"MDQ6VXNlcjIyMDkxODM5","avatar_url":"https://avatars3.githubusercontent.com/u/22091839?v=4","gravatar_id":"","url":"https://api.github.com/users/fabien4455","html_url":"https://github.com/fabien4455","followers_url":"https://api.github.com/users/fabien4455/followers","following_url":"https://api.github.com/users/fabien4455/following{/other_user}","gists_url":"https://api.github.com/users/fabien4455/gists{/gist_id}","starred_url":"https://api.github.com/users/fabien4455/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabien4455/subscriptions","organizations_url":"https://api.github.com/users/fabien4455/orgs","repos_url":"https://api.github.com/users/fabien4455/repos","events_url":"https://api.github.com/users/fabien4455/events{/privacy}","received_events_url":"https://api.github.com/users/fabien4455/received_events","type":"User","site_admin":false},"created_at":"2018-12-17T09:16:50Z","updated_at":"2018-12-17T09:16:50Z","author_association":"NONE","body":"Where can I open a feature request ? ... "}}
{"actor":{"display_login":"fabien4455"}}