Skip to content

Commit

Permalink
Add InTune support
Browse files Browse the repository at this point in the history
* Microsoft InTune is a device management/compliance checker
that some organizations use for accessing corporate resources.
When using an InTune enrolled device, Edge talks to the identity
service using dbus for seamless login to corporate resources, and
for conditional access enforcement. In order to support this, the
msalsdk-dbusclient shared library must be present. This commit adds
this library and its dependency (sd-bus) to the flatpak

* NOTE: This won't work until properly flatpak/xdg-dbus-proxy#21 is fixed
  • Loading branch information
evan-a-a committed Jan 25, 2023
1 parent 57f0ab6 commit 9be0410
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
6 changes: 6 additions & 0 deletions apply_extra.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,10 @@ bsdtar -Oxf edge.deb 'data.tar*' |
./opt/microsoft/msedge-beta
rm edge.deb

bsdtar -Oxf msalsdk.deb 'data.tar*' |
bsdtar -xf - \
--strip-components=3 \
./usr/lib
rm msalsdk.deb

install -Dm755 /app/bin/stub_sandbox msedge-sandbox
28 changes: 28 additions & 0 deletions com.microsoft.Edge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ finish-args:
- --socket=wayland
- --require-version=1.8.2
- --system-talk-name=org.freedesktop.UPower
- --talk-name=com.microsoft.identity.broker1
- --talk-name=org.freedesktop.FileManager1
- --talk-name=org.freedesktop.Notifications
- --talk-name=org.freedesktop.ScreenSaver
Expand Down Expand Up @@ -80,6 +81,22 @@ modules:
type: git
tag-pattern: ^v([\d.]+)$

- name: sdbus
buildsystem: cmake
config-opts:
- -DBUILD_DOC=false
- -DCMAKE_BUILD_TYPE=Release
sources:
- type: git
url: https://github.com/Kistler-Group/sdbus-cpp
tag: v1.2.0
commit: 751c1addc4fd2f949a466f488c1b7de2ca3b76dc
x-checker-data:
type: git
tag-pattern: ^v([\d.]+)$
cleanup:
- /include

- name: edge
buildsystem: simple
build-commands:
Expand All @@ -106,6 +123,17 @@ modules:
dist: stable
component: main
size: 139449598
- type: extra-data
url: https://packages.microsoft.com/ubuntu/22.04/prod/pool/main/m/msalsdk-dbusclient/msalsdk-dbusclient_1.0.1_amd64.deb
sha256: 0153eb3710a35c6cdada01844cfd18ae55de12023a02396b4954eda8a6f65012
size: 9278
filename: msalsdk.deb
x-checker-data:
type: debian-repo
root: https://packages.microsoft.com/ubuntu/22.04/prod
dist: jammy
component: main
package-name: msalsdk-dbusclient
- type: script
dest-filename: stub_sandbox.sh
commands:
Expand Down

0 comments on commit 9be0410

Please sign in to comment.