Comments (5)
Thanks @landon-shumway! This is NOT expected, caching is actually disabled:
https://github.com/okta/okta-auth-java/blob/master/impl/src/main/java/com/okta/authn/sdk/impl/client/DefaultAuthenticationClient.java#L68
The Javadoc is wrong, we will fix that (it was likely a copypasta from our Management SDK)
As for the cache issue, do you have any OKTA_*
environment variables, or a ~/.okta/okta.yaml
file.
from okta-auth-java.
We do not. We only set the URL to our Okta account which is defined as a static constant in the same Java class as that code snippet.
from okta-auth-java.
@landon-shumway Thanks for raising this! Just so I understand the issue better, how are you executing the /oauth2/v1/authorize
call and the next /oauth2/v1/token
call? In other words, I assume the Auth SDK is used only for the first session token call, right?
from okta-auth-java.
@arvindkrishnakumar-okta We use RestTemplate to call the /oauth2/v1/authorize
endpoint, and then we extract the access token from the location header (this snippet if pulled together from several functions, so I apologize if I'm missing a step here):
ResponseEntity<String> response = restTemplate.exchange(authorizeUrl, HttpMethod.GET, entity, String.class);
URI location = response.getHeaders().getLocation();
List<NameValuePair> queryValues = URLEncodedUtils.parse(location.getFragment(), Charsets.UTF_8);
Optional<NameValuePair> accessToken =
queryValues.stream().filter(x -> x.getName().equals(ACCESS_TOKEN_NAME)).findFirst();
return accessToken.get().getValue();
Yes, we were only using the Auth SDK to generate the OIDC session token. All of our other calls to Okta are made through RestTemplate.
from okta-auth-java.
@landon-shumway is this still an issue?
Feel free to reopen with comments if needed.
from okta-auth-java.
Related Issues (20)
- Unable to use "correctAnswer" from AuthenticationResponse. HOT 17
- unable to find API to send MFA Enroll activation link via email/sms HOT 3
- Error while updating Plaid SDK 3.5.0 (Duplicate class org.bouncycastle.LICENSE) HOT 3
- Missing nullability annotations in AuthenticationStateHandler HOT 3
- is:issue is:open Okta authentication crashes, maybe okhttp library compatibility. HOT 4
- HttpClientConfiguration.getRequestExecutorParams() deprecated
- AuthenticationException localizedMessages do not adhere to Android device locale settings HOT 1
- authenticationClient.authenticate() does not return locked_out status HOT 1
- 2.0.5 dependencies result in build error HOT 2
- Resend OTP after 5 minutes - MFA. HOT 4
- enrollFactor method HOT 12
- DefaultAuthenticationClient.translateException() should be able to handle null errorCode HOT 2
- Failed resolution of: Ljava/time/format/DateTimeFormatter on Android 7 devices HOT 6
- Getting NoClassDefFound for BaseClient.java while using okta-authn-sdk-api:2.0.9 with okta-sdk-api:10.0.0 HOT 4
- Upgrade dependency okta-sdk-java version HOT 8
- Security vulnerability via transitive `dependencybcprov-jdk18on:1.75` HOT 3
- forgot password with trusted application HOT 9
- Primary authentication with trusted application not supported by SDK HOT 4
- Authentication Client Verify Factor throws Resource Exception instead of AuthenticationException HOT 4
- Incorrect key while retrieving correct answer from EmbeddedResponse HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from okta-auth-java.