<?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>question Re: Setting User Login for my Apache NiFi in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Setting-User-Login-for-my-Apache-NiFi/m-p/384521#M245401</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/109258"&gt;@MvZ&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The "file-login-provider" login identity-provider has never existed in any out-of-the-box release of Apache NiFi.&lt;BR /&gt;&lt;BR /&gt;If you have created or downloaded some custom implementation of this provider. You would need to consult with that author in getting it to work.&lt;BR /&gt;Where did you obtain this provider from and what process did you follow to add it to your NiFi installation?&lt;BR /&gt;&lt;BR /&gt;The exception you have shared simply tells you that during startup NiFi is loading the &lt;STRONG&gt;nifi.properties&lt;/STRONG&gt; file and the property "&lt;SPAN&gt;&lt;STRONG&gt;nifi.security.user.login.identity.provider&lt;/STRONG&gt;" is configured with "&lt;STRONG&gt;file-login-provider&lt;/STRONG&gt;"; however, when NiFi parsed the &lt;STRONG&gt;login-identity-providers.xml&lt;/STRONG&gt; configuration file, no provider with:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&amp;lt;identifier&amp;gt;file-login-provider&amp;lt;/identifier&amp;gt;&lt;/PRE&gt;&lt;P&gt;was found in that configuration file.&lt;BR /&gt;&lt;BR /&gt;I can't provide any guidance on this provider as I was unable to find anything online about what I am expecting is a custom add-on provider.&lt;BR /&gt;&lt;BR /&gt;The out-of-the-box available authentication providers are found in the NiFi documentation here:&lt;BR /&gt;Apache NiFi 1.2x versions: &lt;A href="https://nifi.apache.org/docs/nifi-docs/html/administration-guide.html#user_authentication" target="_blank" rel="noopener"&gt;https://nifi.apache.org/docs/nifi-docs/html/administration-guide.html#user_authentication&lt;/A&gt;&lt;BR /&gt;Apache NiFi 2.x versions:&amp;nbsp;&lt;A href="https://nifi.apache.org/documentation/nifi-2.0.0-M1/html/administration-guide.html#user_authentication" target="_blank" rel="noopener"&gt;https://nifi.apache.org/documentation/nifi-2.0.0-M1/html/administration-guide.html#user_authentication&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;NiFi Authentication and Authorization are two different configurations and independent configurations.&lt;BR /&gt;Once you have chosen how you want to handle user authentication, you then move on to setting up user authorization:&lt;BR /&gt;&lt;A href="https://nifi.apache.org/docs/nifi-docs/html/administration-guide.html#multi-tenant-authorization" target="_blank" rel="noopener"&gt;https://nifi.apache.org/docs/nifi-docs/html/administration-guide.html#multi-tenant-authorization&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;For file based authorization, NiFi offers two providers:&lt;BR /&gt;1. Older deprecated&amp;nbsp;&lt;A href="https://nifi.apache.org/docs/nifi-docs/html/administration-guide.html#fileauthorizer" target="_blank" rel="noopener"&gt;FileAuthorizer&lt;/A&gt;&lt;BR /&gt;2. The current&amp;nbsp;&lt;A href="https://nifi.apache.org/docs/nifi-docs/html/administration-guide.html#standardmanagedauthorizer" target="_blank" rel="noopener"&gt;StandardManagedAuthorizer&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;These providers are configured in the NiFi authorizers.xml file.&amp;nbsp; No direct useer policies get defined in the authorizers.xml file.&amp;nbsp; The FileAuthorizer or the&amp;nbsp;&lt;A href="https://nifi.apache.org/docs/nifi-docs/html/administration-guide.html#fileaccesspolicyprovider" target="_blank" rel="noopener"&gt;FileAccessPolicyProvider&lt;/A&gt;&amp;nbsp;referenced by the StandardManagedAuthorizer will generate the initial &lt;STRONG&gt;authorizations.xml&lt;/STRONG&gt; file with the initial admin user configured in the provider chosen.&amp;nbsp; You would not typically manually generate or manipulate this file. Instead you would acces your NiFi's UI using that initial admin and define additional user authorizations directly via the NiFi UI.&lt;/P&gt;&lt;P&gt;Here is an example of what you would have in your authorizers.xml if using the StandardManagedAuthorizer:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&amp;lt;authorizers&amp;gt;
    &amp;lt;userGroupProvider&amp;gt;
        &amp;lt;identifier&amp;gt;file-user-group-provider&amp;lt;/identifier&amp;gt;
        &amp;lt;class&amp;gt;org.apache.nifi.authorization.FileUserGroupProvider&amp;lt;/class&amp;gt;
        &amp;lt;property name="Users File"&amp;gt;./conf/users.xml&amp;lt;/property&amp;gt;
        &amp;lt;property name="Legacy Authorized Users File"&amp;gt;&amp;lt;/property&amp;gt;
        &amp;lt;property name="Initial User Identity 1"&amp;gt;ronald&amp;lt;/property&amp;gt;
    &amp;lt;/userGroupProvider&amp;gt;
    &amp;lt;accessPolicyProvider&amp;gt;
        &amp;lt;identifier&amp;gt;file-access-policy-provider&amp;lt;/identifier&amp;gt;
        &amp;lt;class&amp;gt;org.apache.nifi.authorization.FileAccessPolicyProvider&amp;lt;/class&amp;gt;
        &amp;lt;property name="User Group Provider"&amp;gt;file-user-group-provider&amp;lt;/property&amp;gt;
        &amp;lt;property name="Authorizations File"&amp;gt;./conf/authorizations.xml&amp;lt;/property&amp;gt;
        &amp;lt;property name="Initial Admin Identity"&amp;gt;ronald&amp;lt;/property&amp;gt;
        &amp;lt;property name="Legacy Authorized Users File"&amp;gt;&amp;lt;/property&amp;gt;
        &amp;lt;property name="Node Identity 1"&amp;gt;&amp;lt;/property&amp;gt;
    &amp;lt;/accessPolicyProvider&amp;gt;
    &amp;lt;authorizer&amp;gt;
        &amp;lt;identifier&amp;gt;managed-authorizer&amp;lt;/identifier&amp;gt;
        &amp;lt;class&amp;gt;org.apache.nifi.authorization.StandardManagedAuthorizer&amp;lt;/class&amp;gt;
        &amp;lt;property name="Access Policy Provider"&amp;gt;file-access-policy-provider&amp;lt;/property&amp;gt;
    &amp;lt;/authorizer&amp;gt;
