# Authentication Module Issue with Auto Login 8.1

**URL:** <https://forum.inductiveautomation.com/t/authentication-module-issue-with-auto-login-8-1/43142>\
**Category:** Module Development\
**Created:** [February 8, 2021, 7:23pm UTC](https://forum.inductiveautomation.com/t/authentication-module-issue-with-auto-login-8-1/43142 "2021-02-08T19:23:57Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![jalton](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@jalton](https://forum.inductiveautomation.com/u/jalton)\
**Post date:** [February 8, 2021, 7:23pm UTC](https://forum.inductiveautomation.com/t/authentication-module-issue-with-auto-login-8-1/43142/1 "2021-02-08T19:23:57Z")

</div>

I recently upgraded a custom authentication module from version 7.9 to 8.1. Everything worked for testing except one strange issue with Auto Login. The project would login normally until Auto Login was selected. Auto Login would fail and all other types of logins now fail. Unchecking the box does not fix the issue. The following is the error that comes up. The only way I know to repair the issue is to import the project into another without importing the project properties.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/5/0/5070925477ca866989640dc03fe505365ed10383.png)

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [February 8, 2021, 7:30pm UTC](https://forum.inductiveautomation.com/t/authentication-module-issue-with-auto-login-8-1/43142/2 "2021-02-08T19:30:39Z")

</div>

Can you copy that full stack trace and post it here?

There should be an error logged to the gateway logs when this happens too, though it’s capped at once per minute so you may not see it on subsequent errors if they occur quickly.

---

<div class="post-metadata">

**Author:** ![jalton](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@jalton](https://forum.inductiveautomation.com/u/jalton)\
**Post date:** [February 8, 2021, 7:38pm UTC](https://forum.inductiveautomation.com/t/authentication-module-issue-with-auto-login-8-1/43142/3 "2021-02-08T19:38:54Z")

</div>

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/7/6755344a2773ee7a1e6d13cd4e27f88b787427ac.png)

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [February 8, 2021, 7:43pm UTC](https://forum.inductiveautomation.com/t/authentication-module-issue-with-auto-login-8-1/43142/4 "2021-02-08T19:43:32Z")

</div>

Can you get the actual text…?

---

<div class="post-metadata">

**Author:** ![jalton](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@jalton](https://forum.inductiveautomation.com/u/jalton)\
**Post date:** [February 8, 2021, 7:45pm UTC](https://forum.inductiveautomation.com/t/authentication-module-issue-with-auto-login-8-1/43142/5 "2021-02-08T19:45:15Z")

</div>

java.lang.reflect.InvocationTargetException: null

at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.base/java.lang.reflect.Method.invoke(Unknown Source)

at com.inductiveautomation.ignition.gateway.servlets.gateway.functions.Login.getVisionProjectAuthenticationStrategy(Login.java:159)

at com.inductiveautomation.ignition.gateway.servlets.gateway.functions.Login.client(Login.java:337)

at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.base/java.lang.reflect.Method.invoke(Unknown Source)

at com.inductiveautomation.ignition.gateway.servlets.gateway.AbstractGatewayFunction.invoke(AbstractGatewayFunction.java:225)

at com.inductiveautomation.ignition.gateway.servlets.Gateway.doPost(Gateway.java:405)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)

at com.inductiveautomation.ignition.gateway.bootstrap.MapServlet.service(MapServlet.java:86)

at org.eclipse.jetty.servlet.ServletHolder$NotAsyncServlet.service(ServletHolder.java:1391)

at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:760)

at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:547)

at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)

at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:590)

at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)

at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235)

at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1607)

at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)

at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1297)

at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)

at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:485)

at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1577)

at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)

at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1212)

at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)

at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)

at org.eclipse.jetty.rewrite.handler.RewriteHandler.handle(RewriteHandler.java:322)

at org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:59)

at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:146)

at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)

at org.eclipse.jetty.server.Server.handle(Server.java:500)

at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:383)

at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:547)

at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:375)

