# Run CAS auth automatically

**URL:** <https://forums.rocket.chat/t/run-cas-auth-automatically/6462>\
**Category:** Community Support\
**Created:** [April 9, 2020, 7:54am UTC](https://forums.rocket.chat/t/run-cas-auth-automatically/6462 "2020-04-09T07:54:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jgribonvald](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@jgribonvald](https://forums.rocket.chat/u/jgribonvald)\
**Post date:** [April 9, 2020, 7:54am UTC](https://forums.rocket.chat/t/run-cas-auth-automatically/6462/1 "2020-04-09T07:54:08Z")

</div>

Hi folks,  
I would like to know if there is a way to avoid to show to user the login view and to run automatically the CAS auth ? it’s to avoid that users have to click on CAS auth button uselessly.

With the CAS auth there is not need to use a token in the URL as it’s the CAS ticket which is the token and which is validated with all CAS redirections ! Is there something that would permit to connect users directly or we need to request a token from the Rocket.Chat API before all user auth ? Else how to do it ?

Thanks.

---

<div class="post-metadata">

**Author:** ![5rocketman](https://avatars.discourse-cdn.com/v4/letter/5/ba8739/32.png) [@5rocketman](https://forums.rocket.chat/u/5rocketman)\
**Post date:** [November 8, 2021, 8:50am UTC](https://forums.rocket.chat/t/run-cas-auth-automatically/6462/2 "2021-11-08T08:50:49Z")

</div>

Bump to this in case anyone knows how to do this.

---

<div class="post-metadata">

**Author:** ![dudanogueira](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/dudanogueira/32/2529_2.png) [@dudanogueira](https://forums.rocket.chat/u/dudanogueira)\
**Post date:** [November 8, 2021, 2:14pm UTC](https://forums.rocket.chat/t/run-cas-auth-automatically/6462/3 "2021-11-08T14:14:21Z")

</div>

Ok, for posterity, we’ll move all discussions regarding this thread to:

> [@CAS Logon hanging pop-up](https://forums.rocket.chat/t/cas-logon-hanging-pop-up/12543/):
>
> Description I’m using CAS only login for my rocketchat which is working properly but it has an issue: after pressing Login with Cas, a new pop-up with the rocketchat.domain/\_cas/BJZ6ef4aSDdeEf5C?ticket=c27a3525gg4ggff7f859f4a3a37c is loaded which hangs blank. Only after I close it (be it desktop browser or mobile one) it redirects to my rocketchat interface. It would be nice to press Login CAS and then have it redirect automatically to rocketchat without having to close the pop-up (it’s causi…