&amp;lt;/authorizers&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you found any of the suggestions/solutions provided helped you with your issue, please take a moment to login and click "&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Accept as Solution&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;" on one or more of them that helped.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;BR /&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 04 Mar 2024 16:09:35 GMT</pubDate>
    <dc:creator>MattWho</dc:creator>
    <dc:date>2024-03-04T16:09:35Z</dc:date>
    <item>
      <title>Setting User Login for my Apache NiFi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Setting-User-Login-for-my-Apache-NiFi/m-p/383609#M244977</link>
      <description>&lt;P&gt;I'm just installing Apache Nifi on linux server with version 1.25 .&lt;/P&gt;&lt;P&gt;this is my nifi.properties :&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;#nifi.security=none
#nifi.security.autoreload.enabled=false
#nifi.security.autoreload.interval=10 secs
#nifi.security.keystore=
#nifi.security.keystoreType=PKCS12
#nifi.security.keystorePasswd=
#nifi.security.keyPasswd=
#nifi.security.truststore=
#nifi.security.truststoreType=PKCS12
#nifi.security.truststorePasswd=
#nifi.security.user.authorizer=
nifi.security.allow.anonymous.authentication=false
nifi.security.user.login.identity.provider=file-login-provider
#nifi.security.user.jws.key.rotation.period=PT1H
#nifi.security.ocsp.responder.url=
#nifi.security.ocsp.responder.certificate=&lt;/LI-CODE&gt;&lt;P&gt;this is my users.xml :&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&amp;gt;
&amp;lt;tenants&amp;gt;
    &amp;lt;users&amp;gt;
        &amp;lt;!-- Add more users as needed --&amp;gt;
        &amp;lt;user identifier="ronald"&amp;gt;
            &amp;lt;identity&amp;gt;ronald&amp;lt;/identity&amp;gt;
            &amp;lt;!-- Replace CREDENTIAL_VALUE with the hashed password --&amp;gt;
            &amp;lt;credential&amp;gt;wyojiYY_R6FGaU-XZKg5K9Mai1NlZXizt_-KGyWsHBs=&amp;lt;/credential&amp;gt;
        &amp;lt;/user&amp;gt;
    &amp;lt;/users&amp;gt;

    &amp;lt;groups&amp;gt;
        &amp;lt;!-- Define groups if needed --&amp;gt;
    &amp;lt;/groups&amp;gt;

    &amp;lt;policies&amp;gt;
        &amp;lt;!-- Define access policies if needed --&amp;gt;
    &amp;lt;/policies&amp;gt;
