# Discourse-saml: There was an error authorizing your account

**URL:** <https://meta.discourse.org/t/discourse-saml-there-was-an-error-authorizing-your-account/54469>\
**Category:** SSO\
**Created:** [19 Dicembre 2016, 4:55am UTC](https://meta.discourse.org/t/discourse-saml-there-was-an-error-authorizing-your-account/54469 "2016-12-19T04:55:37Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [20 Dicembre 2016, 3:35am UTC](https://meta.discourse.org/t/discourse-saml-there-was-an-error-authorizing-your-account/54469/4 "2016-12-20T03:35:06Z")

</div>

> [@skoota](#):
>
> We are running Discourse over HTTPS with a Let’s Encrypt certificate (although the exact issuer is irrelevant, the fact that it’s running over HTTPS is important). As per the first message in this thread, the callback from the iDP was being sent to the HTTP version of our site, not HTTPS. Despite changing all the settings I could find in Discourse to force HTTPS it still didn’t want to cooperate, and I couldn’t find an easy way change the Discourse.base\_url to be HTTPS, rather than HTTP.

This is almost certainly incorrect.

---

_[View the full topic](https://meta.discourse.org/t/discourse-saml-there-was-an-error-authorizing-your-account/54469)._
