How to create a Realm in OpenAM
Table of Contents
- 1 How to create a Realm in OpenAM
- 2 OpenAM Installation Articles
- 3 OpenAM Installation Videos
- 4 How To Create Realm in OpenAM
- 5 Step 1: Hostname Configuration in Host file
- 6 Step 2: OpenAM Log in
- 7 Step 3: Create Realm
- 8 Step 4: Add DNS Aliases for New Realm
- 9 Step 5: Access New Realm (Subscribers) via DNS
- 10 Step 6: Access New Realm (Subscribers) via Realm Name in URL
In this post, I am going to sharing how to create a realm in OpenAM. Realm is used to group and organize the information and configuration parameters. Its like isolation of the parameters and configuration for a particular realm. You can create a project/channel-wise realm. So if one realm not working due to misconfiguration then it will not affect other realms. So each realm working like independent.
Before going to create a realm, OpenAM should be installed and up and running. If not installed OpenAM, You can install OpenAM by using the following links and videos.
OpenAM Installation Articles
- ForgeRock OpenAM Prerequisites Setup
- ForgeRock OpenAM Custom Configuration Installation on Windows
- Forgerock OpenAM Default Configuration Installation
OpenAM Installation Videos
How To Create Realm in OpenAM
Step 1: Hostname Configuration in Host file
You need to configure the hostname in the hosts’ file for new ream subscriber DNS
Step 2: OpenAM Log in
OpenAM deployed in Tomcat server and start the tomcat server and access the OpenAM application using the URL http://openam.narayanatutorial.com:8991/am
Enter Admin User login credential
Lis of realms dashboard after successful login. Click on New Realm
Step 3: Create Realm
The new realm creation form opened.
Enter new realm details and click on Create
The new realm subscribers created.
Step 4: Add DNS Aliases for New Realm
Navigate to: CONFIGURE —> GLOBAL SERVICES —> Platform –>
Enter new realm subscriber DNS alias name in Cookie Domains. In step 1, we have configured the DNS name in the host file.
Step 5: Access New Realm (Subscribers) via DNS
Subscribers realm URL: http://subscribers.narayanatutorial.com:8991/am/
We have identities in the OpenDJ, trying to login in subscribers realm.
User name: demo
Password: Admin1234
Enter demo user credentials.
You can see the profile page, after successful login
Step 6: Access New Realm (Subscribers) via Realm Name in URL
Subscribers realm URL:
http://openam.narayanatutorial.com:8991/am/XUI/?realm=/subscribers#login/
We have identities in the OpenDJ, trying to login in subscribers realm.
User name: demo
Password: Admin1234
The URL http://openam.narayanatutorial.com:8991/am/XUI/?realm=/subscribers will not be changed in entire process execution and highlighted in every screen.
Enter demo user credentials
Profile page displayed, after user login successful.
Click on logout and observe that no change URL.
Thanks for reading the article. Please share the article and comment below if you like it
Hello! I am Narayanaswamy founder and admin of narayanatutorial.com. I have been working in the IT industry for more than 12 years. NarayanaTutorial is my web technologies blog. My specialties are Java / J2EE, Spring, Hibernate, Struts, Webservices, PHP, Oracle, MySQL, SQLServer, Web Hosting, Website Development, and IAM(ForgeRock) Specialist
I am a self-learner and passionate about training and writing. I am always trying my best to share my knowledge through my blog.