&amp;lt;/tenants&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;and this is my authorizers.xml :&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    ...
    &amp;lt;policies&amp;gt;
        &amp;lt;!-- Define access policies --&amp;gt;
        &amp;lt;policy identifier="ronald_policy"&amp;gt;
            &amp;lt;resource&amp;gt;/flow&amp;lt;/resource&amp;gt;
            &amp;lt;action&amp;gt;read&amp;lt;/action&amp;gt;
            &amp;lt;action&amp;gt;write&amp;lt;/action&amp;gt;
            &amp;lt;action&amp;gt;delete&amp;lt;/action&amp;gt;
            &amp;lt;user&amp;gt;ronald&amp;lt;/user&amp;gt;
        &amp;lt;/policy&amp;gt;
    &amp;lt;/policies&amp;gt;
&amp;lt;/authorizers&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;I still got an error when starting the app :&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Caused by: java.lang.Exception: The specified login identity provider 'file-login-provider' could not be found.
        at org.apache.nifi.web.security.spring.LoginIdentityProviderFactoryBean.getObject(LoginIdentityProviderFactoryBean.java:131)
        at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:169)
        ... 72 common frames omitted
2024-02-20 13:18:04,241 INFO [Thread-0] org.apache.nifi.NiFi Application Server shutdown started&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 20 Feb 2024 06:32:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Setting-User-Login-for-my-Apache-NiFi/m-p/383609#M244977</guid>
      <dc:creator>MvZ</dc:creator>
      <dc:date>2024-02-20T06:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: Setting User Login for my Apache NiFi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Setting-User-Login-for-my-Apache-NiFi/m-p/383613#M244981</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/109258"&gt;@MvZ&lt;/a&gt;,&amp;nbsp;Welcome to our community! To help you get the best possible answer, I have tagged our NiFi experts&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/80381"&gt;@SAMSAL&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/103151"&gt;@cotopaul&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/31438"&gt;@TimothySpann&lt;/a&gt;&amp;nbsp;who may be able to assist you further.&lt;BR /&gt;&lt;BR /&gt;Please feel free to provide any additional information or details about your query, and we hope that you will find a satisfactory solution to your question.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2024 08:35:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Setting-User-Login-for-my-Apache-NiFi/m-p/383613#M244981</guid>
      <dc:creator>VidyaSargur</dc:creator>
      <dc:date>2024-02-20T08:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: Setting User Login for my Apache NiFi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Setting-User-Login-for-my-Apache-NiFi/m-p/383633#M244989</link>
      <description>&lt;P&gt;file-login-provider is no longer a thing, maybe do single user&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://nifi.apache.org/docs/nifi-docs/html/administration-guide.html#user_authentication" target="_blank"&gt;https://nifi.apache.org/docs/nifi-docs/html/administration-guide.html#user_authentication&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/t5/Support-Questions/Apache-NiFi-user-authentication-creation-of-multiple-users/m-p/378285" target="_blank"&gt;https://community.cloudera.com/t5/Support-Questions/Apache-NiFi-user-authentication-creation-of-multiple-users/m-p/378285&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;nifi.security.user.login.identity.provider=single-user-provider&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 20 Feb 2024 13:55:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Setting-User-Login-for-my-Apache-NiFi/m-p/383633#M244989</guid>
      <dc:creator>TimothySpann</dc:creator>
      <dc:date>2024-02-20T13:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: Setting User Login for my Apache NiFi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Setting-User-Login-for-my-Apache-NiFi/m-p/384521#M245401</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/109258"&gt;@MvZ&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The "file-login-provider" login identity-provider has never existed in any out-of-the-box release of Apache NiFi.&lt;BR /&gt;&lt;BR /&gt;If you have created or downloaded some custom implementation of this provider. You would need to consult with that author in getting it to work.&lt;BR /&gt;Where did you obtain this provider from and what process did you follow to add it to your NiFi installation?&lt;BR /&gt;&lt;BR /&gt;The exception you have shared simply tells you that during startup NiFi is loading the &lt;STRONG&gt;nifi.properties&lt;/STRONG&gt; file and the property "&lt;SPAN&gt;&lt;STRONG&gt;nifi.security.user.login.identity.provider&lt;/STRONG&gt;" is configured with "&lt;STRONG&gt;file-login-provider&lt;/STRONG&gt;"; however, when NiFi parsed the &lt;STRONG&gt;login-identity-providers.xml&lt;/STRONG&gt; configuration file, no provider with:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&amp;lt;identifier&amp;gt;file-login-provider&amp;lt;/identifier&amp;gt;&lt;/PRE&gt;&lt;P&gt;was found in that configuration file.&lt;BR /&gt;&lt;BR /&gt;I can't provide any guidance on this provider as I was unable to find anything online about what I am expecting is a custom add-on provider.&lt;BR /&gt;&lt;BR /&gt;The out-of-the-box available authentication providers are found in the NiFi documentation here:&lt;BR /&gt;Apache NiFi 1.2x versions: &lt;A href="https://nifi.apache.org/docs/nifi-docs/html/administration-guide.html#user_authentication" target="_blank" rel="noopener"&gt;https://nifi.apache.org/docs/nifi-docs/html/administration-guide.html#user_authentication&lt;/A&gt;&lt;BR /&gt;Apache NiFi 2.x versions:&amp;nbsp;&lt;A href="https://nifi.apache.org/documentation/nifi-2.0.0-M1/html/administration-guide.html#user_authentication" target="_blank" rel="noopener"&gt;https://nifi.apache.org/documentation/nifi-2.0.0-M1/html/administration-guide.html#user_authentication&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;NiFi Authentication and Authorization are two different configurations and independent configurations.&lt;BR /&gt;Once you have chosen how you want to handle user authentication, you then move on to setting up user authorization:&lt;BR /&gt;&lt;A href="https://nifi.apache.org/docs/nifi-docs/html/administration-guide.html#multi-tenant-authorization" target="_blank" rel="noopener"&gt;https://nifi.apache.org/docs/nifi-docs/html/administration-guide.html#multi-tenant-authorization&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;For file based authorization, NiFi offers two providers:&lt;BR /&gt;1. Older deprecated&amp;nbsp;&lt;A href="https://nifi.apache.org/docs/nifi-docs/html/administration-guide.html#fileauthorizer" target="_blank" rel="noopener"&gt;FileAuthorizer&lt;/A&gt;&lt;BR /&gt;2. The current&amp;nbsp;&lt;A href="https://nifi.apache.org/docs/nifi-docs/html/administration-guide.html#standardmanagedauthorizer" target="_blank" rel="noopener"&gt;StandardManagedAuthorizer&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;These providers are configured in the NiFi authorizers.xml file.&amp;nbsp; No direct useer policies get defined in the authorizers.xml file.&amp;nbsp; The FileAuthorizer or the&amp;nbsp;&lt;A href="https://nifi.apache.org/docs/nifi-docs/html/administration-guide.html#fileaccesspolicyprovider" target="_blank" rel="noopener"&gt;FileAccessPolicyProvider&lt;/A&gt;&amp;nbsp;referenced by the StandardManagedAuthorizer will generate the initial &lt;STRONG&gt;authorizations.xml&lt;/STRONG&gt; file with the initial admin user configured in the provider chosen.&amp;nbsp; You would not typically manually generate or manipulate this file. Instead you would acces your NiFi's UI using that initial admin and define additional user authorizations directly via the NiFi UI.&lt;/P&gt;&lt;P&gt;Here is an example of what you would have in your authorizers.xml if using the StandardManagedAuthorizer:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&amp;lt;authorizers&amp;gt;
    &amp;lt;userGroupProvider&amp;gt;
        &amp;lt;identifier&amp;gt;file-user-group-provider&amp;lt;/identifier&amp;gt;
        &amp;lt;class&amp;gt;org.apache.nifi.authorization.FileUserGroupProvider&amp;lt;/class&amp;gt;
        &amp;lt;property name="Users File"&amp;gt;./conf/users.xml&amp;lt;/property&amp;gt;
        &amp;lt;property name="Legacy Authorized Users File"&amp;gt;&amp;lt;/property&amp;gt;
        &amp;lt;property name="Initial User Identity 1"&amp;gt;ronald&amp;lt;/property&amp;gt;
    &amp;lt;/userGroupProvider&amp;gt;
    &amp;lt;accessPolicyProvider&amp;gt;
        &amp;lt;identifier&amp;gt;file-access-policy-provider&amp;lt;/identifier&amp;gt;
        &amp;lt;class&amp;gt;org.apache.nifi.authorization.FileAccessPolicyProvider&amp;lt;/class&amp;gt;
        &amp;lt;property name="User Group Provider"&amp;gt;file-user-group-provider&amp;lt;/property&amp;gt;
        &amp;lt;property name="Authorizations File"&amp;gt;./conf/authorizations.xml&amp;lt;/property&amp;gt;
        &amp;lt;property name="Initial Admin Identity"&amp;gt;ronald&amp;lt;/property&amp;gt;
        &amp;lt;property name="Legacy Authorized Users File"&amp;gt;&amp;lt;/property&amp;gt;
        &amp;lt;property name="Node Identity 1"&amp;gt;&amp;lt;/property&amp;gt;
    &amp;lt;/accessPolicyProvider&amp;gt;
    &amp;lt;authorizer&amp;gt;
        &amp;lt;identifier&amp;gt;managed-authorizer&amp;lt;/identifier&amp;gt;
        &amp;lt;class&amp;gt;org.apache.nifi.authorization.StandardManagedAuthorizer&amp;lt;/class&amp;gt;
        &amp;lt;property name="Access Policy Provider"&amp;gt;file-access-policy-provider&amp;lt;/property&amp;gt;
    &amp;lt;/authorizer&amp;gt;
&amp;lt;/authorizers&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you found any of the suggestions/solutions provided helped you with your issue, please take a moment to login and click "&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Accept as Solution&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;" on one or more of them that helped.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;BR /&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2024 16:09:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Setting-User-Login-for-my-Apache-NiFi/m-p/384521#M245401</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2024-03-04T16:09:35Z</dc:date>
    </item>
  </channel>
</rss>

