# Admin login with discord sso enabled and forced

**URL:** https://meta.discourse.org/t/admin-login-with-discord-sso-enabled-and-forced/208706
**Category:** Support
**Created:** [November 9, 2021, 8:00pm UTC](https://meta.discourse.org/t/admin-login-with-discord-sso-enabled-and-forced/208706 "2021-11-09T20:00:20Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Wurzelseppi](https://avatars.discourse-cdn.com/v4/letter/w/eada6e/32.png) [@Wurzelseppi](https://meta.discourse.org/u/Wurzelseppi)
#### Post date: [November 9, 2021, 8:00pm UTC](https://meta.discourse.org/t/admin-login-with-discord-sso-enabled-and-forced/208706/1 "2021-11-09T20:00:20Z")

</div>

Hi there,

I want to restrict access to discourse only to users loging in over discord. A user should be directed directly to discord to login and get redirected from there back.  
That´s easy so far. But I need to have some Admin account enabled and available, that I can use directly. Thought of something like “email login” triggered from console like “rake send-me-the-holy-link-please” or something like this.

1. Is this possible over console
2. Anyone has a better idea ? 🙂

Thanks guys and Cheers,

Wurzelseppi

---

<div class="post-metadata">

### Author: ![IAmGav](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/iamgav/32/235598_2.png) [@IAmGav](https://meta.discourse.org/u/IAmGav)
#### Post date: [November 9, 2021, 8:06pm UTC](https://meta.discourse.org/t/admin-login-with-discord-sso-enabled-and-forced/208706/2 "2021-11-09T20:06:59Z")

</div>

any admin can use [yoursite.com](http://yoursite.com/u/admin-login) to login to the site even if sso is on

---

<div class="post-metadata">

### Author: ![Wurzelseppi](https://avatars.discourse-cdn.com/v4/letter/w/eada6e/32.png) [@Wurzelseppi](https://meta.discourse.org/u/Wurzelseppi)
#### Post date: [November 9, 2021, 8:13pm UTC](https://meta.discourse.org/t/admin-login-with-discord-sso-enabled-and-forced/208706/3 "2021-11-09T20:13:20Z")

</div>

Anyone have a better idea ?

That´s much too easy 😃

Thank´s man !.. That does the trick!

And I was so proud of my holy mail idea 😃

---

<div class="post-metadata">

### Author: ![osioke](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/osioke/32/238946_2.png) [@osioke](https://meta.discourse.org/u/osioke)
#### Post date: [November 10, 2021, 9:32am UTC](https://meta.discourse.org/t/admin-login-with-discord-sso-enabled-and-forced/208706/4 "2021-11-10T09:32:51Z")

</div>


