# Nextcloud and Microsoft ADFS

**URL:** <https://help.nextcloud.com/t/nextcloud-and-microsoft-adfs/25141>\
**Category:** ℹ️ Support\
**Created:** [December 26, 2017, 7:47pm UTC](https://help.nextcloud.com/t/nextcloud-and-microsoft-adfs/25141 "2017-12-26T19:47:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![badwu](https://help.nextcloud.com/letter_avatar/badwu/32/6_449c533f586939b6e5f246632a46421f.png) [@badwu](https://help.nextcloud.com/u/badwu)\
**Post date:** [December 26, 2017, 7:47pm UTC](https://help.nextcloud.com/t/nextcloud-and-microsoft-adfs/25141/1 "2017-12-26T19:47:49Z")

</div>

Hi Guys,  
i have try to configure Microsoft ADFS as IDP for us. I used the app “user\_saml”. In the newest documenation of nextcloud afs is listed as supportet.

Here my current configuration of the saml\_user:

> **[2017 12 26 20 34 12 nextcloud saml adfs2012r2 hosted at ImgBB](https://ibb.co/kS7JCHc)**
>
> Image 2017 12 26 20 34 12 nextcloud saml adfs2012r2 hosted in ImgBB

> **[2017 12 26 20 39 18 nextcloud saml adfs2012r2 hosted at ImgBB](https://ibb.co/RNywV31)**
>
> Image 2017 12 26 20 39 18 nextcloud saml adfs2012r2 hosted in ImgBB

> **[2017 12 26 20 39 57 nextcloud saml adfs2012r2 hosted at ImgBB](https://ibb.co/LYdw984)**
>
> Image 2017 12 26 20 39 57 nextcloud saml adfs2012r2 hosted in ImgBB

> **[2017 12 26 20 40 40 nextcloud saml adfs2012r2 hosted at ImgBB](https://ibb.co/9rV8Wg4)**
>
> Image 2017 12 26 20 40 40 nextcloud saml adfs2012r2 hosted in ImgBB

> **[2017 12 26 20 40 23 nextcloud saml adfs2012r2 hosted at ImgBB](https://ibb.co/sVndWCc)**
>
> Image 2017 12 26 20 40 23 nextcloud saml adfs2012r2 hosted in ImgBB

At the Moment i open the nextcloud URL and will redirected to the ADFS Login page. I entered some test credentials (Domain\username or [username@domain.de](mailto:username@domain.de)). But in all cases i get "on error occur… please contact your System Administrator.

I have already searched and found the following links:

> <https://github.com/nextcloud/user_saml/issues/23>
>
> Hi,
> 
> I've seen you support SAML and immediately wanted to enable it - but failed….
> 
> I've tried to configure MS ADFS 3 as IDP with user\_saml as SP and got the redirect working and as far as I can see the authentication was granted from the server but I only see "invalid\_response Not authenticated" in the browser.
> 
> Help like how to configure the claim rule on an ADFS setup would be appreciated.
> e.g. http://www.cisco.com/c/en/us/support/docs/unified-communications/unified-communications-manager-callmanager/118771-configure-samlsso-00.html
> 
> Also enabling to import IDP metadata to set config values correctly would be nice.
> 
> Cheers,
> Michael

> [@SAML authentication](https://help.nextcloud.com/t/saml-authentication/3719):
>
> Hello! I’m trying to configure SAML authentication in nextcloud 10, but haven’t any idea how to do this. Could you please give me some manual or documentation about SAML app?

But in both threads are missing some configuration steps for ADFS. So i try some different configurations, but it do not work. Can anyone describe which (configurations steps) in ADFS are necessary?

Nextcloud version (eg, 10.0.2): 12.0.4  
PHP version (eg, 5.6): 7.1  
ADFS: Windows Server 2012R2 Standard

/Daniel

---

<div class="post-metadata">

**Author:** ![RobinD](https://help.nextcloud.com/letter_avatar/robind/32/6_449c533f586939b6e5f246632a46421f.png) [@RobinD](https://help.nextcloud.com/u/RobinD)\
**Post date:** [January 8, 2018, 11:04am UTC](https://help.nextcloud.com/t/nextcloud-and-microsoft-adfs/25141/2 "2018-01-08T11:04:22Z")

</div>

I need to make this work too for my corp. I actually need to get started yet. If you get any further please let me know and mention me in the post. Should I stumble upon something I will post it here.

---

<div class="post-metadata">

**Author:** ![tah](https://help.nextcloud.com/letter_avatar/tah/32/6_449c533f586939b6e5f246632a46421f.png) [@tah](https://help.nextcloud.com/u/tah)\
**Post date:** [March 10, 2018, 3:33pm UTC](https://help.nextcloud.com/t/nextcloud-and-microsoft-adfs/25141/3 "2018-03-10T15:33:24Z")

</div>

Hi Daniel,

did you find a working configuration. Please can you or anyone else describe the different settings of the sso & saml app considering Microsoft AD FS?

Moreover i want to know, if it is possible to use two different authentication mechanism simultaneously, that means for example LDAP/forms based authentication for external users and AD FS for internal users.

Does it give a detailed documentation/howto for that?

Regards  
Torsten

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 2, 2024, 8:38am UTC](https://help.nextcloud.com/t/nextcloud-and-microsoft-adfs/25141/4 "2024-12-02T08:38:49Z")

</div>



---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 9, 2024, 1:44pm UTC](https://help.nextcloud.com/t/nextcloud-and-microsoft-adfs/25141/5 "2024-12-09T13:44:46Z")

</div>


