Basic IG Configuration Question

This topic contains 7 replies, has 3 voices, and was last updated by  reeprice 2 days, 14 hours ago.

  • Author
    Posts
  • #24776
     reeprice 
    Participant

    I am trying to setup a instance of Identity Gateway. I am still new to Linux system management so I must be missing some piece of knowledge. I am following the Getting started Guide. I have installed Jetty and place the war file in webapps directory. The next step says to place a config file in $HOME/.openig/config/admin.json. I don’t understand where the admin.json file is supposed to be placed. Can someone please point me the right direction. I tried putting it in /home/openig/config.

    When I run java -jar start.jar -Dig.run.mode=development I get into development mode, but it does not stay in development for any additional runs of start.jar

    Any information is appreciated, and I realize this is most likely a very basic question.

    #24783
     srinath.m 
    Participant

    The configuration files belong in $HOME/.openig/config. You must create the $HOME/.openig/config folder, and then copy the configuration files.

    $ mkdir -p $HOME/.openig/config
    $ vi $HOME/.openig/config/admin.json

    If you plan to to create routes through OpenIG Studio(available on IG 5.0 onwards), make sure that this config.json contains a main router named _router.

    You can find more info here
    https://backstage.forgerock.com/docs/ig/5/gateway-guide/#chap-quickstart

    Hope it helps.
    Thanks,
    Srinath

    #24785
     Dusty 
    Participant

    Hi,

    A small thing to add, it must be the home folder of the user which is executing Jetty.

    Regards
    Dusty

    • This reply was modified 3 days, 19 hours ago by  Dusty.
    #24791
     reeprice 
    Participant

    Dusty,

    That is very helpful.

    Srinath,

    You said copy the config files, Do you just mean the content of the files from the getting started guide? The only file I can find on backstage is the war file.

    Thanks,
    Reece

    #24794
     reeprice 
    Participant

    I figured it out. For anyone that may stumble across this in the future. I created a user called jetty to run jetty.

    So the path to jetty user home directory was /home/jetty. From here I needed to create the .openig directory (Note the . before openig is important.) Then I had to create the config directory. So my final directory for the admin.json file was /home/jetty/.openig/config/

    #24798
     srinath.m 
    Participant

    Config files means the routes(01-static-routes.json,zz-default.json etc) which we place in the config location(ex:$HOME/.openig/config)

    I see more info about routes here.
    https://backstage.forgerock.com/docs/ig/5/gateway-guide/#chap-routing

    #24809
     reeprice 
    Participant

    Ok, I got past the first problem, but now I am running into another. I have the config.json saved in the config folder, and zz-default.json in the routes folder. The instructions say go to “http://openig.example.com:8080/home” and I should be redirected to to the sample application. When I go to that address I just get “this page isn’t working message” and the url is still the same. I can go to http://openig.example.com:8080/openig/studio/ so IG is working and I can go to http://app.example.com:8081/login so the app is also working. Also I can telnet from my my server to myipaddress:8081 which is the same machine, but different port. I don’t really understand what is happening

    Any help is appreciated
    Thanks,
    Reece Price

    #24811
     reeprice 
    Participant

    Figured it out. I had edited the host file on my local machine, but not my remote server. The changes to the host file needed to be made on both.

    Thanks,
    Reece

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

You must be logged in to reply to this topic.

©2019 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?