# \#java

**URL:** https://devforum.okta.com/tag/java/4.md

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

---

## [Okta Access Token - SpringBoot](https://devforum.okta.com/t/okta-access-token-springboot/34560)

<div class="topic-metadata">

**Author:** [@RakeshCarey](https://devforum.okta.com/u/RakeshCarey)\
**Replies:** 1\
**Last updated:** [November 6, 2025, 7:47pm UTC](https://devforum.okta.com/t/okta-access-token-springboot/34560 "2025-11-06T19:47:02Z")

</div>

Hi Team, I am working on POC and following the spring boot okta documents. I am able generate the access token from /default/v1/token. While validating on https://www.jwt.io/, getting success validation and updating…

---

## [Springboot okta hosted login page issue](https://devforum.okta.com/t/springboot-okta-hosted-login-page-issue/34060)

<div class="topic-metadata">

**Author:** [@prashshyam](https://devforum.okta.com/u/prashshyam)\
**Replies:** 5\
**Last updated:** [August 13, 2025, 10:34pm UTC](https://devforum.okta.com/t/springboot-okta-hosted-login-page-issue/34060 "2025-08-13T22:34:15Z")

</div>

Hi, I got the okta hosted login page working but now when am trying to sign in by giving the creds of my okta developer account but in the springboot logs am seeing multiple redirects happening and finally shows too\_man…

---

## [Okta with Springboot](https://devforum.okta.com/t/okta-with-springboot/34087)

<div class="topic-metadata">

**Author:** [@prashshyam](https://devforum.okta.com/u/prashshyam)\
**Replies:** 1\
**Last updated:** [August 9, 2025, 8:39pm UTC](https://devforum.okta.com/t/okta-with-springboot/34087 "2025-08-09T20:39:41Z")

</div>

Hi, I have a springboot with html/javascript app where springboot is serving both html content and backend API data as well..So its serving both front end and backend data…Now I want to integrate this app with okta..can…

---

## [Issuer with updating Okta user -- Okta SDK 21 SingtonUser](https://devforum.okta.com/t/issuer-with-updating-okta-user-okta-sdk-21-singtonuser/32973)

<div class="topic-metadata">

**Author:** [@HelpMeLearnOkta](https://devforum.okta.com/u/HelpMeLearnOkta)\
**Replies:** 1\
**Last updated:** [April 23, 2025, 11:00am UTC](https://devforum.okta.com/t/issuer-with-updating-okta-user-okta-sdk-21-singtonuser/32973 "2025-04-23T11:00:22Z")

</div>

We have a way for a user to update their profile – first and last name so forth. Our company is calling the Okta SDK – a wrapper for the API. Our code is going to do an update. First it calls the Okta get User. Then …

---

## [Cannot change user type with replaceUser](https://devforum.okta.com/t/cannot-change-user-type-with-replaceuser/32942)

<div class="topic-metadata">

**Author:** [@cqq](https://devforum.okta.com/u/cqq)\
**Replies:** 0\
**Last updated:** [April 17, 2025, 6:02pm UTC](https://devforum.okta.com/t/cannot-change-user-type-with-replaceuser/32942 "2025-04-17T18:02:47Z")

</div>

Hello, I am attempting to change the user’s type id from one profile to another as part of a migration. In the notes section it says to perform this action requires a “full PUT replacement”. When running the following…

---

## [The settings.signOn object doesn't match the type indicated by signOnMode value or is ill defined](https://devforum.okta.com/t/the-settings-signon-object-doesnt-match-the-type-indicated-by-signonmode-value-or-is-ill-defined/32805)

<div class="topic-metadata">

**Author:** [@HelpMeLearnOkta](https://devforum.okta.com/u/HelpMeLearnOkta)\
**Replies:** 1\
**Last updated:** [April 4, 2025, 11:57pm UTC](https://devforum.okta.com/t/the-settings-signon-object-doesnt-match-the-type-indicated-by-signonmode-value-or-is-ill-defined/32805 "2025-04-04T23:57:09Z")

</div>

My company is doing an Okta SDK upgrading from 15 to 21. We had code that would create an Application. I’m getting the following error. {“errorCode”:“E0000001”,“errorSummary”:“Api validation failed: mediated”,“errorLi…

---

## [Help with custom login using spring boot and auth0 DB](https://devforum.okta.com/t/help-with-custom-login-using-spring-boot-and-auth0-db/32622)

<div class="topic-metadata">

**Author:** [@Wale](https://devforum.okta.com/u/Wale)\
**Replies:** 1\
**Last updated:** [March 26, 2025, 9:51pm UTC](https://devforum.okta.com/t/help-with-custom-login-using-spring-boot-and-auth0-db/32622 "2025-03-26T21:51:21Z")

</div>

Hi, I would appreciate some advice, and a guide on how I could implement my own custom login in spring boot (without using the okta sign in widget) while using auth0 user DB. So to elaborate, I want to delegate the stori…

---

## [Best way to convert a UserGetSingleton to User SDK 21](https://devforum.okta.com/t/best-way-to-convert-a-usergetsingleton-to-user-sdk-21/32752)

<div class="topic-metadata">

**Author:** [@HelpMeLearnOkta](https://devforum.okta.com/u/HelpMeLearnOkta)\
**Replies:** 1\
**Last updated:** [March 27, 2025, 7:56pm UTC](https://devforum.okta.com/t/best-way-to-convert-a-usergetsingleton-to-user-sdk-21/32752 "2025-03-27T19:56:01Z")

</div>

I’m confused by the getUser call It is now returning a new UserGetSingleton object. Most of the methods seem to still use the User object. Seems like a miss match now. I can get a user but can’t pass it in anywhere. …

---

## [Upgrading SDK from 15 to 21, how to figure out where things are at](https://devforum.okta.com/t/upgrading-sdk-from-15-to-21-how-to-figure-out-where-things-are-at/32729)

<div class="topic-metadata">

**Author:** [@HelpMeLearnOkta](https://devforum.okta.com/u/HelpMeLearnOkta)\
**Replies:** 1\
**Last updated:** [March 26, 2025, 4:52pm UTC](https://devforum.okta.com/t/upgrading-sdk-from-15-to-21-how-to-figure-out-where-things-are-at/32729 "2025-03-26T16:52:34Z")

</div>

We are finally getting around to upgrading okta SDK from 15 to latest 21. Now things are missing or moved. One example is this com.okta.sdk.resource.api.CustomizationApi; Looks like it was in version 17 but gone in 1…

---

## [Springboot get User Details in Security Context](https://devforum.okta.com/t/springboot-get-user-details-in-security-context/32708)

<div class="topic-metadata">

**Author:** [@c7b95dd9dce342d37d0f](https://devforum.okta.com/u/c7b95dd9dce342d37d0f)\
**Replies:** 0\
**Last updated:** [March 24, 2025, 2:58pm UTC](https://devforum.okta.com/t/springboot-get-user-details-in-security-context/32708 "2025-03-24T14:58:48Z")

</div>

Hi, As a follow-up to this post: Okta - Add User details&token info to security context - Questions - Okta Developer Community, I was just wondering if there’s a sample project which is able to retrieve user details in …

---

## [OKTA signin container is returned empty](https://devforum.okta.com/t/okta-signin-container-is-returned-empty/32102)

<div class="topic-metadata">

**Author:** [@Joshna](https://devforum.okta.com/u/Joshna)\
**Replies:** 0\
**Last updated:** [February 21, 2025, 12:10pm UTC](https://devforum.okta.com/t/okta-signin-container-is-returned-empty/32102 "2025-02-21T12:10:31Z")

</div>

we are trying to run some loginFlow tests in Java+SpringBoot which uses OKTA login and we retrieve login html page and trying to set password and username to the okta login elements. The initial URL we are attempting to…

---

## [Passing customer headers through an auth flow](https://devforum.okta.com/t/passing-customer-headers-through-an-auth-flow/32062)

<div class="topic-metadata">

**Author:** [@stevemaring](https://devforum.okta.com/u/stevemaring)\
**Replies:** 1\
**Last updated:** [February 21, 2025, 12:27pm UTC](https://devforum.okta.com/t/passing-customer-headers-through-an-auth-flow/32062 "2025-02-21T12:27:05Z")

</div>

I am using okta-spring-boot-starter 3.0.7 with spring-boot-starter-parent 3.4.2. The auth works fine. However, we would like to do a blue/green deployment within our application to test release candidates prior to swit…

---

## [How to Retrieve the Label of an AppLink in java sdk v18.0.0+](https://devforum.okta.com/t/how-to-retrieve-the-label-of-an-applink-in-java-sdk-v18-0-0/31807)

<div class="topic-metadata">

**Author:** [@Alexey](https://devforum.okta.com/u/Alexey)\
**Replies:** 1\
**Last updated:** [February 4, 2025, 11:25am UTC](https://devforum.okta.com/t/how-to-retrieve-the-label-of-an-applink-in-java-sdk-v18-0-0/31807 "2025-02-04T11:25:52Z")

</div>

In v17.0.0, there was a getLabel method: However, in v18.0.0, this method is no longer available: AppLink (Okta Java SDK 18.0.0 API) Could someone explain if this is an intentional change, and how we are supposed to r…

---

## [Upgrade okta-sdk-java to 20.x.x](https://devforum.okta.com/t/upgrade-okta-sdk-java-to-20-x-x/31844)

<div class="topic-metadata">

**Author:** [@dcao](https://devforum.okta.com/u/dcao)\
**Replies:** 1\
**Last updated:** [February 4, 2025, 11:09am UTC](https://devforum.okta.com/t/upgrade-okta-sdk-java-to-20-x-x/31844 "2025-02-04T11:09:37Z")

</div>

Hello, I’m currently using okta-sdk-java 18.0.0. I’m trying to upgrade to the latest 20.x.x. I don’t see any migration instructions. But I’m find many methods are no longer available. For example, I need to create a use…

---

## [How do you rotate a client secret using the Java SDK?](https://devforum.okta.com/t/how-do-you-rotate-a-client-secret-using-the-java-sdk/31626)

<div class="topic-metadata">

**Author:** [@np22](https://devforum.okta.com/u/np22)\
**Replies:** 0\
**Last updated:** [January 7, 2025, 8:27pm UTC](https://devforum.okta.com/t/how-do-you-rotate-a-client-secret-using-the-java-sdk/31626 "2025-01-07T20:27:00Z")

</div>

I am trying to rotate a client secret using the APIs mentioned in this guide: Client secret rotation and key management | Okta Developer Are these APIs accessible through the Java SDK?

---

## [OAuth2 JWT assertion - 401 unauthorized](https://devforum.okta.com/t/oauth2-jwt-assertion-401-unauthorized/31450)

<div class="topic-metadata">

**Author:** [@mcduser999](https://devforum.okta.com/u/mcduser999)\
**Replies:** 1\
**Last updated:** [December 13, 2024, 3:31pm UTC](https://devforum.okta.com/t/oauth2-jwt-assertion-401-unauthorized/31450 "2024-12-13T15:31:29Z")

</div>

Hello! I’m having some trouble getting JWT assertions to work in a Spring Boot application for an Okta Open ID application integration. Note the Spring Boot app works with this same OKTA application using client secret…

---

## [Okta-spring-boot-starter WebClient configuration](https://devforum.okta.com/t/okta-spring-boot-starter-webclient-configuration/31340)

<div class="topic-metadata">

**Author:** [@adam.gardner](https://devforum.okta.com/u/adam.gardner)\
**Replies:** 0\
**Last updated:** [November 28, 2024, 2:06am UTC](https://devforum.okta.com/t/okta-spring-boot-starter-webclient-configuration/31340 "2024-11-28T02:06:30Z")

</div>

We’re using the okta-spring-boot-starter package in a Reactive application with Netty as the underlying HTTP library. The application is deployed to AWS EKS, behind a NAT Gateway. NAT Gateways drop idle connections after…

---

## [No converter found capable of converting from type \[com.google.protobuf.ByteString$LiteralByteString\] to type \[java.lang.String\]](https://devforum.okta.com/t/no-converter-found-capable-of-converting-from-type-com-google-protobuf-bytestring-literalbytestring-to-type-java-lang-string/31041)

<div class="topic-metadata">

**Author:** [@Wale](https://devforum.okta.com/u/Wale)\
**Replies:** 1\
**Last updated:** [November 18, 2024, 8:34am UTC](https://devforum.okta.com/t/no-converter-found-capable-of-converting-from-type-com-google-protobuf-bytestring-literalbytestring-to-type-java-lang-string/31041 "2024-11-18T08:34:46Z")

</div>

Currently running into an issue while trying to use GCP secret manager to hide okta-client-id and secret within the application.properties. The error as seen in the title reads ‘No converter found capable of converting f…

---

## [Inline hook for registration service times out](https://devforum.okta.com/t/inline-hook-for-registration-service-times-out/31106)

<div class="topic-metadata">

**Author:** [@jelbatnigi](https://devforum.okta.com/u/jelbatnigi)\
**Replies:** 2\
**Last updated:** [November 6, 2024, 8:32am UTC](https://devforum.okta.com/t/inline-hook-for-registration-service-times-out/31106 "2024-11-06T08:32:43Z")

</div>

I have created an inline hook for self registration in OKTA and I am trying to test the API call using Preview I am getting the following error: “Hook “signupservice” execution failed. Did not observe any item or termin…

---

## [okta-java-SDK - apparently unused code (Oauth2 PEM key flow; ClientCredentialsResolver)](https://devforum.okta.com/t/okta-java-sdk-apparently-unused-code-oauth2-pem-key-flow-clientcredentialsresolver/31012)

<div class="topic-metadata">

**Author:** [@HackerMan0](https://devforum.okta.com/u/HackerMan0)\
**Replies:** 3\
**Last updated:** [November 5, 2024, 4:59pm UTC](https://devforum.okta.com/t/okta-java-sdk-apparently-unused-code-oauth2-pem-key-flow-clientcredentialsresolver/31012 "2024-11-05T16:59:30Z")

</div>

I believe I have found a unused/unnecessary bit of code in the okta-java-sdk and would like to bring it your attention. In the DefaultClientBuilder#build method, if you are configuring the client for OAuth2 with private…

---

## [Cannot build spring-boot maven project](https://devforum.okta.com/t/cannot-build-spring-boot-maven-project/31079)

<div class="topic-metadata">

**Author:** [@doaafarouk](https://devforum.okta.com/u/doaafarouk)\
**Replies:** 1\
**Last updated:** [October 31, 2024, 2:19pm UTC](https://devforum.okta.com/t/cannot-build-spring-boot-maven-project/31079 "2024-10-31T14:19:41Z")

</div>

I’m following below tutorial, to create my first oauth0 spring-boot application: I added the following dependency to the application: \<dependency\> \<groupId\>com.okta\</groupId\> \<artifactId\>okta-spring-boot-starter\<…

---

## [Docs about okta-http-httpclient and Java SDK](https://devforum.okta.com/t/docs-about-okta-http-httpclient-and-java-sdk/31050)

<div class="topic-metadata">

**Author:** [@EricL\_BG](https://devforum.okta.com/u/EricL_BG)\
**Replies:** 0\
**Last updated:** [October 28, 2024, 5:20pm UTC](https://devforum.okta.com/t/docs-about-okta-http-httpclient-and-java-sdk/31050 "2024-10-28T17:20:29Z")

</div>

We use the Okta Java SDK to communicate between our API server and our Okta instance. This is primarily used to manage users and groups from within our app. For that, we use com.okta.sdk:okta-sdk-api:16.0.0 (Gradle 8) a…

---

## [Java: Disable Email Trigger for Reset Password in Okta Identity Engine](https://devforum.okta.com/t/java-disable-email-trigger-for-reset-password-in-okta-identity-engine/30971)

<div class="topic-metadata">

**Author:** [@Del](https://devforum.okta.com/u/Del)\
**Replies:** 2\
**Last updated:** [October 22, 2024, 5:46pm UTC](https://devforum.okta.com/t/java-disable-email-trigger-for-reset-password-in-okta-identity-engine/30971 "2024-10-22T17:46:30Z")

</div>

Hi, I’m encountering an issue while upgrading from Classic to Identity Engine. I followed the embedded solution example. In the Classic version, there was an option to trigger the resetPassword flow by passing a boolea…

---

## [Cant use "authenticate" from AuthenticationClient](https://devforum.okta.com/t/cant-use-authenticate-from-authenticationclient/30623)

<div class="topic-metadata">

**Author:** [@DragonIllya](https://devforum.okta.com/u/DragonIllya)\
**Replies:** 2\
**Last updated:** [October 7, 2024, 11:13am UTC](https://devforum.okta.com/t/cant-use-authenticate-from-authenticationclient/30623 "2024-10-07T11:13:35Z")

</div>

I want to authenticate a user using username and password. I found on github (GitHub - okta/okta-auth-java: okta-auth-java) how it is done. I have all needed dependencys. The method “authenticate” from “AuthenticationCl…

---

## [The web application jumps to the okta login page and reports 400 after login](https://devforum.okta.com/t/the-web-application-jumps-to-the-okta-login-page-and-reports-400-after-login/30453)

<div class="topic-metadata">

**Author:** [@lsp](https://devforum.okta.com/u/lsp)\
**Replies:** 1\
**Last updated:** [October 2, 2024, 6:07am UTC](https://devforum.okta.com/t/the-web-application-jumps-to-the-okta-login-page-and-reports-400-after-login/30453 "2024-10-02T06:07:20Z")

</div>

I want to use springboot to integrate okta’s OIDC to achieve single sign-on, and obtain some information of login users and accessToken from my springboot project to complete business requirements. However, after I build…

---

## [Redirect url issue spring boot](https://devforum.okta.com/t/redirect-url-issue-spring-boot/30690)

<div class="topic-metadata">

**Author:** [@vinaythepreast1](https://devforum.okta.com/u/vinaythepreast1)\
**Replies:** 1\
**Last updated:** [September 25, 2024, 8:17pm UTC](https://devforum.okta.com/t/redirect-url-issue-spring-boot/30690 "2024-09-25T20:17:33Z")

</div>

I have configured okta in my spring boot and my redirect url is set as Okta.redirect-uri:/okta-login/okta/callback It is working fine in localhost But when i deploy my spring boot app to my domain https:carnationit:84…

---

## [How to refresh google token](https://devforum.okta.com/t/how-to-refresh-google-token/30608)

<div class="topic-metadata">

**Author:** [@vinaythepreast1](https://devforum.okta.com/u/vinaythepreast1)\
**Replies:** 1\
**Last updated:** [September 25, 2024, 6:14pm UTC](https://devforum.okta.com/t/how-to-refresh-google-token/30608 "2024-09-25T18:14:16Z")

</div>

Hi , I have implemented google as an external idenetity provider in okta . And i am able to get both okta and google token. But my google token expires in every 1 hour how to make this seamless since okta does not provid…

---

## [OKTA OIDC Authentication with java apps](https://devforum.okta.com/t/okta-oidc-authentication-with-java-apps/30119)

<div class="topic-metadata">

**Author:** [@kazokta](https://devforum.okta.com/u/kazokta)\
**Replies:** 1\
**Last updated:** [August 20, 2024, 7:22am UTC](https://devforum.okta.com/t/okta-oidc-authentication-with-java-apps/30119 "2024-08-20T07:22:01Z")

</div>

I need to implement OKTA OIDC authentication in our existing java struts web application running on Java 8.

---

## [Missing clientId with authorization\_code flow in thymeleaf project](https://devforum.okta.com/t/missing-clientid-with-authorization-code-flow-in-thymeleaf-project/29518)

<div class="topic-metadata">

**Author:** [@ferlaymat](https://devforum.okta.com/u/ferlaymat)\
**Replies:** 4\
**Last updated:** [August 6, 2024, 6:32pm UTC](https://devforum.okta.com/t/missing-clientid-with-authorization-code-flow-in-thymeleaf-project/29518 "2024-08-06T18:32:52Z")

</div>

Hi all, I’m using the following dependency: com.okta.spring okta-spring-boot-starter 3.0.7 and I try to apply authorization\_code flow. I have managed to call the server and…

---

## [Okta java authn and sdk](https://devforum.okta.com/t/okta-java-authn-and-sdk/29449)

<div class="topic-metadata">

**Author:** [@liran](https://devforum.okta.com/u/liran)\
**Replies:** 2\
**Last updated:** [July 23, 2024, 12:26pm UTC](https://devforum.okta.com/t/okta-java-authn-and-sdk/29449 "2024-07-23T12:26:30Z")

</div>

We have a java SDK (okta-sdk-java), version 8.2.0 and auth sdk (okta-auth-java), version 2.0.7 Java SDK has been retired, and we’d like to upgrade to version 10.1.3. However, seems like auth (even the newest version, 3…

[Next page](https://devforum.okta.com/tag/java/4.md?match_all_tags=true&page=1&tags%5B%5D=java)
