# \#java

**URL:** https://community.auth0.com/tag/java/222.md

[Latest](https://community.auth0.com/latest.md) · [Categories](https://community.auth0.com/categories.md) · [Tags](https://community.auth0.com/tags.md)

---

## [Java authorizeRequests().permitAll() not working](https://community.auth0.com/t/java-authorizerequests-permitall-not-working/86588)

<div class="topic-metadata">

**Author:** [@dennis2](https://community.auth0.com/u/dennis2)\
**Replies:** 1\
**Last updated:** [March 10, 2025, 8:13pm UTC](https://community.auth0.com/t/java-authorizerequests-permitall-not-working/86588 "2025-03-10T20:13:01Z")

</div>

Using the code from the Quickstart guide and running into issues. @EnableWebSecurity public class SecurityConfig extends WebSecurityConfigurerAdapter { @Override protected void configure(HttpSecurity http) throws Exce…

---

## [Is java-jwt compatible with Java21?](https://community.auth0.com/t/is-java-jwt-compatible-with-java21/142144)

<div class="topic-metadata">

**Author:** [@rikkyrice](https://community.auth0.com/u/rikkyrice)\
**Replies:** 3\
**Last updated:** [September 5, 2024, 3:37pm UTC](https://community.auth0.com/t/is-java-jwt-compatible-with-java21/142144 "2024-09-05T15:37:08Z")

</div>

Hi everyone, I am using the java-jwt library in my project, which currently runs on Java 8. I am planning to migrate from Java 8 to Java 21 and am investigating compatible versions of each library for Java 21. I found …

---

## [Get public/private keys from jose4j for check JWT in jwt.io](https://community.auth0.com/t/get-public-private-keys-from-jose4j-for-check-jwt-in-jwt-io/136656)

<div class="topic-metadata">

**Author:** [@paulaner](https://community.auth0.com/u/paulaner)\
**Replies:** 1\
**Last updated:** [June 19, 2024, 6:11pm UTC](https://community.auth0.com/t/get-public-private-keys-from-jose4j-for-check-jwt-in-jwt-io/136656 "2024-06-19T18:11:15Z")

</div>

I’m debugging some JWT stuff and have generated key with RsaJwkGenerator.generateJwk(2048). I successfully export/import keys to json file. Now I need to export private key in some usefull format to check JWT on jwt.io …

---

## [The web application \[...\] appears to have started a thread named \[OkHttp \<tenant\>.auth0.com\] but has failed to stop it](https://community.auth0.com/t/the-web-application-appears-to-have-started-a-thread-named-okhttp-tenant-auth0-com-but-has-failed-to-stop-it/88035)

<div class="topic-metadata">

**Author:** [@andy.nugent](https://community.auth0.com/u/andy.nugent)\
**Replies:** 1\
**Last updated:** [May 17, 2024, 1:15pm UTC](https://community.auth0.com/t/the-web-application-appears-to-have-started-a-thread-named-okhttp-tenant-auth0-com-but-has-failed-to-stop-it/88035 "2024-05-17T13:15:23Z")

</div>

Please include the following information in your post: Which SDK this is regarding: Java (com.auth0:auth0:1.42.0) SDK Version: 1.42.0 Platform Version: Java 8 On shutdown of the web application there is numerous error…

---

## [How do I handle parsing JWT tokens using JWKS in Java (Scala)](https://community.auth0.com/t/how-do-i-handle-parsing-jwt-tokens-using-jwks-in-java-scala/87274)

<div class="topic-metadata">

**Author:** [@jgleason](https://community.auth0.com/u/jgleason)\
**Replies:** 4\
**Last updated:** [April 8, 2024, 8:37pm UTC](https://community.auth0.com/t/how-do-i-handle-parsing-jwt-tokens-using-jwks-in-java-scala/87274 "2024-04-08T20:37:49Z")

</div>

I have the following in my express app import bearer from "express-oauth2-jwt-bearer"; // Authorization middleware. When used, the Access Token must // exist and be verified against the Auth0 JSON Web Key Set. const ch…

---

## [Error: RSA signing keys must be PrivateKey instances](https://community.auth0.com/t/error-rsa-signing-keys-must-be-privatekey-instances/106519)

<div class="topic-metadata">

**Author:** [@lucascardozo73](https://community.auth0.com/u/lucascardozo73)\
**Replies:** 4\
**Last updated:** [May 10, 2023, 3:50pm UTC](https://community.auth0.com/t/error-rsa-signing-keys-must-be-privatekey-instances/106519 "2023-05-10T15:50:01Z")

</div>

When i try to post my login with user and password, the only return is: RSA signing keys must be PrivateKey instances. What should i do to solve it?

---

## [Spring boot JWE not configured](https://community.auth0.com/t/spring-boot-jwe-not-configured/80106)

<div class="topic-metadata">

**Author:** [@robert8](https://community.auth0.com/u/robert8)\
**Replies:** 5\
**Last updated:** [March 24, 2022, 5:57pm UTC](https://community.auth0.com/t/spring-boot-jwe-not-configured/80106 "2022-03-24T17:57:46Z")

</div>

Please include the following information in your post: Which SDK this is regarding: e.g. Spring boot SDK Version: e.g. 2.5.5 Platform Version: e.g. OpenJDK 17 Error Messages/: WWW-Authenticate: Bearer error=“invali…

---

## [Java SDK : Authorization Code and Access Token Variable Size](https://community.auth0.com/t/java-sdk-authorization-code-and-access-token-variable-size/77393)

<div class="topic-metadata">

**Author:** [@priya.sharma.9362](https://community.auth0.com/u/priya.sharma.9362)\
**Replies:** 1\
**Last updated:** [February 3, 2022, 10:32pm UTC](https://community.auth0.com/t/java-sdk-authorization-code-and-access-token-variable-size/77393 "2022-02-03T22:32:39Z")

</div>

Please include the following information in your post: Which SDK this is regarding: auth0-java SDK Version: e.g. auth0-1.5.1.jar Platform Version: e.g. Java 8 Code Snippets/Error Messages/Supporting Details/Screen…

---

## [How can I maintain Universal Login Templates through Management API using auth0-java?](https://community.auth0.com/t/how-can-i-maintain-universal-login-templates-through-management-api-using-auth0-java/62559)

<div class="topic-metadata">

**Author:** [@rich.s](https://community.auth0.com/u/rich.s)\
**Replies:** 4\
**Last updated:** [May 11, 2021, 12:37pm UTC](https://community.auth0.com/t/how-can-i-maintain-universal-login-templates-through-management-api-using-auth0-java/62559 "2021-05-11T12:37:54Z")

</div>

SDK: auth0/auth0-java SDK version: 1.31.0 I want to use the Universal Login Templates feature. According to the Management API doc, this should be available through /api/v2/branding/templates/universal-login. However …

---

## [Auth 1.26.0 dissapeared from maven central](https://community.auth0.com/t/auth-1-26-0-dissapeared-from-maven-central/56684)

<div class="topic-metadata">

**Author:** [@tsachev](https://community.auth0.com/u/tsachev)\
**Replies:** 3\
**Last updated:** [January 27, 2021, 2:45pm UTC](https://community.auth0.com/t/auth-1-26-0-dissapeared-from-maven-central/56684 "2021-01-27T14:45:54Z")

</div>

Is it just me or auth0 1.26.0 disappeared from maven central? I am confident that I downloaded it earlier this month.

---

## [Need help converting Javascript JWT parsing into Java using Auth0 libs](https://community.auth0.com/t/need-help-converting-javascript-jwt-parsing-into-java-using-auth0-libs/47387)

<div class="topic-metadata">

**Author:** [@jackiegleason](https://community.auth0.com/u/jackiegleason)\
**Replies:** 1\
**Last updated:** [August 4, 2020, 2:06pm UTC](https://community.auth0.com/t/need-help-converting-javascript-jwt-parsing-into-java-using-auth0-libs/47387 "2020-08-04T14:06:33Z")

</div>

Hey everyone, Currently I am using the node-jsonwebtoken lib you guys put out to parse my JWT access token. I do this like… jwt.verify(accessToken, cert, { algorithms : "RSA256" }).then((err, parsed) =\>{...}); I would…

---

## [JWT Authentication example not working?](https://community.auth0.com/t/jwt-authentication-example-not-working/41216)

<div class="topic-metadata">

**Author:** [@rossyoung990](https://community.auth0.com/u/rossyoung990)\
**Replies:** 1\
**Last updated:** [August 29, 2023, 9:43pm UTC](https://community.auth0.com/t/jwt-authentication-example-not-working/41216 "2023-08-29T21:43:35Z")

</div>

Hi all I am trying to follow this JWT Authentication Auth0 Tutorial but as soon as I try to gradle build I get the below error. Has this occurred for anyone else? Stack Trace: 22:10:43.560 \[DEBUG\] \[TestEventLogger\] …

---

## [Spring Boot: Integrating User Login with JWT Authentication?](https://community.auth0.com/t/spring-boot-integrating-user-login-with-jwt-authentication/41214)

<div class="topic-metadata">

**Author:** [@rossyoung990](https://community.auth0.com/u/rossyoung990)\
**Replies:** 0\
**Last updated:** [April 16, 2020, 9:31pm UTC](https://community.auth0.com/t/spring-boot-integrating-user-login-with-jwt-authentication/41214 "2020-04-16T21:31:36Z")

</div>

Hi all this is my first post, hope someone can help me. I have followed the Spring Example in order to add JWT auth to my spring boot api and it worked great! I am now confused how to also add a User login/logout using…

---

## [SSO using saml between dotnet & java application](https://community.auth0.com/t/sso-using-saml-between-dotnet-java-application/38960)

<div class="topic-metadata">

**Author:** [@vbhatt](https://community.auth0.com/u/vbhatt)\
**Replies:** 1\
**Last updated:** [March 6, 2020, 6:04pm UTC](https://community.auth0.com/t/sso-using-saml-between-dotnet-java-application/38960 "2020-03-06T18:04:48Z")

</div>

Hello Guys, Is it possible to create a SSO between .net & java application using SAML? We also want to use our custom database for authentication as well as for authorization. Any type of example or sample code will be …

---

## [How does authorization work with an API and an SPA](https://community.auth0.com/t/how-does-authorization-work-with-an-api-and-an-spa/21662)

<div class="topic-metadata">

**Author:** [@flurz123](https://community.auth0.com/u/flurz123)\
**Replies:** 7\
**Last updated:** [March 25, 2019, 12:45pm UTC](https://community.auth0.com/t/how-does-authorization-work-with-an-api-and-an-spa/21662 "2019-03-25T12:45:23Z")

</div>

Hey there, at the moment I did following: I have a React Frontend (SPA) and I followed the tutorial till the point where I receive an accessToken, idToken and expiry date. The refresh mechanism in frontend works. I se…

---

## [How to get code and code verifier in java objects?](https://community.auth0.com/t/how-to-get-code-and-code-verifier-in-java-objects/20501)

<div class="topic-metadata">

**Author:** [@Naofilms](https://community.auth0.com/u/Naofilms)\
**Replies:** 3\
**Last updated:** [January 28, 2019, 5:48pm UTC](https://community.auth0.com/t/how-to-get-code-and-code-verifier-in-java-objects/20501 "2019-01-28T17:48:26Z")

</div>

After successful login from social account i.e google, i get following result in console. D/OkHttp: {“code”:“jG-asd3df”,“redirect\_uri”: “adasd”, “code\_verifier”:“asdae3fd”} Is there any way possible i can get these f…

---

## [Problem With HTTPD Proxy and Auth0](https://community.auth0.com/t/problem-with-httpd-proxy-and-auth0/11860)

<div class="topic-metadata">

**Author:** [@jackiegleason](https://community.auth0.com/u/jackiegleason)\
**Replies:** 1\
**Last updated:** [December 18, 2018, 9:45pm UTC](https://community.auth0.com/t/problem-with-httpd-proxy-and-auth0/11860 "2018-12-18T21:45:46Z")

</div>

I have the following config in my ssh.conf \<VirtualHost \_default\_:443\> ServerAdmin root@localhost ServerName secondave.net:443 DefaultType text/html ProxyRequests off ProxyPreserveHost On ProxyP…

---

## [Session maintenance at Auth0](https://community.auth0.com/t/session-maintenance-at-auth0/9009)

<div class="topic-metadata">

**Author:** [@priya.sharma.9362](https://community.auth0.com/u/priya.sharma.9362)\
**Replies:** 7\
**Last updated:** [January 31, 2018, 4:17pm UTC](https://community.auth0.com/t/session-maintenance-at-auth0/9009 "2018-01-31T16:17:26Z")

</div>

I am working with the JAVA SDK for triggering login and other operations. I would like to know whether every new login request triggers the creation of a new session at Auth0 or it just picks something from the existing…

---

## [AuthAPI's resetPassword method doesn't throw exception when the user doesn't exist with given emailAddress](https://community.auth0.com/t/authapis-resetpassword-method-doesnt-throw-exception-when-the-user-doesnt-exist-with-given-emailaddress/9321)

<div class="topic-metadata">

**Author:** [@priya.sharma.9362](https://community.auth0.com/u/priya.sharma.9362)\
**Replies:** 1\
**Last updated:** [January 29, 2018, 10:34pm UTC](https://community.auth0.com/t/authapis-resetpassword-method-doesnt-throw-exception-when-the-user-doesnt-exist-with-given-emailaddress/9321 "2018-01-29T22:34:04Z")

</div>

I was just running a use case to sent reset password link using the Java SDK. I have used the resetPassword method here On using an emailAddress with which no user has been registered. I could see a failed change passw…

---

## [Token verification on server side](https://community.auth0.com/t/token-verification-on-server-side/9076)

<div class="topic-metadata">

**Author:** [@priya.sharma.9362](https://community.auth0.com/u/priya.sharma.9362)\
**Replies:** 2\
**Last updated:** [December 28, 2017, 10:07pm UTC](https://community.auth0.com/t/token-verification-on-server-side/9076 "2017-12-28T22:07:26Z")

</div>

I am trying to verify access tokens from Auth0, using the Java SDK my question is whether it is fine to extract the Kid from the token itself and then get the public key based on that kid. Or we should store the kid lo…

---

## [Auth0 Spring Security API ProviderNotFoundException when using @PreAuthorize](https://community.auth0.com/t/auth0-spring-security-api-providernotfoundexception-when-using-preauthorize/7553)

<div class="topic-metadata">

**Author:** [@auth06](https://community.auth0.com/u/auth06)\
**Replies:** 1\
**Last updated:** [December 28, 2017, 1:51am UTC](https://community.auth0.com/t/auth0-spring-security-api-providernotfoundexception-when-using-preauthorize/7553 "2017-12-28T01:51:07Z")

</div>

I am having problem using the @PreAuthorize annotation for my endpoints after following the Auth0 Spring Security for API quickstart guide. The response i get is: "status": 401, "error": "Unauthorized", "exception":"…

---

## [How do I lookup if a users email address exists in the Java API?](https://community.auth0.com/t/how-do-i-lookup-if-a-users-email-address-exists-in-the-java-api/8616)

<div class="topic-metadata">

**Author:** [@horsephotostechnolog](https://community.auth0.com/u/horsephotostechnolog)\
**Replies:** 0\
**Last updated:** [October 30, 2017, 1:50am UTC](https://community.auth0.com/t/how-do-i-lookup-if-a-users-email-address-exists-in-the-java-api/8616 "2017-10-30T01:50:23Z")

</div>

From your starter example I have code that looks like this: domain = config.getServletContext().getInitParameter(“com.auth0.domain”); clientId = config.getServletContext().getInitParameter(“com.auth0.clientId”); clien…

---

## [Auth0 is sending a RS256 signed token instead of HS256 signed token](https://community.auth0.com/t/auth0-is-sending-a-rs256-signed-token-instead-of-hs256-signed-token/8216)

<div class="topic-metadata">

**Author:** [@lahiruchandima](https://community.auth0.com/u/lahiruchandima)\
**Replies:** 3\
**Last updated:** [October 14, 2017, 8:04am UTC](https://community.auth0.com/t/auth0-is-sending-a-rs256-signed-token-instead-of-hs256-signed-token/8216 "2017-10-14T08:04:39Z")

</div>

I am trying to obtain an auth token with Auth0 java client. In Auth0, I have a non interactive client. JsonWebToken Signature Algorithm is set to HS256 in the client. I use following code to obtain the token. AuthAPI a…

---

## [401 when querying /userinfo with correct scope and RS256](https://community.auth0.com/t/401-when-querying-userinfo-with-correct-scope-and-rs256/8291)

<div class="topic-metadata">

**Author:** [@xmeninsuits](https://community.auth0.com/u/xmeninsuits)\
**Replies:** 2\
**Last updated:** [October 2, 2017, 9:40pm UTC](https://community.auth0.com/t/401-when-querying-userinfo-with-correct-scope-and-rs256/8291 "2017-10-02T21:40:07Z")

</div>

I’m querying the userinfo via the java authAPI with the following token eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6Ik5rSkNOa000TVRJeU5EY3hNamt4TWpjMlF6WTVSVUU1T0VVM01VWTJSa1V5TnpjMk5qUTRPUSJ9.eyJpc3MiOiJodHRwczovL21lbm…

---

## [App\_metadata missing when getting a user JWT using auth0-java](https://community.auth0.com/t/app-metadata-missing-when-getting-a-user-jwt-using-auth0-java/8075)

<div class="topic-metadata">

**Author:** [@rballantyne](https://community.auth0.com/u/rballantyne)\
**Replies:** 1\
**Last updated:** [September 4, 2017, 2:49pm UTC](https://community.auth0.com/t/app-metadata-missing-when-getting-a-user-jwt-using-auth0-java/8075 "2017-09-04T14:49:51Z")

</div>

We’re using Auth0 as our security provider for a number of microservices / web front end. I’ve been looking at dynamically creating users for our automated tests (we’re currently using fixed users), using the auth0-java …

---

## [Authorization Extension - Roles - Problem](https://community.auth0.com/t/authorization-extension-roles-problem/7575)

<div class="topic-metadata">

**Author:** [@Lisandro\_Rezoagli](https://community.auth0.com/u/Lisandro_Rezoagli)\
**Replies:** 1\
**Last updated:** [July 19, 2017, 3:20pm UTC](https://community.auth0.com/t/authorization-extension-roles-problem/7575 "2017-07-19T15:20:52Z")

</div>

I describe the case. All users are users of google. In my frontend, I’m using angular-auth0. Example: angularAuth0Provider.init({ clientID:AUTH0\_CLIENT\_ID, domain: .AUTH0\_DOMAIN, responseTy…

---

## [Can I generate a JWT with Java and use Node.js to decode it?](https://community.auth0.com/t/can-i-generate-a-jwt-with-java-and-use-node-js-to-decode-it/7147)

<div class="topic-metadata">

**Author:** [@pravinkalbhor](https://community.auth0.com/u/pravinkalbhor)\
**Replies:** 3\
**Last updated:** [June 21, 2017, 6:33am UTC](https://community.auth0.com/t/can-i-generate-a-jwt-with-java-and-use-node-js-to-decode-it/7147 "2017-06-21T06:33:57Z")

</div>

I’m trying to decode the JWT in node server \[npm install jsonwebtoken\] which is created in java \[io.jsonwebtoken / jjwt / 0.6.0\] but getting invalid signature error. Does anyone had experienced the same and found the s…

---

## [Java API Access Authenticated Principle Meta Data](https://community.auth0.com/t/java-api-access-authenticated-principle-meta-data/6954)

<div class="topic-metadata">

**Author:** [@jphunsley](https://community.auth0.com/u/jphunsley)\
**Replies:** 0\
**Last updated:** [June 7, 2017, 10:44pm UTC](https://community.auth0.com/t/java-api-access-authenticated-principle-meta-data/6954 "2017-06-07T22:44:36Z")

</div>

I’m using the Java Spring Boot/Security API (GitHub - auth0/auth0-spring-security-api: Spring Security integration with Auth0 to secure your API with JWTs · GitHub) within my REST API. This will be the back end service f…

---

## [Issue with user information after updating Auth0 Java libraries](https://community.auth0.com/t/issue-with-user-information-after-updating-auth0-java-libraries/6764)

<div class="topic-metadata">

**Author:** [@anders.johansson](https://community.auth0.com/u/anders.johansson)\
**Replies:** 4\
**Last updated:** [June 2, 2017, 11:11am UTC](https://community.auth0.com/t/issue-with-user-information-after-updating-auth0-java-libraries/6764 "2017-06-02T11:11:58Z")

</div>

Hi there. i have been using auth0-spring-security-api, version: 0.3.2 together with auth0, version: 0.4.0 In my java backend i have been using the following lines of code to access the id\_token and call method to ac…
