Login To The Generated Application

Login to the Application

We are using a self-signed certificate and therefore we need to perform the following steps as a temporary workaround.

  1. Go to https://127.0.0.1:5555

  2. If you are using the Chrome web browser, you will see a NET::ERR_CERT_AUTHORITY_INVALID message. Click on the Advanced button and click the link to Proceed

  3. You will now see a White label error page, which is expected

  4. Go to https://127.0.0.1:4700

  5. If you are using the Chrome web browser, you will see a NET::ERR_CERT_AUTHORITY_INVALID message. Click on the Advanced button and click the link to Proceed

  6. You will see the login screen for the application

  7. Login to the application as specified below:

Database Authentication

Use the following credentials if you are using database authentication. Note that if you are running the sample application, you are using database authentication and therefore use the credentials below.

User Name: admin
Password: secret

LDAP Authentication

If you are using LDAP authentication, first run the application back-end. This will create all the necessary tables in your application database. Once this is done, run the LDAP Sync tool packaged with the generated application. The name of the jar file is ldapimport-0.0.1-SNAPSHOT.jar.

This tool will import all your users/groups from your LDAP-based Directory Service to the fastCode database.

Here's an example of how to run the LDAP Sync tool, passing in the database information of your application.

java -jar ldapimport-0.0.1-SNAPSHOT.jar --spring.datasource.url=jdbc:postgresql://localhost:5432/dvdrental?currentSchema=public --fastcode.app.datasource.schema=public --spring.datasource.username=postgres --spring.datasource.password=fastcode --spring.datasource.driverClassName=org.postgresql.Driver

Here is an example of LDAP parameter values you can provide to the tool once it runs:

Full LDAP Url With Base Path: ldap://localhost:389

Manager DN: uid=admin,ou=system

Password: secret

What information do you store in LDAP?
1. Users only:
2. Users and Groups:
Enter 1 or 2: 2

User Search Base: ou=people,dc=nfinityllc,dc=com

User Search Filter: (objectClass=*)

Group Search Base: ou=groups,dc=nfinityllc,dc=com

Group Search Filter: (&(objectClass=)(cn=))

Which field in your LDAP Directory are you using for User Logon Name?
Typically, this could be userPrincipalName or sAMAccountName in Active Directory and uid for most LDAP implementations based on OpenLDAP.
Please enter your User Logon Name
: uid

Do you have your own user table? (y/n) n

Once the LDAP tool completes running, login using the following credentials:

User Name: The username of the admin user in LDAP that you provided when creating the application
Password: The password of the LDAP admin user