Tagged: ,

This topic has 6 replies, 2 voices, and was last updated 5 years, 5 months ago by stevenswj.

  • Author
    Posts
  • #16790
     stevenswj
    Participant

    Running the Login.bat from the example client scripts:

    C:\Users\R28569\Desktop\ExampleClientSDK-CLI-12.0.0>scripts\Login.bat
    Realm (e.g. /): /
    Login module name (e.g. DataStore or LDAP): DataStore
    Login locale (e.g. en_US or fr_FR): en_US
    com.sun.identity.authentication.spi.AuthLoginException: Failed to create new Authentication C
    ontext: Cannot find server ID.
    at com.sun.identity.authentication.AuthContext.login(AuthContext.java:690)
    at com.sun.identity.authentication.AuthContext.login(AuthContext.java:629)
    at com.sun.identity.authentication.AuthContext.login(AuthContext.java:457)
    at com.sun.identity.samples.authentication.Login.getAuthContext(Login.java:72)
    at com.sun.identity.samples.authentication.Login.main(Login.java:217)

    I’ve checked in AMConfig.properties and the naming service exists. The URL uses http protocol. The security credentials are definitely correct. Why is the SDK still not able to find the server?

    #16795
     Peter Major
    Moderator

    Sounds like a configuration issue, but not quite sure where.

    ClientSDK is on it’s deathbed already and is no longer built with AM5, you really shouldn’t try to use it for new projects.

    #16834
     stevenswj
    Participant

    For whatever reason it wasn’t connecting to the server, but I was able to connect to the load balancer URL in front of it.

    What would you recommend as a replacement?

    #16836
     Peter Major
    Moderator

    Use the new REST APIs instead.

    #16858
     stevenswj
    Participant

    Is there a way to use that over Java?

    #16864
     Peter Major
    Moderator

    err, yes? As far as I’m aware the JDK does have API to make HTTP connections…
    You could always use http-client though.

    #16867
     stevenswj
    Participant

    OK I was hoping OpenAM would have something and wouldn’t have to build it from scratch, but I may have to do something like that.

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.

©2022 ForgeRock - we provide an identity and access platform to secure every online relationship for the enterprise market, educational sector and even entire countries. Click to view our privacy policy and terms of use.

Log in with your credentials

Forgot your details?