<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Multiple Identity providers in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/multiple-identity-providers/m-p/314732#M1733</link>
    <description>&lt;P&gt;Hello all,&lt;/P&gt;
&lt;P&gt;Has anyone successfully configured multiple identity providers for authentication with Nuxeo or does anyone have a clue as to if it is possible?
My use case is that I have some users that will need to be able to authenticate with Azure AD and others via Okta. Any help or insight would be greatly appreciated.&lt;/P&gt;</description>
    <pubDate>Tue, 10 Mar 2020 18:16:22 GMT</pubDate>
    <dc:creator>Robert_Smith</dc:creator>
    <dc:date>2020-03-10T18:16:22Z</dc:date>
    <item>
      <title>Multiple Identity providers</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/multiple-identity-providers/m-p/314732#M1733</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;
&lt;P&gt;Has anyone successfully configured multiple identity providers for authentication with Nuxeo or does anyone have a clue as to if it is possible?
My use case is that I have some users that will need to be able to authenticate with Azure AD and others via Okta. Any help or insight would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2020 18:16:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/multiple-identity-providers/m-p/314732#M1733</guid>
      <dc:creator>Robert_Smith</dc:creator>
      <dc:date>2020-03-10T18:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Identity providers</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/multiple-identity-providers/m-p/314733#M1734</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;You need to setup the &lt;A href="https://doc.nuxeo.com/nxdoc/saml-20-authentication/"&gt;SAML2 addon&lt;/A&gt; and follow the documentation. Luckily, we use it internally, so all you need for Okta is to create a new app in the Okta Admin, setup the user field mapping and  create in Nuxeo an XML  extension like :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;require&amp;gt;org.nuxeo.ecm.platform.ui.web.auth.WebEngineConfig&amp;lt;/require&amp;gt;
&amp;lt;require&amp;gt;org.nuxeo.ecm.platform.ui.web.auth.defaultConfig&amp;lt;/require&amp;gt;
&amp;lt;extension target="org.nuxeo.ecm.platform.ui.web.auth.service.PluggableAuthenticationService" point="authenticators"&amp;gt;

&amp;lt;authenticationPlugin name="MY_OKTA_CONFIG" enabled="true" class="org.nuxeo.ecm.platform.auth.saml.SAMLAuthenticationProvider"&amp;gt;
&amp;lt;loginModulePlugin&amp;gt;Trusting_LM&amp;lt;/loginModulePlugin&amp;gt;
&amp;lt;needStartingURLSaving&amp;gt;true&amp;lt;/needStartingURLSaving&amp;gt;
&amp;lt;parameters&amp;gt;
&amp;lt;parameter name="name"&amp;gt;Okta&amp;lt;/parameter&amp;gt;
&amp;lt;!-- Uri of the metadata --&amp;gt;
&amp;lt;parameter name="metadata"&amp;gt;https://.........../sso/saml/metadata&amp;lt;/parameter&amp;gt;
&amp;lt;!-- Request timeout in seconds --&amp;gt;
&amp;lt;parameter name="timeout"&amp;gt;5&amp;lt;/parameter&amp;gt;
&amp;lt;/parameters&amp;gt;
&amp;lt;/authenticationPlugin&amp;gt;
&amp;lt;/extension&amp;gt;

&amp;lt;extension target="org.nuxeo.ecm.platform.ui.web.auth.service.PluggableAuthenticationService" point="chain"&amp;gt;
&amp;lt;authenticationChain&amp;gt;
&amp;lt;plugins&amp;gt;
&amp;lt;plugin&amp;gt;BASIC_AUTH&amp;lt;/plugin&amp;gt;
&amp;lt;plugin&amp;gt;FORM_AUTH&amp;lt;/plugin&amp;gt;
&amp;lt;plugin&amp;gt;MY_OKTA_CONFIG&amp;lt;/plugin&amp;gt;
&amp;lt;/authenticationChain&amp;gt;
&amp;lt;/extension&amp;gt;

&amp;lt;extension target="org.nuxeo.usermapper.service.UserMapperComponent" point="mapper"&amp;gt;
&amp;lt;mapper name="saml" type="js"&amp;gt;
&amp;lt;mapperScript&amp;gt;
searchAttributes.put("username", userObject.getNameID().getValue());
userAttributes.put("email", userObject.getNameID().getValue());
userAttributes.put("firstName", userObject.getAttributeByName("firstName").getAttributeValues().get(0).value);
userAttributes.put("lastName", userObject.getAttributeByName("lastName").getAttributeValues().get(0).value);
  &amp;lt;/mapperScript&amp;gt;
&amp;lt;/extension&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;In this example, you'll get the basic auth and the okta auth, with the login screen.&lt;/P&gt;
&lt;P&gt;Good luck&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 08:56:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/multiple-identity-providers/m-p/314733#M1734</guid>
      <dc:creator>Gregory_Carlin</dc:creator>
      <dc:date>2020-03-11T08:56:32Z</dc:date>
    </item>
  </channel>
</rss>

