Microsoft Entra
10 min
Restricting Cloud App Access to IDP Proxy Only
Overview
This guide will help you configure Microsoft Entra ID (formerly Azure AD) conditional access policies to ensure that specific cloud applications can only be accessed through Keystrike Cloud Protector's IDP Proxy, blocking direct authentication attempts.
Prerequisites
- Microsoft Entra ID P1 or P2 license (required for conditional access)
- Global Administrator or Conditional Access Administrator role
- List of cloud applications you want to protect with the Keystrike Cloud Protector (the applications must be registered for your Microsoft Entra ID tenant)
Step 1: Create a Named Location for IDP Proxy
- Navigate to Microsoft Entra admin center
- Go to entra.microsoft.com
- Sign in with an account that has permissions to manage Conditional Access
- Create Named Location
- Navigate to ID Protection → Risk-based Conditional Access → Manage \ Named locations
- Click + IP ranges location
- Configure the Location
- Name: Keystrike IDP Proxy (or similar descriptive name)
- IP ranges: Enter the IDP Proxy IP address(es), by clicking the plus icon
- Format: <TBD>/32 (for single IP) or <TBD>/24 (for range)
- In the Beta phase - use this IP address 35.242.151.26/32
- The organization specific IP addresses will be displayed in the admin panel later
- Mark as trusted location: ✅ Check this box
- Click Create
Step 2: Create the Conditional Access Policy
- Navigate to Conditional Access Policies
- Go to ID Protection → Risk-based Conditional Access → Policies
- Click + New policy
- Configure Basic Settings
- Name: Require Keystrike Cloud Protector (or similar descriptive name)
- Enable policy: Start with Report-only for testing
Assignments
- Users
- Include: Select the users and groups that should be using the Keystrike Cloud Protector
- Exclude: Consider excluding:
- Emergency access accounts
- Service accounts (if applicable)
- Your admin account during testing
- Target resources
- Include: Select Select resources
- Choose the specific applications you want to protect:
- Include any resource that should only be accessible via Keystrike Cloud Protector.
- Exclude: Leave empty (or exclude apps that should allow direct access)
- Conditions
- Locations
- Include: Any network or location
- Exclude: Selected networks and locations. Select the named location you created (e.g. Keystrike IDP Proxy)
Access Controls
- Grant
- Select Block access
- Click Select
- Session
- Leave default (no configuration needed)
Enable Report-Only Mode
- Set Enable policy to Report-only
- Click Create
Step 3: Test the Policy
- Monitor for 24-48 Hours
- Go to Entra ID → Monitoring & health → Sign-in logs
- Filter by Conditional Access status
- Look for entries showing your policy being triggered
- Verify legitimate traffic from IDP Proxy is not being blocked
- Review Impact
- Check that users can still access apps through Keystrike Cloud Protector.
- Confirm direct access attempts are being identified (but not yet blocked)
Step 4: Enable the Policy
Once testing confirms the policy works correctly:
- Edit the Policy
- Navigate back to your conditional access policy
- Change Enable policy from Report-only to On
- Click Save
- Immediate Effect
- The policy takes effect immediately
- Direct access to protected apps will now be blocked
- Only access through your IDP Proxy will be allowed
Verification Steps
Test Direct Access (Should Fail)
- From a device without the Keystrike Cloud Protector
- Try to access one of your protected applications directly
- You should see an access denied message
Test Through Cloud Protector (Should Succeed)
- From a device with the Keystrike Cloud Protector installed
- Access the same application
- Authentication should work normally through the IDP Proxy
Troubleshooting
Common Issues
Users Can't Access Apps Through Cloud Protector
- Verify IDP Proxy IP addresses are correct in the named location
- Check if the IDP Proxy addresses are correct
- Ensure the named location is marked as "trusted"
Policy Not Triggering
- Confirm the policy is enabled (not just report-only)
- Verify the correct applications are selected
- Check user assignments include the test users
Emergency Access Needed
- Keep emergency access accounts excluded from the policy
- Have a process to quickly disable the policy if needed
- Consider excluding specific admin accounts during initial rollout (break-the-glass account)
Monitoring
- Regularly review Sign-ins logs for blocked attempts
- Monitor for any legitimate traffic being incorrectly blocked
- Set up alerts for unusual access patterns
This policy ensures that authentication to your protected SaaS applications can only occur through the Keystrike Cloud Protector's IDP Proxy, enforcing device-based security controls and preventing direct access bypass attempts.