# Is there a way to turn on additional logging for SAML authentication?

**URL:** <https://talk.getindico.io/t/is-there-a-way-to-turn-on-additional-logging-for-saml-authentication/3565>\
**Category:** General Discussion\
**Created:** [June 9, 2024, 4:10am UTC](https://talk.getindico.io/t/is-there-a-way-to-turn-on-additional-logging-for-saml-authentication/3565 "2024-06-09T04:10:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dwindibank](https://talk.getindico.io/user_avatar/talk.getindico.io/dwindibank/32/603_2.png) [@dwindibank](https://talk.getindico.io/u/dwindibank)\
**Post date:** [June 9, 2024, 4:10am UTC](https://talk.getindico.io/t/is-there-a-way-to-turn-on-additional-logging-for-saml-authentication/3565/1 "2024-06-09T04:10:08Z")

</div>

Hello,

I’m configuring SALM authentication (we’re using Okta as our IdP), and I keep getting the error:

> # Bad Request
> 
> Required argument missing: 400 Bad Request: The browser (or proxy) sent a request that this server could not understand.

The error is on Indico’s /login/ page after the IdP sends the SAML response. I don’t see any extra details in the log file, just what’s on the login page. Is there someway to turn on more verbose logging so that I can see where in the code the error is coming from?

Thanks!  
Dustin.

---

<div class="post-metadata">

**Author:** ![ThiefMaster](https://talk.getindico.io/user_avatar/talk.getindico.io/thiefmaster/32/509_2.png) [@ThiefMaster](https://talk.getindico.io/u/ThiefMaster)\
**Post date:** [June 9, 2024, 9:13am UTC](https://talk.getindico.io/t/is-there-a-way-to-turn-on-additional-logging-for-saml-authentication/3565/2 "2024-06-09T09:13:46Z")

</div>

if there’s nothing in indico.log it sounds like the error happens outside the usual flask processing logic. You can add `logto = /tmp/usgi.log` to your `/etc/uwsgi-indico.ini` to get logging output from uWSGI as well.

PS: Doesn’t Okta also support OIDC? If yes, that would be the much better choice since it’s way easier to use than SAML.

---

<div class="post-metadata">

**Author:** ![dwindibank](https://talk.getindico.io/user_avatar/talk.getindico.io/dwindibank/32/603_2.png) [@dwindibank](https://talk.getindico.io/u/dwindibank)\
**Post date:** [June 9, 2024, 7:23pm UTC](https://talk.getindico.io/t/is-there-a-way-to-turn-on-additional-logging-for-saml-authentication/3565/3 "2024-06-09T19:23:11Z")

</div>

Thanks! I’ll try that.

Okta does support OIDC as well. I’ll try that as well.
