How do I fix a import issue related to auth.idp.oidc.OidcAdapterConfig?

Im trying to import this lib

import com.inductiveautomation.ignition.gateway.auth.idp.oidc.OidcAdapterConfig;

but its not working.

I already tried adding the dependencies into the build.gradle, and I added these lines into the module.xml file

<depends module-id="com.inductiveautomation.oidc" scope="G"/>
<depends scope="G">com.inductiveautomation.openid-connect</depends>

I’m using this lib to create a Identity provider via code, automatically. Can someone help me figure this out or maybe tell me another way to do it? Thank you.

This isn't a class that I see even exists in 8.1 or 8.3.

Are you trying to build a module? Are these module.xml things you tried just insane hallucinations from an LLM?

1 Like

Yes this is a module I’m trying to build, and yep I tried chat gpt and it said for me to add those things into module.xml. Completely madness adding that to module.xml?

If you're using Gradle, you should be using our module plugin, which automatically generates a module xml based on the attributes declared in code, e.g.

The dependency declarations that are generated are 1:1 with Ignition module IDs.
There is no com.inductiveautomation.oidc nor com.inductiveautomation.openid-connect module.

All IdP related functionality Ignition currently supports is embedded in the platform, meaning you don't have to declare any module dependency to use it. Whether we export anything useful to you is another question, but in general I would say to trust your LLMs a lot less than you currently are.

2 Likes

Thank you guys very much, I’ll follow your steps. LLMs told me a completely different thing.…thats why I came here into the forum to ask the experts. Thanks!

1 Like