YunoHost / issues

General issue tracker for the YunoHost project
71 stars 8 forks source link

iOS/MacOS autoconfiguration file ? #1794

Open zamentur opened 3 years ago

zamentur commented 3 years ago

On FLAP demo, i found a feature that seems help to autoconfigure iOS/MacOS : https://home.demo.flap.cloud/settings (demo, demodemo).

It's a file called username@domain.tld.mobileconfig, here is the content:

<?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>PayloadContent</key>
    <array>
      <dict>
        <key>PayloadType</key>
        <string>com.apple.caldav.account</string>
        <key>PayloadVersion</key>
        <integer>1</integer>
        <key>PayloadIdentifier</key>
        <string>cloud.flap.profile</string>
        <key>PayloadUUID</key>
        <string>d88208af-e76b-44ec-9709-51b4383ffae0</string>
        <key>PayloadDisplayName</key>
        <string>FLAP's calendars</string>
        <key>CalDAVAccountDescription</key>
        <string>Calendars from your FLAP box.</string>
        <key>CalDAVHostName</key>
        <string>mail.home.demo.flap.cloud</string>
        <key>CalDAVUsername</key>
        <string>demo</string>
        <key>CalDAVPassword</key>
        <string>demodemo</string>
        <key>CalDAVUseSSL</key>
        <true/>
        <key>CalDAVPort</key>
        <integer>443</integer>
      </dict>
      <dict>
        <key>PayloadType</key>
        <string>com.apple.carddav.account</string>
        <key>PayloadVersion</key>
        <integer>1</integer>
        <key>PayloadIdentifier</key>
        <string>cloud.flap.profile</string>
        <key>PayloadUUID</key>
        <string>216ba9b7-54ce-4c61-818f-9420cb7de239</string>
        <key>PayloadDisplayName</key>
        <string>FLAP's contacts</string>
        <key>CardDAVAccountDescription</key>
        <string>Contacts from your FLAP box.</string>
        <key>CardDAVHostName</key>
        <string>mail.home.demo.flap.cloud</string>
        <key>CardDAVUsername</key>
        <string>demo</string>
        <key>CardDAVPassword</key>
        <string>demodemo</string>
        <key>CardDAVUseSSL</key>
        <true/>
        <key>CardDAVPort</key>
        <integer>443</integer>
      </dict>
    </array>
    <key>PayloadDescription</key>
    <string>Sync your calendars and contacts to your FLAP box.</string>
    <key>PayloadDisplayName</key>
    <string>FLAP box (demo@home.demo.flap.cloud)</string>
    <key>PayloadIdentifier</key>
    <string>cloud.flap.profile</string>
    <key>PayloadOrganization</key>
    <string>FLAP</string>
    <key>PayloadUUID</key>
    <string>09217030-63bc-40b8-8b06-118e15d37599</string>
    <key>PayloadRemoveDisallowed</key>
    <false/>
    <key>PayloadType</key>
    <string>Configuration</string>
    <key>PayloadVersion</key>
    <integer>1</integer>
    <key>PayloadScope</key>
    <string>User</string>
  </dict>
</plist>

It seems help to configure cardav and caldav.

eldertek commented 1 year ago

@alexAubin I want to work on that PR, but I don't really know where to start, can you give me hint please.