-
Notifications
You must be signed in to change notification settings - Fork 375
Enable broker support on Linux platform #5086
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
Merged
Merged
Changes from all commits
Commits
Show all changes
151 commits
Select commit
Hold shift + click to select a range
2c18064
initial commit
xinyuxu1026 6a1f431
add linux test app
xinyuxu1026 0eb4000
bypass check for linux platform
xinyuxu1026 c7ff66a
Add isRunningInWsl check
xinyuxu1026 883e44d
Update RuntimeSupport OS check
xinyuxu1026 9b6cc0c
update
xinyuxu1026 67b0bbd
Add linux
xinyuxu1026 5b3a00d
Merge branch 'main' into xinyu/wsl-support
xinyuxu1026 12ae021
update
xinyuxu1026 0807920
update to net8.0
xinyuxu1026 9b27756
fix typo
xinyuxu1026 4a0ac90
Merge branch 'main' into xinyu/wsl-support
xinyuxu1026 0339fe5
Update msalruntime version to 0.7.0-alpha
xinyuxu1026 eadc942
use lazy bool
xinyuxu1026 212917c
Merge branch 'main' into xinyu/wsl-support
xinyuxu1026 9fde6ec
address comments
xinyuxu1026 20d2e59
Merge branch 'main' into xinyu/wsl-support
xinyuxu1026 f21e8f9
initial commit
xinyuxu1026 e9381a8
fix name issue
xinyuxu1026 5ee630b
remove for now
xinyuxu1026 390ec37
try use script
xinyuxu1026 d8966be
fix syntax error
xinyuxu1026 d5afada
temp change
xinyuxu1026 78f8cc8
Add download artifacts
xinyuxu1026 f0034f2
update download path
xinyuxu1026 7d67fa3
use DownloadPipelineArtifact
xinyuxu1026 9bf80be
use MSBuild to restore sln on Linux
xinyuxu1026 cd281c4
try restore unit test first
xinyuxu1026 ad07cde
Add new broker option to PublicAPI.Unshipped
xinyuxu1026 3bb06a7
remove dependency
xinyuxu1026 f9aff19
specify the msBuildVersion
xinyuxu1026 cbed763
use dotnet task
xinyuxu1026 a221a52
set enableWindowsTargeting
xinyuxu1026 362aeaa
build and run common test
xinyuxu1026 ccbf9ce
integration tests
xinyuxu1026 af8fb87
build Integration
xinyuxu1026 fb2190f
fix typo
xinyuxu1026 65f444f
update
xinyuxu1026 4496fcb
add install keyvault
xinyuxu1026 4f03c3c
get cert pass
xinyuxu1026 1ace40e
retry
xinyuxu1026 53c1308
directly read cert on Linux
xinyuxu1026 c1db7a1
use env
xinyuxu1026 390115c
fix cert location
xinyuxu1026 c19a643
add utils to import dlls on Linux
xinyuxu1026 f81e5e7
include extension project for testing
xinyuxu1026 6eae017
conditional build
xinyuxu1026 d6e47cd
Merge branch 'main' into xinyu/wsl-support
xinyuxu1026 95cb8d1
Merge remote-tracking branch 'origin/xinyu/wsl-support' into xinyu/ru…
xinyuxu1026 2b2f827
install deps
xinyuxu1026 80b02dd
install sudo
xinyuxu1026 44e221a
install
xinyuxu1026 97b92db
start xvfb
xinyuxu1026 f6a5ff9
update
xinyuxu1026 f43c547
install libwebkit2gtk-4.0
xinyuxu1026 1106d99
get window
xinyuxu1026 2dd7fe2
install xvfb
xinyuxu1026 af35cf4
install systemd
xinyuxu1026 2c66776
comment some code
xinyuxu1026 3bb45fc
fix typo
xinyuxu1026 e438ce3
add log
xinyuxu1026 bacf045
broker options for different platforms
xinyuxu1026 fad4500
try another logger
xinyuxu1026 165d6c0
update
xinyuxu1026 7e3887f
add installation
xinyuxu1026 f0a0785
fix install broker bug
xinyuxu1026 2e33475
add broker xhost
xinyuxu1026 80285f3
set DBUS_SESSION_BUS_ADDRESS
xinyuxu1026 1c3f76b
test
xinyuxu1026 37b9a6c
try fix crash
xinyuxu1026 af22c02
add test filter
xinyuxu1026 c8b9745
fix assert
xinyuxu1026 295e33e
add more filter
xinyuxu1026 ea5b9c4
runtime broker test
xinyuxu1026 732f140
get display
xinyuxu1026 0f1f6fd
test
xinyuxu1026 ac50e1a
remove filter
xinyuxu1026 4dd38de
disable some tests
xinyuxu1026 e88b1a4
clean up some code
xinyuxu1026 e469ab2
Merge branch 'xinyu/runtime-preview-test' into xinyu/wsl-support
xinyuxu1026 bde22bc
Merge branch 'main' into xinyu/wsl-support
xinyuxu1026 a97ca27
clean up unused code
xinyuxu1026 70b2107
fix string assert
xinyuxu1026 14730ab
Merge branch 'main' into xinyu/wsl-support
xinyuxu1026 c51f5fb
disable POP test on Linux
xinyuxu1026 ca8aca8
fix some tests
xinyuxu1026 0c00894
test interactive sign in
xinyuxu1026 1d41aaa
try
xinyuxu1026 04379d1
start xvfb
xinyuxu1026 7a733c6
add the current user to host
xinyuxu1026 266d270
update
xinyuxu1026 1fd20f3
add list os accounts support
xinyuxu1026 60913bb
Merge branch 'main' into xinyu/wsl-support
xinyuxu1026 e8ee2f3
change back
xinyuxu1026 3361393
fix typo
xinyuxu1026 77abed3
fix test
xinyuxu1026 a53e8ea
fix build error
xinyuxu1026 f37ffb4
fix Windows build
xinyuxu1026 d42f797
use interactive flow
xinyuxu1026 c43de08
Merge branch 'main' into xinyu/wsl-support
xinyuxu1026 26725fe
fix typo
xinyuxu1026 de1a7c0
try
xinyuxu1026 aa3712b
remove setting
xinyuxu1026 b4d6164
comment tokensource for now
xinyuxu1026 5ac042f
run more tests
xinyuxu1026 de29c19
remove username
xinyuxu1026 92902b8
try opendisplay(0)
xinyuxu1026 8abca5d
update
xinyuxu1026 0e834ab
use :1
xinyuxu1026 c18fc24
hard code :1
xinyuxu1026 f3b7530
use interactive
xinyuxu1026 27ab654
use parent handle
xinyuxu1026 86fe179
fix bracket
xinyuxu1026 ec7b8b8
hard code the display
xinyuxu1026 4d37dee
fix import issue
xinyuxu1026 498ec38
build the sample sln
xinyuxu1026 3c9d830
fix yaml
xinyuxu1026 28cb7ea
try build LibsAndSamples.sln all together on Linux
xinyuxu1026 5e6ae1f
update
xinyuxu1026 6cabc7a
Revert "update"
xinyuxu1026 7fd1b67
Revert "try build LibsAndSamples.sln all together on Linux"
xinyuxu1026 3770f3c
Revert "fix yaml"
xinyuxu1026 45b39ad
Revert "build the sample sln"
xinyuxu1026 2ce5756
try more logs
xinyuxu1026 488b488
update
xinyuxu1026 dab77ad
test get accounts
xinyuxu1026 5ac2951
fix build error
xinyuxu1026 a3e4a30
set list os account to true
xinyuxu1026 5b3d5b1
add debug log
xinyuxu1026 4239c11
update logger
xinyuxu1026 4db422b
test
xinyuxu1026 66d30a6
update
xinyuxu1026 eecde81
clean up code
xinyuxu1026 d6ee8aa
clean up code
xinyuxu1026 e7bc9e8
try fix cert tests
xinyuxu1026 b2dcaa7
Merge branch 'main' into xinyu/wsl-support
xinyuxu1026 f7d98a5
persist key when import lab cert
xinyuxu1026 d5fe489
try use rsa instead of rsacng
xinyuxu1026 3db4fe9
add my test app to sln file
xinyuxu1026 08f2829
Clean up code and address comments
xinyuxu1026 03c3ed3
Merge branch 'main' into xinyu/wsl-support
xinyuxu1026 5334092
Address comment
xinyuxu1026 c0e17aa
Update build/template-test-on-linux.yaml
xinyuxu1026 5a021c8
Update build/template-build-and-run-all-tests.yaml
xinyuxu1026 5cbb189
Merge branch 'main' into xinyu/wsl-support
xinyuxu1026 39bc569
update slashes
xinyuxu1026 15d32b0
add more comments
xinyuxu1026 aa48c67
add more comments
xinyuxu1026 b4208ef
fix
xinyuxu1026 028ad8f
update
xinyuxu1026 e8abd4f
try enable pop
xinyuxu1026 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
#!/bin/bash | ||
|
||
# Copyright (c) Microsoft Corporation. | ||
# Licensed under the MIT License. | ||
apt install sudo | ||
# This script must be run elevated. Adding a sudo wrapper if needed. | ||
if [ "$UID" -ne 0 ]; then | ||
exec sudo "$0" "$@" | ||
fi | ||
|
||
set -o errexit # Exit the script if any command returns a non-true return value | ||
|
||
if [ -f '/usr/bin/apt' ]; then | ||
DEBIAN_FRONTEND=noninteractive | ||
# Install quietly, accepting all packages and not overriding user configurations | ||
PKGINSTALL_CMD='apt-get install -q -y -o Dpkg::Options::=--force-confold' | ||
PACKAGE_MANAGER=apt | ||
PKGEXISTS_CMD='dpkg -s' | ||
elif [ -f '/usr/bin/yum' ]; then | ||
PACKAGE_MANAGER=yum | ||
PKGINSTALL_CMD='yum -y install' | ||
PKGEXISTS_CMD='yum list installed' | ||
else | ||
echo 'Package system currently not supported.' | ||
exit 2 | ||
fi | ||
|
||
if [ $PACKAGE_MANAGER == 'apt' ]; then | ||
apt-get update || true # If apt update fails, see if we can continue anyway | ||
$PKGINSTALL_CMD \ | ||
libx11-dev \ | ||
dbus-x11 \ | ||
libsystemd0 \ | ||
gnome-keyring \ | ||
libsecret-tools \ | ||
libsecret-1-dev \ | ||
xdg-utils \ | ||
x11-xserver-utils \ | ||
xorg \ | ||
libp11-kit-dev \ | ||
libwebkit2gtk-4.0-dev | ||
fi | ||
|
||
echo "Installing JavaBroker" | ||
LINUX_VERSION=$(sed -r -n -e 's/^VERSION_ID="?([^"]+)"?/\1/p' /etc/os-release) | ||
LINUX_VERSION_MAIN=$(echo $LINUX_VERSION | sed 's/\([0-9]*\)\..*/\1/') | ||
|
||
BROKER_PACKAGE_NAME='microsoft-identity-broker' | ||
if [ -f '/usr/bin/apt' ]; then | ||
curl https://packages.microsoft.com/config/ubuntu/$LINUX_VERSION/prod.list | sudo sudo tee /etc/apt/trusted.gpg.d/microsoft.asc | ||
else | ||
$PKGINSTALL_CMD yum-utils | ||
yum-config-manager --add-repo=https://packages.microsoft.com/config/rhel/$LINUX_VERSION_MAIN/prod.repo | ||
rpm --import http://packages.microsoft.com/keys/microsoft.asc | ||
fi | ||
echo "Installing latest published JavaBroker package" | ||
$PKGINSTALL_CMD $BROKER_PACKAGE_NAME | ||
|
||
exit 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.