-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
String Index Out Of Range (bare) / 401 (with /oauth2/default) - when using example #7
Comments
Hey @MarcelTon! Okta has two different types of issuers one for the Okta Dashboard/Admin console this is typically formatted as Our Spring integration performs local validation of the access token by default, and this can ONLY be done for the API Access Management issuer (so this is likely why one worked and the other didn't) You can work around this by validating the access token remotely by setting the property The easiest path forward is to use the Which leads us to the |
Hi @bdemers , thank you for your quick response. I have removed the part of my colleague being able to run the server, miscommunication. He can get a flow working with just the client, but obviously doesn't get any cool car list! My title was unclear, I will try to clarify on the 401 (1 and 2) and would like to ask a follow-up question regarding the API Access Management issuer (3).
This is reproducible behaviour simply done by a fresh checkout (and verified by my colleagues so I was sure I wasn't losing it), changing the two config parameters and running
I will play around with the EDIT: I removed the "it works for my colleague"-stuff, we all can not run the server app and have the same errors for java8 and java11. |
What comes back from a request to |
I think that you should set the org-url: okta.client.org-url= |
For a @Override
public void configure(ResourceServerSecurityConfigurer resources) throws Exception {
resources.resourceId("${aud}");
} in the |
I can not run the server with "our company" configuration and am unsure why. After creating an SPA Client in Okta with OpenID Connect I clone the project. I adjust the configuration as follows:
application.yml:
app.module.ts:
Java version:
Maven version:
JAVA_HOME:
If I then run
./mvnw spring-boot:run
from theserver
folder I get the following error:If I change my config to the below "default" from the clone my backend runs just fine.
application.yml:
Obviously I can't onboard users that way haha, but it runs. If I use
https://company.okta.com/oauth2/default by the way (this isn't what is shown in the Issuer field in Okta, but just in case) I receive the following error:
Could you tell me what I can try/provide to get it running on my machine? I'm at my wits end. Using Java11 + the Issuer as shown in Okta gives the same error, albeit formatted a little differently:
The text was updated successfully, but these errors were encountered: