# Validating a token using auth0 java-jwt library in Coldfusion; Plz hlp!

**URL:** <https://community.auth0.com/t/validating-a-token-using-auth0-java-jwt-library-in-coldfusion-plz-hlp/42038>\
**Category:** JWT.io\
**Tags:** jwt-validation, id\_token, token-validation, auth0\
**Created:** [April 29, 2020, 4:18pm UTC](https://community.auth0.com/t/validating-a-token-using-auth0-java-jwt-library-in-coldfusion-plz-hlp/42038 "2020-04-29T16:18:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bentsh](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/bentsh/32/20886_2.png) [@bentsh](https://community.auth0.com/u/bentsh)\
**Post date:** [April 29, 2020, 4:18pm UTC](https://community.auth0.com/t/validating-a-token-using-auth0-java-jwt-library-in-coldfusion-plz-hlp/42038/1 "2020-04-29T16:18:47Z")

</div>

I am trying to validate an ID token retrieved from Azure AD using the OIDC library msal.js. After I retrieve the token, I pass it in a request to the Coldfusion server. On the server I imported the auth0 Java-JWT library. Now I am stuck. I am going crazy trying all sorts of different things. I don’t know what I am doing wrong. Please help me.

I think I need to retrieve the public key in order to validate which I believe I get from the jwks\_uri. I’m not sure how to automate this.

Second, I am trying to create the algorithm. Currently I have the following but I get the error, “The RSA256 method was not found.”

```
        <cfset publicKey = [specified here]>

        <cfset privateKey = ""> //left blank as not needed for validation

        <cfset algorithm = Algorithm.RSA256(publicKey, privateKey)>

```
