# SimpleSAML login

**URL:** https://meta.discourse.org/t/simplesaml-login/255632
**Category:** SSO
**Created:** [February 19, 2023, 9:40pm UTC](https://meta.discourse.org/t/simplesaml-login/255632 "2023-02-19T21:40:29Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![stormfinger](https://avatars.discourse-cdn.com/v4/letter/s/ed8c4c/32.png) [@stormfinger](https://meta.discourse.org/u/stormfinger)
#### Post date: [February 19, 2023, 9:40pm UTC](https://meta.discourse.org/t/simplesaml-login/255632/1 "2023-02-19T21:40:29Z")

</div>

hi  
ive got two problems…  
previous lad made SAML possible now i reinstalled discourse that is in docker and i got saml plugin running and im welcomed to login screen but after login on saml im redirected to blank

“correct domain”/auth/saml/callback and it seems i even cant find where are logs

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [February 19, 2023, 11:07pm UTC](https://meta.discourse.org/t/simplesaml-login/255632/2 "2023-02-19T23:07:50Z")

</div>

Your can log in to your forum at /u/admin-login.

Your should then be able to find the logs at the admin page.

---

<div class="post-metadata">

### Author: ![stormfinger](https://avatars.discourse-cdn.com/v4/letter/s/ed8c4c/32.png) [@stormfinger](https://meta.discourse.org/u/stormfinger)
#### Post date: [February 20, 2023, 9:19pm UTC](https://meta.discourse.org/t/simplesaml-login/255632/3 "2023-02-20T21:19:44Z")

</div>

hi  
i found logs in /logs URL 🙂 but /u/user got me there. i dont know what is missing in settings that LDAP user cannot neither register nor login… i tried both but i get empty page..here is log …in settings i didnt provide fields that should match it says itll will be automatic would that be cousing a problem? password and user are correct i tried directly loging in LDAP.. below are logs traces

 ![forumLogIn](https://global.discourse-cdn.com/meta/original/4X/b/1/c/b1cdefdcdb164fde06722d278d37100d7c2ad5f7.png)

---

<div class="post-metadata">

### Author: ![stormfinger](https://avatars.discourse-cdn.com/v4/letter/s/ed8c4c/32.png) [@stormfinger](https://meta.discourse.org/u/stormfinger)
#### Post date: [February 27, 2023, 8:39am UTC](https://meta.discourse.org/t/simplesaml-login/255632/4 "2023-02-27T08:39:54Z")

</div>

SAML was previously working when site wasnt build in docker so i guess ..i need to set up additional settings in SAML but i cant find documentation on how to proceed

---

<div class="post-metadata">

### Author: ![stormfinger](https://avatars.discourse-cdn.com/v4/letter/s/ed8c4c/32.png) [@stormfinger](https://meta.discourse.org/u/stormfinger)
#### Post date: [March 2, 2023, 10:46am UTC](https://meta.discourse.org/t/simplesaml-login/255632/5 "2023-03-02T10:46:55Z")

</div>

i didnt proprerly configure SAML plugin to use PUT method as i saw now in their github… now i dont send certificate for discourse from our SAML site. is that a must? previously it was working without certificate. is discord SAML proper plugin to login users from remote simpleSAMLphp?

---

<div class="post-metadata">

### Author: ![stormfinger](https://avatars.discourse-cdn.com/v4/letter/s/ed8c4c/32.png) [@stormfinger](https://meta.discourse.org/u/stormfinger)
#### Post date: [April 17, 2023, 5:07pm UTC](https://meta.discourse.org/t/simplesaml-login/255632/6 "2023-04-17T17:07:29Z")

</div>

hi  
im still having issues logging users with SAML in discourse this time i received following error on screen.

Oops

The software powering this discussion forum encountered an unexpected problem. We apologize for the inconvenience.

Detailed information about the error was logged, and an automatic notification generated. We’ll take a look at it.

```plaintext
Message (2 copies reported)

OpenSSL::X509::CertificateError (PEM_read_bio_X509)
lib/middleware/omniauth_bypass_middleware.rb:53:in `call'
lib/content_security_policy/middleware.rb:12:in `call'
lib/middleware/anonymous_cache.rb:369:in `call'
config/initializers/100-quiet_logger.rb:20:in `call'
config/initializers/100-silence_logger.rb:29:in `call'
lib/middleware/enforce_hostname.rb:24:in `call'
lib/middleware/request_tracker.rb:228:in `call'

Backtrace

ruby-saml (1.13.0) lib/onelogin/ruby-saml/settings.rb:186:in `initialize'
ruby-saml (1.13.0) lib/onelogin/ruby-saml/settings.rb:186:in `new'
ruby-saml (1.13.0) lib/onelogin/ruby-saml/settings.rb:186:in `get_idp_cert'
ruby-saml (1.13.0) lib/onelogin/ruby-saml/response.rb:862:in `validate_signature'
ruby-saml (1.13.0) lib/onelogin/ruby-saml/response.rb:403:in `block in validate'
ruby-saml (1.13.0) lib/onelogin/ruby-saml/response.rb:403:in `all?'
ruby-saml (1.13.0) lib/onelogin/ruby-saml/response.rb:403:in `validate'
ruby-saml (1.13.0) lib/onelogin/ruby-saml/response.rb:79:in `is_valid?'
omniauth-saml (1.9.0) lib/omniauth/strategies/saml.rb:132:in `handle_response'
omniauth-saml (1.9.0) lib/omniauth/strategies/saml.rb:49:in `block in callback_phase'

Env

```

---

<div class="post-metadata">

### Author: ![stormfinger](https://avatars.discourse-cdn.com/v4/letter/s/ed8c4c/32.png) [@stormfinger](https://meta.discourse.org/u/stormfinger)
#### Post date: [April 23, 2023, 12:02am UTC](https://meta.discourse.org/t/simplesaml-login/255632/7 "2023-04-23T00:02:48Z")

</div>

i specificaly added certificat to saml response and put public part into SAML plugin. the public part i created with openssl and now i get error certificate error.. i think main problem here is dealing with certificates.. but im unsure how to proceed ..any help would be very welcome.

---

<div class="post-metadata">

### Author: ![stormfinger](https://avatars.discourse-cdn.com/v4/letter/s/ed8c4c/32.png) [@stormfinger](https://meta.discourse.org/u/stormfinger)
#### Post date: [April 23, 2023, 2:18am UTC](https://meta.discourse.org/t/simplesaml-login/255632/8 "2023-04-23T02:18:01Z")

</div>

got it working 🙂 it was certificate problem …

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [May 23, 2023, 2:18am UTC](https://meta.discourse.org/t/simplesaml-login/255632/9 "2023-05-23T02:18:32Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
