UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    How to add a new kind of account into Accounts?

    Scheduled Pinned Locked Moved App Development
    6 Posts 2 Posters 557 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • CiberSheepC Offline
      CiberSheep
      last edited by

      I can't remember, but it is still possible to define new kinds of accounts to be included in the Accounts in the system (adding to nextCloud, etc)?

      Another planet, another time, another universe!

      lduboeufL 1 Reply Last reply Reply Quote 0
      • lduboeufL Online
        lduboeuf @CiberSheep
        last edited by

        @CiberSheep said:

        I can't remember, but it is still possible to define new kinds of accounts to be included in the Accounts in the system (adding to nextCloud, etc)?

        It should yes, i think UBsync do that, but seems confined:
        https://open-store.io/app/ubsync

        CiberSheepC 1 Reply Last reply Reply Quote 1
        • CiberSheepC Offline
          CiberSheep @lduboeuf
          last edited by CiberSheep

          I think I didn't explain myself correctly XD
          I was thinking in adding a new service Provider that is not in the system.

          Maybe here:
          https://gitlab.com/ubports/development/core/lomiri-online-accounts/-/tree/main/example++s

          Another planet, another time, another universe!

          CiberSheepC lduboeufL 2 Replies Last reply Reply Quote 0
          • CiberSheepC Offline
            CiberSheep @CiberSheep
            last edited by

            Ah, no. Maybe it is mooooore complicated and ¿unsuported?

            From old documentation:
            https://wiki.ubuntu.com/SecurityTeam/Specifications/OnlineAccountsConfinement

            https://phone.docs.ubuntu.com/en/platform/guides/online-accounts-developer-guide

            And it requires an apparmor template?

            Another planet, another time, another universe!

            1 Reply Last reply Reply Quote 0
            • lduboeufL Online
              lduboeuf @CiberSheep
              last edited by

              @CiberSheep said:

              I think I didn't explain myself correctly XD
              I was thinking in adding a new service Provider that is not in the system.

              Maybe here:
              https://gitlab.com/ubports/development/core/lomiri-online-accounts/-/tree/main/example++s

              ah, ok, apparently notes app is the only app that install providers, services etc... We know that it doesn't work anymore, but that gives the idea :

              https://gitlab.com/ubports/development/apps/lomiri-notes-app/-/blob/main/src/account-plugin/data/providers/evernote.provider.in?ref_type=heads

              The provider and service are stored under ~/.local/share/accounts, it is done by the click hook that we can see here:
              https://gitlab.com/ubports/development/apps/lomiri-notes-app/-/blob/main/manifest.json.in?ref_type=heads#L14

              For an app to declare the usage of a service, it has to be declared like this : https://gitlab.com/ubports/development/apps/lomiri-notes-app/-/blob/main/notes.ubports_notes.application?ref_type=heads

              Hope that helps

              CiberSheepC 1 Reply Last reply Reply Quote 1
              • CiberSheepC Offline
                CiberSheep @lduboeuf
                last edited by

                @lduboeuf aaaah, true. I thought Notes was unconfined... (I thought all core apps would be), but it seems not to (apparmor)

                It also needs to specify an account-qml-plugin that I think is how the app (Notes in this case) authorize the provider:

                https://gitlab.com/ubports/development/apps/lomiri-notes-app/-/blob/main/manifest.json.in?ref_type=heads#L15

                the qml file is:

                https://gitlab.com/ubports/development/apps/lomiri-notes-app/-/blob/main/src/account-plugin/qml/evernote/Main.qml.in?ref_type=heads

                PS: I'm still confused with the different hooks and different apparmors...

                Another planet, another time, another universe!

                1 Reply Last reply Reply Quote 0

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                • First post
                  Last post