I’m trying to create an Okta (SPA) app however okta apps create --verbose
fails.
Okta version: 0.8.0-a890123
brieseh in test ❯ okta apps create --verbose
Application name [test]: test
Type of Application
(The Okta CLI only supports a subset of application types and properties):
> 1: Web
> 2: Single Page App
> 3: Native App (mobile)
> 4: Service (Machine-to-Machine)
Enter your choice [Web]: 2
Redirect URI
Common defaults:
/callback - http://localhost:8080/callback
Enter your Redirect URI(s) [http://localhost:8080/callback]: http://localhost:3006/login/callback
Enter your Post Logout Redirect URI(s) [http://localhost:3006/]:
Your Okta Organization has multiple Authorization Servers (Issuer), please select one:
> 1: --REDACTED--
> 2: --REDACTED--
> 3: --REDACTED--
> 4: --REDACTED--
> 5: --REDACTED--
> 6: --REDACTED--
> 7: default - --REDACTED--/oauth2/default
> 8: --REDACTED--
Enter your choice [--REDACTED--]: 7
Configuring a new OIDC Application, almost done:
/
java.lang.IllegalStateException: Only a single resource was expected, but this list contains more than one item.
at com.okta.sdk.impl.resource.AbstractCollectionResource.single(AbstractCollectionResource.java:86)
at com.okta.cli.common.service.DefaultOidcAppCreator.assignAppToEveryoneGroup(DefaultOidcAppCreator.java:188)
at com.okta.cli.common.service.DefaultOidcAppCreator.lambda$createOidcSpaApp$2(DefaultOidcAppCreator.java:139)
at java.util.Optional.orElseGet(Optional.java:369)
at com.okta.cli.common.service.DefaultOidcAppCreator.createOidcSpaApp(DefaultOidcAppCreator.java:117)
at com.okta.cli.common.service.DefaultSetupService.createOidcApplication(DefaultSetupService.java:197)
at com.okta.cli.commands.apps.AppsCreate.createSpaApp(AppsCreate.java:180)
at com.okta.cli.commands.apps.AppsCreate.runCommand(AppsCreate.java:86)
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:1783)
at picocli.CommandLine.access$900(CommandLine.java:145)
at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2150)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2144)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2108)
at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:1975)
at picocli.CommandLine.execute(CommandLine.java:1904)
at com.okta.cli.OktaCli.run(OktaCli.java:64)
at com.okta.cli.OktaCli.main(OktaCli.java:54)
The app shows when I run okta apps
but I’m unable to confirm whether the app has been configured correctly as I only have access via the Okta API