Anyone integrated with Auth0? Looking minimum I ne...
# cfml-general
d
Anyone integrated with Auth0? Looking minimum I need to compile to use the sdk
m
are you planning to use their jars? i use https://github.com/auth0/auth0-java , https://github.com/auth0/java-jwt , and https://github.com/auth0/jwks-rsa-java on some things, and could probably help if you were going to be using them.
d
Did you compile them together yourself?
m
i pass their jar and dependencies into createobject (i'm on lucee), but would probably use javaloader if i wasn't.
their libraries are frequently updated (usually for some dependency security item), so being easy to change which jars are used has been helpful.
d
Do you have a link to their premade jar? I may be having a moment but haven't been able to find it on their github. Or do you download it via the maven site?
m
i download them all from jar-downloads, as it includes deps
Copy code
{
	"projects": {
		"auth0": {
			"artifact": "auth0",
			"group": "com.auth0",
			"why": "Interact with Auth0 client and Management API",
			"lastUpdate": "2022-04-08",
			"ourUpdate": "2022-04-13",
			"version": "1.40.2",
			"license": "MIT",
			"home": "<https://github.com/auth0/auth0-java>",
			"git": "<https://github.com/auth0/auth0-java>",
			"download": "<https://jar-download.com/artifact-search/auth0>",
			"dependencies": ["/thirdparty/common_dependencies/bcprov-jdk15on-168.jar",
				"/thirdparty/common_dependencies/annotations-20.1.0.jar",
				"/thirdparty/common_dependencies/kotlin-stdlib-jdk7-1.4.30.jar",
				"/thirdparty/common_dependencies/kotlin-stdlib-jdk8-1.4.30.jar",
				"/thirdparty/common_dependencies/kotlin-stdlib-1.4.30.jar",
				"/thirdparty/common_dependencies/kotlin-stdlib-common-1.4.30.jar",
				"/thirdparty/common_dependencies/jackson-annotations-2.13.2.jar",
				"/thirdparty/common_dependencies/jackson-core-2.13.2.jar",
				"/thirdparty/common_dependencies/jackson-databind-2.13.2.2.jar",
				"/thirdparty/auth0/java-jwt-3.19.1.jar",
				"/thirdparty/common_dependencies/failsafe-2.4.1.jar",
				"/thirdparty/auth0/auth0-1.40.2.jar",
				"/thirdparty/common_dependencies/logging-interceptor-4.9.3.jar",
				"/thirdparty/common_dependencies/okhttp-4.9.3.jar",
				"/thirdparty/common_dependencies/okio-2.10.0.jar"
			]
		},
		"java-jwt": {
			"artifact": "java-jwt",
			"group": "com.auth0",
			"why": "Working with JWT",
			"lastUpdate": "2022-03-30",
			"ourUpdate": "2022-04-13",
			"version": "3.19.1",
			"license": "MIT",
			"home": "<https://github.com/auth0/java-jwt>",
			"git": "<https://github.com/auth0/java-jwt>",
			"download": "<https://jar-download.com/artifacts/com.auth0/java-jwt>",
			"dependencies": ["/thirdparty/common_dependencies/bcprov-jdk15on-168.jar",
				"/thirdparty/common_dependencies/jackson-annotations-2.13.2.jar",
				"/thirdparty/common_dependencies/jackson-core-2.13.2.jar",
				"/thirdparty/common_dependencies/jackson-databind-2.13.2.2.jar",
				"/thirdparty/auth0/java-jwt-3.19.1.jar"]
		},
		"jwks-rsa": {
			"artifact": "jwks-rsa",
			"group": "com.auth0",
			"why": "Signing JWT",
			"lastUpdate": "2022-03-30",
			"ourUpdate": "2022-04-13",
			"version": "0.21.1",
			"license": "MIT",
			"home": "<https://github.com/auth0/jwks-rsa-java>",
			"git": "<https://github.com/auth0/jwks-rsa-java>",
			"download": "<https://jar-download.com/artifact-search/jwks-rsa>",
			"dependencies": ["/thirdparty/common_dependencies/guava-30.1-jre.jar",
				"/thirdparty/common_dependencies/jsr305-3.0.2.jar",
				"/thirdparty/common_dependencies/error_prone_annotations-2.4.0.jar",
				"/thirdparty/common_dependencies/failureaccess-1.0.1.jar",
				"/thirdparty/common_dependencies/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar",
				"/thirdparty/common_dependencies/j2objc-annotations-1.3.jar",
				"/thirdparty/common_dependencies/checker-qual-3.8.0.jar",
				"/thirdparty/common_dependencies/jackson-annotations-2.13.2.jar",
				"/thirdparty/common_dependencies/jackson-core-2.13.2.jar",
				"/thirdparty/common_dependencies/jackson-databind-2.13.2.2.jar",
				"/thirdparty/auth0/jwks-rsa-0.21.1.jar"]
		}
}
as an example of 'how ugly that might be'. this shows how many deps each of those have.
if what you need are the AuthAPI and/or ManagementAPI, the com.auth0 one is possibly sufficient, in which case the classes you would need are "com.auth0.client.auth.AuthAPI", "com.auth0.client.mgmt.ManagementAPI". For internal consistency, I use their jwt proj for our jwt stuff that's outside of auth0 related items. i only use their jwks for .getDomainPublicKey().
👍 1