Skip to content
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

Error when not logged in could be better #403

Open
robertdamphousse-okta opened this issue Jan 19, 2023 · 0 comments
Open

Error when not logged in could be better #403

robertdamphousse-okta opened this issue Jan 19, 2023 · 0 comments

Comments

@robertdamphousse-okta
Copy link
Collaborator

I had skipped the step of okta login before trying to use okta apps create and I got a fairly verbose stack trace that didn't necessarily indicate that I needed to login:

Application name [test]: test
Redirect URI
Common defaults:
 Quarkus OIDC - http://localhost:8080/callback
 JHipster - http://localhost:8080/login/oauth2/code/oidc
 Spring Security - http://localhost:8080/login/oauth2/code/okta
Enter your Redirect URI(s) [http://localhost:8080/callback]: http://localhost:3000/authorization-code/callback
Enter your Post Logout Redirect URI(s) [http://localhost:3000/]: http://localhost:3000
2023-01-18T16:35:48.706-0800 FINE com.okta.sdk.impl.config.OptionalPropertiesSource getProperties - Unable to obtain properties from optional properties source com.okta.sdk.impl.config.ResourcePropertiesSource@696e1aa9
2023-01-18T16:35:48.706-0800 FINE com.okta.sdk.impl.config.OptionalPropertiesSource getProperties - Unable to obtain properties from optional properties source com.okta.sdk.impl.config.YAMLPropertiesSource@187f7454
2023-01-18T16:35:48.707-0800 FINE com.okta.sdk.impl.client.DefaultClientBuilder build - No CacheManager configured. Defaulting to in-memory CacheManager with default TTL and TTI of five minutes.
java.lang.IllegalArgumentException: Your Okta URL is missing. You can copy your domain from the Okta Developer Console. Follow these instructions to find it: https://bit.ly/finding-okta-domain
	at com.okta.commons.configcheck.ValidationResponse.lambda$ifInvalidThrow$0(ValidationResponse.java:44)
	at com.okta.commons.configcheck.ValidationResponse.ifInvalid(ValidationResponse.java:50)
	at com.okta.commons.configcheck.ValidationResponse.ifInvalidThrow(ValidationResponse.java:43)
	at com.okta.commons.configcheck.ConfigurationValidator.assertOrgUrl(ConfigurationValidator.java:74)
	at com.okta.sdk.impl.client.DefaultClientBuilder.build(DefaultClientBuilder.java:363)
	at com.okta.cli.commands.apps.AppsCreate.createWebApp(AppsCreate.java:108)
	at com.okta.cli.commands.apps.AppsCreate.runCommand(AppsCreate.java:84)
	at com.okta.cli.commands.BaseCommand.call(BaseCommand.java:41)
	at com.okta.cli.commands.BaseCommand.call(BaseCommand.java:26)
	at picocli.CommandLine.executeUserObject(CommandLine.java:1953)
	at picocli.CommandLine.access$1300(CommandLine.java:145)
	at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2358)
	at picocli.CommandLine$RunLast.handle(CommandLine.java:2352)
	at picocli.CommandLine$RunLast.handle(CommandLine.java:2314)
	at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2179)
	at picocli.CommandLine$RunLast.execute(CommandLine.java:2316)
	at picocli.CommandLine.execute(CommandLine.java:2078)
	at com.okta.cli.OktaCli.run(OktaCli.java:68)
	at com.okta.cli.OktaCli.main(OktaCli.java:58)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant