Restricting Access Based on Geolocation
1Kosmos lets organizations manage access using a user's geographic location, helping protect applications from malicious actors while ensuring access is granted only to legitimate users.
Overview
Community administrators can set a maximum distance from a user's trusted location within which login is allowed. If a user tries to log in from outside this distance, access is denied. For example, if the user's mobile location is within 100 meters of their trusted location, access is granted; otherwise it is blocked. This is set up using the rule engine, which lets you create location-based rules from data on the user's mobile device.
This feature applies only when users authenticate to their applications through QR code or push notifications.
Setting up geolocation-based restriction
Complete these prerequisites before configuring the Geo rule:
Ensure the end user has enabled location on their mobile device.
The user's trusted location must be stored in an AD attribute.
Map that AD attribute to the 1Kosmos attribute
trustedLocation.
Configuring geolocation rules
Log in to your tenant as a community administrator.
Navigate to Authentication > Adaptive Authentication.
In the Add new adaptive auth journey drop-down, click Add new geo based restriction.
On the Geolocation Based Restriction page, configure the rule that determines whether access is granted:
FieldDescriptionJourney Name
Specify a journey name for the rule.
Enabled
Move the slider on or off to enable or disable the rule.
Conditions
Mobile location and Allowed location is not within range of
<x>metersSpecify the maximum allowed distance between the user's mobile location and their allowed location. If the distance exceeds this range, access is denied.
+ Add another
Add a new row to specify a condition such as User(s), Groups, and so on.
Click Save.
If a user tries to access a protected application from outside the allowed distance from their trusted location(s), they receive an access-denied message.
The following table shows the scenarios in which the E_ACCESS_DENIED event is triggered when the user's mobile and browser locations differ by more than 100 meters, resulting in access denial:
The user's mobile and browser locations differ by more than <X> meters
User is not within <X>m of the allowed location
Title: "Your access has been denied." Description: "Sorry, you are not allowed to access this page. Please contact your administrator."
The user has not enabled geolocation services in the mobile app
Mobile geolocation is not enabled
Title: "Mobile Location Required." Description: "Please enable location permissions for the BlockID app on your mobile device and try again. How to do?"
Clicking How to do displays the navigation path to enable location permissions on the user's device (Android or iOS).
The user has not enabled geolocation services in the browser
Browser geolocation is not enabled
Title: "Browser's Location Required." Description: "Please enable your browser's location permissions and try again."
Event logs
The following events are triggered:
E_LOGIN_SUCCEEDEDE_ACCESS_DENIED
Both events capture the mobile location and the user's trusted location as part of the factSubmitted attribute.
Mobile location refers to the latitude and longitude of the device used for authentication.
User trusted location refers to the location configured for the user in AD.
Last updated
Was this helpful?

