# \#java

**URL:** https://devforum.okta.com/tag/java/4.md?page=2

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

**Page:** 3

---

## [How to get SSWS {{apikey}} and roles?](https://devforum.okta.com/t/how-to-get-ssws-apikey-and-roles/21766)

<div class="topic-metadata">

**Author:** [@Jvalekar](https://devforum.okta.com/u/Jvalekar)\
**Replies:** 6\
**Last updated:** [July 9, 2023, 8:36am UTC](https://devforum.okta.com/t/how-to-get-ssws-apikey-and-roles/21766 "2023-07-09T08:36:04Z")

</div>

Hello All, I am new to Okta and I have okta sandbox details only. Can anyone please tell me where I get the roles for a particular user and how can i get the API key for the SSWS {{apikey}} for the postman?

---

## [Audience Server](https://devforum.okta.com/t/audience-server/16075)

<div class="topic-metadata">

**Author:** [@nelson.gomes](https://devforum.okta.com/u/nelson.gomes)\
**Replies:** 3\
**Last updated:** [July 6, 2023, 8:24pm UTC](https://devforum.okta.com/t/audience-server/16075 "2023-07-06T20:24:19Z")

</div>

Sorry for the question But what is exactly a audience server or only audience Seems to be related with Authorizatiin Server Is some kind of log ? Or auditor server I can access in admin console ? Thanks Nelson Gom…

---

## [How do I get the access token from session token (java)](https://devforum.okta.com/t/how-do-i-get-the-access-token-from-session-token-java/24499)

<div class="topic-metadata">

**Author:** [@Jasonmah](https://devforum.okta.com/u/Jasonmah)\
**Replies:** 1\
**Last updated:** [June 9, 2023, 7:50am UTC](https://devforum.okta.com/t/how-do-i-get-the-access-token-from-session-token-java/24499 "2023-06-09T07:50:09Z")

</div>

I’m not using Spring boot, just raw java and the following libraries: okta-authn-sdk-api okta-authn-sdk-impl okta-sdk-httpclient okta-commons-lang I managed to get MFA validation to success and receive a session tok…

---

## [Trying Okta with Spring Boot. "\[invalid\_token\_response\] An error occurred while attempting to retrieve the OAuth 2.0 Access Token Response: 401 Unauthorized: \[no body\]"](https://devforum.okta.com/t/trying-okta-with-spring-boot-invalid-token-response-an-error-occurred-while-attempting-to-retrieve-the-oauth-2-0-access-token-response-401-unauthorized-no-body/24424)

<div class="topic-metadata">

**Author:** [@amitkumar](https://devforum.okta.com/u/amitkumar)\
**Replies:** 1\
**Last updated:** [June 6, 2023, 7:11am UTC](https://devforum.okta.com/t/trying-okta-with-spring-boot-invalid-token-response-an-error-occurred-while-attempting-to-retrieve-the-oauth-2-0-access-token-response-401-unauthorized-no-body/24424 "2023-06-06T07:11:31Z")

</div>

Dear Okta developers, New to Okta. I tried using Okta with a spring boot web app. When I start the spring boot web app and go to “http://localhost:8080” I get below: Login with OAuth 2.0 \[invalid\_token\_response\] An er…

---

## [I am trying okta outh2 spring security](https://devforum.okta.com/t/i-am-trying-okta-outh2-spring-security/24354)

<div class="topic-metadata">

**Author:** [@rajkumarsindri](https://devforum.okta.com/u/rajkumarsindri)\
**Replies:** 0\
**Last updated:** [May 24, 2023, 10:38pm UTC](https://devforum.okta.com/t/i-am-trying-okta-outh2-spring-security/24354 "2023-05-24T22:38:49Z")

</div>

While I was configuring the secuirty I found all other API’s are working one one API is there is failing. It’s throwing 200 server response code but response is Please sign in Login with OAuth 2.0 …

---

## [Okta integration with Spring mvc](https://devforum.okta.com/t/okta-integration-with-spring-mvc/9409)

<div class="topic-metadata">

**Author:** [@gaurav0067](https://devforum.okta.com/u/gaurav0067)\
**Replies:** 2\
**Last updated:** [June 5, 2023, 2:54pm UTC](https://devforum.okta.com/t/okta-integration-with-spring-mvc/9409 "2023-06-05T14:54:52Z")

</div>

Hi All, I am working on to integrate Okta in my Spring MVC project, I searched for Spring projects with Okta but I am finding only Okta with Spring boot project, could you help me with my query to integrate Okta in any …

---

## [Java Management SDK mark scope as optional](https://devforum.okta.com/t/java-management-sdk-mark-scope-as-optional/24440)

<div class="topic-metadata">

**Author:** [@malmberg.seth](https://devforum.okta.com/u/malmberg.seth)\
**Replies:** 1\
**Last updated:** [June 4, 2023, 5:10am UTC](https://devforum.okta.com/t/java-management-sdk-mark-scope-as-optional/24440 "2023-06-04T05:10:38Z")

</div>

I am trying to use the Java Management SDK to create scopes (org.openapitools.client.api.AuthorizationServerApi#createOAuth2Scope(java.lang.String, org.openapitools.client.model.OAuth2Scope)). In the UI I see an option f…

---

## [Okta-spring-boot-starter Cannot Create an Anonymous Route Exception](https://devforum.okta.com/t/okta-spring-boot-starter-cannot-create-an-anonymous-route-exception/24409)

<div class="topic-metadata">

**Author:** [@fmi\_dev\_ryckbirch](https://devforum.okta.com/u/fmi_dev_ryckbirch)\
**Replies:** 2\
**Last updated:** [June 1, 2023, 7:50pm UTC](https://devforum.okta.com/t/okta-spring-boot-starter-cannot-create-an-anonymous-route-exception/24409 "2023-06-01T19:50:17Z")

</div>

I am integrating okta-spring-boot-starter into an existing API backend application. I want to use the okta-spring-boot-starter and application.yml based configuration only. And it works great. However, I need to expose…

---

## [Registering a new user with IDX and Java](https://devforum.okta.com/t/registering-a-new-user-with-idx-and-java/24141)

<div class="topic-metadata">

**Author:** [@phi1ipp](https://devforum.okta.com/u/phi1ipp)\
**Replies:** 8\
**Last updated:** [May 26, 2023, 5:42pm UTC](https://devforum.okta.com/t/registering-a-new-user-with-idx-and-java/24141 "2023-05-26T17:42:42Z")

</div>

Another approach to a user registration with IDX this time in Java. Here is the list of things configured: Email verification is required for new users Email, Phone, etc all are Optional in the enrollment policy, only…

---

## [Header based application logout](https://devforum.okta.com/t/header-based-application-logout/24332)

<div class="topic-metadata">

**Author:** [@anu](https://devforum.okta.com/u/anu)\
**Replies:** 0\
**Last updated:** [May 23, 2023, 3:58am UTC](https://devforum.okta.com/t/header-based-application-logout/24332 "2023-05-23T03:58:37Z")

</div>

Hi, I am testing a custom application, which is integrated as header based with Okta and f5 as reverse proxy. Okta and F5 integrated as SAML and F5 sending the attributes via header to backend application. What is the …

---

## [OKTA SDK 10.3.0 Upgrade with Spring boot App](https://devforum.okta.com/t/okta-sdk-10-3-0-upgrade-with-spring-boot-app/24294)

<div class="topic-metadata">

**Author:** [@manivannanm](https://devforum.okta.com/u/manivannanm)\
**Replies:** 2\
**Last updated:** [May 19, 2023, 2:19pm UTC](https://devforum.okta.com/t/okta-sdk-10-3-0-upgrade-with-spring-boot-app/24294 "2023-05-19T14:19:03Z")

</div>

Getting below exception while trying to start the spring boot application and initialize the bean in App.java. okta.sdk.version → 10.3.0 Anyone faced this kind of issue? This is working fine in plain new spring boot a…

---

## [Okta setup example for Legacy Spring Application (No Spring Boot)](https://devforum.okta.com/t/okta-setup-example-for-legacy-spring-application-no-spring-boot/18180)

<div class="topic-metadata">

**Author:** [@gauravsmob](https://devforum.okta.com/u/gauravsmob)\
**Replies:** 2\
**Last updated:** [May 18, 2023, 3:55pm UTC](https://devforum.okta.com/t/okta-setup-example-for-legacy-spring-application-no-spring-boot/18180 "2023-05-18T15:55:54Z")

</div>

Hello, We are looking for documentation/tutorials about setting up Okta with Legacy Spring Application (No Spring Boot). Just like for Spring Boot we have in GitHub - okta/okta-spring-boot: Okta Spring Boot Starter Offi…

---

## [Access Springboot rest api via Auth token](https://devforum.okta.com/t/access-springboot-rest-api-via-auth-token/23803)

<div class="topic-metadata">

**Author:** [@mnibras](https://devforum.okta.com/u/mnibras)\
**Replies:** 2\
**Last updated:** [March 31, 2023, 10:26pm UTC](https://devforum.okta.com/t/access-springboot-rest-api-via-auth-token/23803 "2023-03-31T22:26:33Z")

</div>

I have a spring boot Rest API. This API is invoked by some other spring boot application. I’m using Okta for security. These are the steps I have followed Create new App integration as API Services. Create a default sc…

---

## [Okta ADSSO is not working for non admin local user](https://devforum.okta.com/t/okta-adsso-is-not-working-for-non-admin-local-user/23602)

<div class="topic-metadata">

**Author:** [@Jvalekar](https://devforum.okta.com/u/Jvalekar)\
**Replies:** 0\
**Last updated:** [March 9, 2023, 3:28pm UTC](https://devforum.okta.com/t/okta-adsso-is-not-working-for-non-admin-local-user/23602 "2023-03-09T15:28:54Z")

</div>

Hi All, We are facing an okta ADSSO issue in the client environment. We are using react SPA for the authentication and authorization of the application for all the desktop apps. Now Desktop user who doesn’t have local a…

---

## [Okta Agentless Desktop SSO is not working for multiple user](https://devforum.okta.com/t/okta-agentless-desktop-sso-is-not-working-for-multiple-user/23535)

<div class="topic-metadata">

**Author:** [@Jvalekar](https://devforum.okta.com/u/Jvalekar)\
**Replies:** 0\
**Last updated:** [March 5, 2023, 8:11am UTC](https://devforum.okta.com/t/okta-agentless-desktop-sso-is-not-working-for-multiple-user/23535 "2023-03-05T08:11:44Z")

</div>

Hi All, Our client is using agentless desktop sso and they have done kerberos changes on the desktop machine. We are using react SPA for the login desktop application which is hosted okta sign-in page. a domain name lik…

---

## [Update user in okta java sdk](https://devforum.okta.com/t/update-user-in-okta-java-sdk/23400)

<div class="topic-metadata">

**Author:** [@venky7](https://devforum.okta.com/u/venky7)\
**Replies:** 1\
**Last updated:** [February 21, 2023, 9:38pm UTC](https://devforum.okta.com/t/update-user-in-okta-java-sdk/23400 "2023-02-21T21:38:15Z")

</div>

Hi, I am using Java SDK to implement okta. I have already implemented create user profile api. Now this question is for updating user profile. When I tried to update any user information like user role, do we have any a…

---

## [Api example to fetch user last logintime for an application using systemlog api with filters?](https://devforum.okta.com/t/api-example-to-fetch-user-last-logintime-for-an-application-using-systemlog-api-with-filters/23241)

<div class="topic-metadata">

**Author:** [@Hari1692](https://devforum.okta.com/u/Hari1692)\
**Replies:** 1\
**Last updated:** [February 5, 2023, 4:23am UTC](https://devforum.okta.com/t/api-example-to-fetch-user-last-logintime-for-an-application-using-systemlog-api-with-filters/23241 "2023-02-05T04:23:38Z")

</div>

Systemlog Api example to fetch user last logintime for an application using filters?

---

## [Redirect to SignUp not working in my react application](https://devforum.okta.com/t/redirect-to-signup-not-working-in-my-react-application/21658)

<div class="topic-metadata">

**Author:** [@rohit1](https://devforum.okta.com/u/rohit1)\
**Replies:** 1\
**Last updated:** [February 4, 2023, 5:33am UTC](https://devforum.okta.com/t/redirect-to-signup-not-working-in-my-react-application/21658 "2023-02-04T05:33:32Z")

</div>

I am developing a react + spring boot application. on a link we want to redirect the user to Sign up page of Okta. I have checked many blogs in Okta and in all of them we are redirecting to login page and not sign up pag…

---

## [General OpenSslEngine problem when calling an Inline Hook](https://devforum.okta.com/t/general-opensslengine-problem-when-calling-an-inline-hook/23052)

<div class="topic-metadata">

**Author:** [@joelbloch](https://devforum.okta.com/u/joelbloch)\
**Replies:** 4\
**Last updated:** [January 25, 2023, 10:26am UTC](https://devforum.okta.com/t/general-opensslengine-problem-when-calling-an-inline-hook/23052 "2023-01-25T10:26:02Z")

</div>

Hello, I am developing a SAML inlinke Hooks on my dev tenant. I was surprised to see that only https url were allowed to call an API when registering an inline hook. So I generated a self-signed certificate, and change…

---

## [Java pagination](https://devforum.okta.com/t/java-pagination/22751)

<div class="topic-metadata">

**Author:** [@gabriel.sroka](https://devforum.okta.com/u/gabriel.sroka)\
**Replies:** 2\
**Last updated:** [December 21, 2022, 6:20pm UTC](https://devforum.okta.com/t/java-pagination/22751 "2022-12-21T18:20:31Z")

</div>

Pagination doesn’t seem to work with Java SDK 10.0. I’ve read old posts and old readmes. I created an issue 6 days ago, but didn’t see a response: What’s the SLA on responses? Thanks.

---

## [What's the replacement for putProfileProperty() in okta-sdk-java 10.0.0](https://devforum.okta.com/t/whats-the-replacement-for-putprofileproperty-in-okta-sdk-java-10-0-0/22674)

<div class="topic-metadata">

**Author:** [@dcao](https://devforum.okta.com/u/dcao)\
**Replies:** 2\
**Last updated:** [December 6, 2022, 12:35am UTC](https://devforum.okta.com/t/whats-the-replacement-for-putprofileproperty-in-okta-sdk-java-10-0-0/22674 "2022-12-06T00:35:21Z")

</div>

What is the fix for the putProfileProperty() in version 10.0.0? // Create a User Account user = UserBuilder.instance() .setEmail(email) .setFirstName("Joe") …

---

## [Refresh token exchanges to /oauth2/default/v1/token 401s from staging but not from local](https://devforum.okta.com/t/refresh-token-exchanges-to-oauth2-default-v1-token-401s-from-staging-but-not-from-local/22587)

<div class="topic-metadata">

**Author:** [@slemly](https://devforum.okta.com/u/slemly)\
**Replies:** 8\
**Last updated:** [December 1, 2022, 8:12pm UTC](https://devforum.okta.com/t/refresh-token-exchanges-to-oauth2-default-v1-token-401s-from-staging-but-not-from-local/22587 "2022-12-01T20:12:11Z")

</div>

We recently built out an endpoint in our API to allow a user to supply a refresh token and retrieve a new refresh token, using a request from our services as described here. When testing on our local machines, this flow…

---

## [JWT validation in Spring boot failing](https://devforum.okta.com/t/jwt-validation-in-spring-boot-failing/22593)

<div class="topic-metadata">

**Author:** [@ABD](https://devforum.okta.com/u/ABD)\
**Replies:** 1\
**Last updated:** [November 29, 2022, 2:38pm UTC](https://devforum.okta.com/t/jwt-validation-in-spring-boot-failing/22593 "2022-11-29T14:38:34Z")

</div>

I am trying to implement Okta+Spring Security for a backend Spring boot service. However, whenever I pass a valid access token in the header of any request to the service, a 401 is returned with the error failed to valid…

---

## [Making an API call in java behind the scenes](https://devforum.okta.com/t/making-an-api-call-in-java-behind-the-scenes/22439)

<div class="topic-metadata">

**Author:** [@dina.farbman](https://devforum.okta.com/u/dina.farbman)\
**Replies:** 2\
**Last updated:** [November 15, 2022, 5:15pm UTC](https://devforum.okta.com/t/making-an-api-call-in-java-behind-the-scenes/22439 "2022-11-15T17:15:48Z")

</div>

Hi, I have a Java app, and I need to integrate OKTA. I need to login to the app with an okta account, and get the user’s group list from OKTA. I got the login part working (authorization code flow). When the groups a…

---

## [Okta- kerberos-authentication](https://devforum.okta.com/t/okta-kerberos-authentication/22334)

<div class="topic-metadata">

**Author:** [@Jvalekar](https://devforum.okta.com/u/Jvalekar)\
**Replies:** 1\
**Last updated:** [November 3, 2022, 10:49pm UTC](https://devforum.okta.com/t/okta-kerberos-authentication/22334 "2022-11-03T22:49:04Z")

</div>

Can anybody guide me on how OKTA single sign-on works with Kerberos authentication setup on the active directory? Thank you in the advance!

---

## [How to provide unauthenticated route](https://devforum.okta.com/t/how-to-provide-unauthenticated-route/22269)

<div class="topic-metadata">

**Author:** [@mnibras](https://devforum.okta.com/u/mnibras)\
**Replies:** 3\
**Last updated:** [October 31, 2022, 3:29pm UTC](https://devforum.okta.com/t/how-to-provide-unauthenticated-route/22269 "2022-10-31T15:29:39Z")

</div>

I’m developing Springboot and React web application secured by Okta. All the react web pages are now behind Okta security. Now I want a public web page (https://my.example.com/welcome) that all the users can visit regar…

---

## [Failed to authenticate Staged users (Authentication Failed)](https://devforum.okta.com/t/failed-to-authenticate-staged-users-authentication-failed/22272)

<div class="topic-metadata">

**Author:** [@en9662](https://devforum.okta.com/u/en9662)\
**Replies:** 1\
**Last updated:** [October 30, 2022, 11:10pm UTC](https://devforum.okta.com/t/failed-to-authenticate-staged-users-authentication-failed/22272 "2022-10-30T23:10:34Z")

</div>

I tried to authenticate STAGED users through either /authn or Java SDK in Service app but I kept getting Authentication Failed despite providing correct credentials! Is there a way to determine whether a STAGED user has…

---

## [Failed to get user password using Java SDK](https://devforum.okta.com/t/failed-to-get-user-password-using-java-sdk/22259)

<div class="topic-metadata">

**Author:** [@en9662](https://devforum.okta.com/u/en9662)\
**Replies:** 1\
**Last updated:** [October 27, 2022, 7:10pm UTC](https://devforum.okta.com/t/failed-to-get-user-password-using-java-sdk/22259 "2022-10-27T19:10:12Z")

</div>

I keep getting a null password through UserCredentials. However, the password is already set and can be authenticated using /authn from Okta tenant. com.okta.sdk.resource.user.User userInfoFromOkta = client.getUser(user…

---

## [HTTP 404, E0000007 when updating a user's email with Java SDK](https://devforum.okta.com/t/http-404-e0000007-when-updating-a-users-email-with-java-sdk/22133)

<div class="topic-metadata">

**Author:** [@slemly](https://devforum.okta.com/u/slemly)\
**Replies:** 2\
**Last updated:** [October 24, 2022, 6:29pm UTC](https://devforum.okta.com/t/http-404-e0000007-when-updating-a-users-email-with-java-sdk/22133 "2022-10-24T18:29:05Z")

</div>

We are implementing a feature that allows a user to update their email with our service. In order to keep Okta’s user management in sync with our tables, we are attempting to use the Java Okta SDK to update the user wit…

---

## [Identify user based on custom parameter](https://devforum.okta.com/t/identify-user-based-on-custom-parameter/22128)

<div class="topic-metadata">

**Author:** [@rohit1](https://devforum.okta.com/u/rohit1)\
**Replies:** 0\
**Last updated:** [October 12, 2022, 1:42pm UTC](https://devforum.okta.com/t/identify-user-based-on-custom-parameter/22128 "2022-10-12T13:42:38Z")

</div>

Hi Team We have an usecase wherer a Patient can add caregivers.On Adding caregiver event on UI we are hitting OKTA api from backend to create user without credential and send email api to send okta activation link on us…

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

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