# Unable to get SAML to work after upgrade

**URL:** <https://forum.opensearch.org/t/unable-to-get-saml-to-work-after-upgrade/10005>\
**Category:** OpenDistro\
**Tags:** troubleshoot, configure, upgrade\
**Created:** [June 21, 2022, 3:57pm UTC](https://forum.opensearch.org/t/unable-to-get-saml-to-work-after-upgrade/10005 "2022-06-21T15:57:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![msylvestre](https://avatars.discourse-cdn.com/v4/letter/m/cab0a1/32.png) [@msylvestre](https://forum.opensearch.org/u/msylvestre)\
**Post date:** [June 21, 2022, 3:57pm UTC](https://forum.opensearch.org/t/unable-to-get-saml-to-work-after-upgrade/10005/1 "2022-06-21T15:57:43Z")

</div>

Hello, I’m having issues configuring SAML with Azure IDP. It was working before, but it broke after upgrading my stack from 7.6.1 to 7.10.2. Now I can’t get it to work. Here is my saml config:

```auto
  saml_auth_domain:
	http_enabled: true
	order: 1
	http_authenticator:
	  type: saml
	  challenge: true
	  config:
		idp:
		  metadata_url: https://login.microsoftonline.com/026419...9bd3-5ae9a9aa02fa/federationmetadata/2007-06/federationmetadata.xml?appid=2531...b141
		  entity_id: https://sts.windows.net/0264190...aa02fa/
		sp:
		  entity_id: kib-saml
		kibana_url: https://C04-KIB801-01:5601/
		roles_key: "Role"
		exchange_key: bdaaa...165754
	authentication_backend:
	  type: noop

```

Applying the config is successful, but I get the following error in the logs:

```auto
[2022-06-21T11:45:46,575][ERROR][o.o.s.m.r.i.AbstractReloadingMetadataResolver] [C04-ELS801-01] Metadata Resolver SamlFilesystemMetadataResolver com.amazon.dlic.auth.http.saml.HTTPSamlAuthenticator_9: Error occurred while attempting to refresh metadata from '/etc/elasticsearch/https:/login.microsoftonline.com/0264...a02fa/federationmetadata/2007-06/federationmetadata.xml?appid=253126ae-3...bb141'
[2022-06-21T11:45:46,576][INFO][o.o.s.m.r.i.AbstractReloadingMetadataResolver] [C04-ELS801-01] Metadata Resolver SamlFilesystemMetadataResolver com.amazon.dlic.auth.http.saml.HTTPSamlAuthenticator_9: Next refresh cycle for metadata provider '/etc/elasticsearch/https:/login.microsoftonline.com/02641...02fa/federationmetadata/2007-06/federationmetadata.xml?appid=253126...b141' will occur on '2022-06-21T15:50:46.575Z' ('2022-06-21T11:50:46.575-04:00' local time)

```

What I find odd is **/etc/elasticsearch/https:/login.microsoftonline.com** Anyone has any idea?

Thank you,

---

<div class="post-metadata">

**Author:** ![kris](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/kris/32/2208_2.png) [@kris](https://forum.opensearch.org/u/kris)\
**Post date:** [February 7, 2023, 6:45pm UTC](https://forum.opensearch.org/t/unable-to-get-saml-to-work-after-upgrade/10005/2 "2023-02-07T18:45:48Z")

</div>

Closed on February 7, 2023, 6:45pm UTC


