Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing PrivacyInfo.xcprivacy (Apple Privacy Manifest file) for use of NSUserDefaults #4682

Open
Cybrosys opened this issue Mar 26, 2024 · 2 comments

Comments

@Cybrosys
Copy link

Cybrosys commented Mar 26, 2024

MSAL client type

Public

Problem statement

As of May 1, 2024, it will be mandatory for iOS, iPadOS, and tvOS apps to include a privacy manifest files. It is possible for libraries to include one as well, otherwise the app developer has to go through the code from third-party libraries/SDKs in order to make sure the file provided with the app is correct.

From what I can see, the code in IntuneEnrollmentIdHelper.se accesses NSUserDefaults which requires an entry in a PrivacyInfo.xcprivacy file indicating how it is used.

https://developer.apple.com/documentation/bundleresources/privacy_manifest_files/describing_use_of_required_reason_api#4278401

Proposed solution

Add a privacy manifest file to the Microsoft.Identity.Client NuGet package for iOS that declares its usage of NSUserDefaults.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>NSPrivacyAccessedAPITypes</key>
    <array>
        <dict>
            <key>NSPrivacyAccessedAPIType</key>
            <string>NSPrivacyAccessedAPICategoryUserDefaults</string>
            <key>NSPrivacyAccessedAPITypeReasons</key>
            <array>
                <string>...</string>
            </array>
        </dict>
    </array>
</dict>
</plist>

Alternatives

No response

@Cybrosys Cybrosys added needs attention Delete label after triage untriaged Do not delete. Needed for Automation labels Mar 26, 2024
@bgavrilMS bgavrilMS added Feature Request public-client P1 scenario:Mobile-iOS and removed untriaged Do not delete. Needed for Automation needs attention Delete label after triage labels Mar 26, 2024
@Cybrosys
Copy link
Author

Is there a status update regarding this? Maybe someone could update the documentation with the values that are needed in the PrivacyInfo.xcprivacy when using the package?

@localden localden self-assigned this May 19, 2024
@localden
Copy link
Collaborator

Assigning to myself to investigate and have a resolution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants