nextcloud / nextcloud/ios

No DevicePlatform provided but required by Conditional Access Rules

Open
#2,387 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Swift
Stars
2.5k
Forks
1k
Avg merge
2d 18h
Merged PRs (30d)
13

Description

Steps to reproduce
  1. Install and setup user_saml extension. (Requires Azure-AD and Conditional Access Rules blocking unspecified OS)
  2. Try to login via iOS App
  3. If CA-Rules block "undefinded OS", the login is blocked. Since the OS is iOS it should not be blocked (in our environment)
Expected behaviour

The device platform should be recognized by Microsoft and the login should succeed.

Actual behaviour

The app does not provide the device platform on iOS. Our Security Concept blocks all Logins other than from iOS and Windows.
A login via the Safari Browser does work, so a device platform is correcty provided by Safari.

Screenshots

iOS-CArule

Reasoning or why should it be changed/implemented?

The device platform should be provided, in case you want to block (un)specific platforms via CA-Rules.

Environment data

iOS version: iOS 16.4

Nextcloud iOS app version: 4.7.0.23

Server operating system: Rhel 8

Web server: Apache

Database: MariaDB

PHP version: 8.1.16

Nextcloud version: 25.0.4

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the iOS app login with Azure AD Conditional Access Rules that block unspecified operating systems, then compare it with the working Safari login. Trace the authentication request and verify that the device platform is provided as iOS; done means the same Conditional Access policy allows the app login.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, ios, swift
Domain
authentication, mobile-dev, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.