at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:270)

at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)

at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)

at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117)

at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:336)

at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:313)

at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:171)

at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:129)

at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:388)

at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:806)

at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:938)

at java.base/java.lang.Thread.run(Unknown Source)

Caused by: java.lang.ClassCastException: class com.inductiveautomation.factorypmi.application.model.properties.LoginProps cannot be cast to class com.inductiveautomation.factorypmi.application.model.properties.LoginProps (com.inductiveautomation.factorypmi.application.model.properties.LoginProps is in unnamed module of loader com.inductiveautomation.ignition.gateway.modules.ModuleClassLoader @1ebec3a6; com.inductiveautomation.factorypmi.application.model.properties.LoginProps is in unnamed module of loader com.inductiveautomation.ignition.gateway.modules.ModuleClassLoader @60ccc54d)

at com.inductiveautomation.factorypmi.gateway.VisionGatewayHook.lambda$getLoginProps$5(VisionGatewayHook.java:400)

at java.base/java.util.Optional.map(Unknown Source)

at com.inductiveautomation.factorypmi.gateway.VisionGatewayHook.getLoginProps(VisionGatewayHook.java:398)

at com.inductiveautomation.factorypmi.gateway.VisionGatewayHook.getAuthenticationStrategy(VisionGatewayHook.java:421)

… 52 common frames omitted

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [February 8, 2021, 7:50pm UTC](https://forum.inductiveautomation.com/t/authentication-module-issue-with-auto-login-8-1/43142/6 "2021-02-08T19:50:05Z")

</div>

Hmm. Can you upload/share your module? Just the binary for now would be okay, no source code.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [February 8, 2021, 8:03pm UTC](https://forum.inductiveautomation.com/t/authentication-module-issue-with-auto-login-8-1/43142/8 "2021-02-08T20:03:33Z")

</div>

I believe the issue is that you are including a copy of the Ignition SDK depency (`vision-client-10.0.1.jar`) in your module when it’s built.

If you’re using Maven the scope for all SDK dependencies should be `provided`.

edit: you may need to restart the gateway after getting your module rebuilt and installed.

---

<div class="post-metadata">

**Author:** ![jalton](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@jalton](https://forum.inductiveautomation.com/u/jalton)\
**Post date:** [February 8, 2021, 8:11pm UTC](https://forum.inductiveautomation.com/t/authentication-module-issue-with-auto-login-8-1/43142/9 "2021-02-08T20:11:20Z")

</div>

I checked all POM files. They all show scope being provided.  
  
com.inductiveautomation.ignitionsdk  
ignition-common  
${ignition-sdk-version}  
pom  
provided

```
    <dependency>
        <groupId>com.inductiveautomation.ignitionsdk</groupId>
        <artifactId>client-api</artifactId>
        <version>${ignition-sdk-version}</version>
        <type>pom</type>
        <scope>provided</scope>
    </dependency>

    <dependency>
        <groupId>com.inductiveautomation.ignitionsdk</groupId>
        <artifactId>designer-api</artifactId>
        <version>${ignition-sdk-version}</version>
        <type>pom</type>
        <scope>provided</scope>
    </dependency>
```

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [February 8, 2021, 8:13pm UTC](https://forum.inductiveautomation.com/t/authentication-module-issue-with-auto-login-8-1/43142/10 "2021-02-08T20:13:31Z")

</div>

There’s gotta be something causing those dependencies to be added. If you’ve already checked all the pom files see if the version of the `ignition-maven-plugin` is older - I think the latest version was 1.1.0.

---

<div class="post-metadata">

**Author:** ![jalton](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@jalton](https://forum.inductiveautomation.com/u/jalton)\
**Post date:** [February 9, 2021, 12:42am UTC](https://forum.inductiveautomation.com/t/authentication-module-issue-with-auto-login-8-1/43142/11 "2021-02-09T00:42:14Z")

</div>

Not sure how it happened but did find the culprit. Reference to vision using 10.0.1 and set to compile.
