Remove PortalMock from Android and Apple (#2752)

It's fallen out of date and is no longer used.
This commit is contained in:
Jamil
2023-11-30 13:42:48 -08:00
committed by GitHub
parent 189a35f692
commit 55ba09c8bf
11 changed files with 0 additions and 130 deletions

View File

@@ -1 +0,0 @@
ruby 3.1.0

View File

@@ -1,4 +0,0 @@
source "https://rubygems.org"
gem 'sinatra'
gem 'thin'

View File

@@ -1,34 +0,0 @@
GEM
remote: https://rubygems.org/
specs:
daemons (1.4.1)
eventmachine (1.2.7)
mustermann (3.0.0)
ruby2_keywords (~> 0.0.1)
rack (2.2.7)
rack-protection (3.0.4)
rack
ruby2_keywords (0.0.5)
sinatra (3.0.4)
mustermann (~> 3.0)
rack (~> 2.2, >= 2.2.4)
rack-protection (= 3.0.4)
tilt (~> 2.0)
thin (1.8.1)
daemons (~> 1.0, >= 1.0.9)
eventmachine (~> 1.0, >= 1.0.4)
rack (>= 1, < 3)
tilt (2.0.11)
PLATFORMS
arm64-darwin-21
x64-mingw-ucrt
x86_64-darwin-21
x86_64-linux
DEPENDENCIES
sinatra
thin
BUNDLED WITH
2.3.3

View File

@@ -1 +0,0 @@
eyJ0eXAiOiJhdCtqd3QiLCJhbGciOiJSUzI1NiIsImtpZCI6IjFMN3k3RUM1T3VSZUNNNnIzX2l0MXNJbjNqeTdiZ2JPSVB3Z0xoejV0SGsifQ.eyJpc3MiOiJodHRwczovL2ZpcmV6b25lLmxvY2FsIiwic3ViIjoidGVzdEBmaXJlem9uZS5kZXYiLCJjbGllbnRfaWQiOiJmaXJlem9uZSIsImV4cCI6MTY3MjgzNzU0NCwiaWF0IjoxNjY4MTMzOTQ0fQ.NvvGWvrMvshKp5MYycDWXa8gQ41Ptrr_nIKzfPWzci8fxwmQYJ5hL1vQpdmECtR5NeGv7qTavi6yq19Kqmwrn27numDXaET2b2xypGbFOm1TJmcbZ4Rxy_-FfAeer-7YNhW_p83a0N7UoPORpxVs8hp76sKe_klfmoM830frrLzeqz0VYxBZXhPiTAlqiG39cY74yk-drxLY4xeRBAXh_TdewrkRkPpTpsrXFz60fF5P8AaRnUKlDSRq89ZIC-zo2ysJsXIZLrJpfcNgkscohZZfXfCLIFaiGvZseW0XHWfq-V5HOXVf09-57GHdmCr-AAJ7sqpnPrSBvg7EDBvylg

View File

@@ -1,21 +0,0 @@
#!/usr/bin/env ruby
# This server attempts to provide a crude mock of the Firezone auth process.
require 'sinatra'
set :bind, '0.0.0.0'
set :port, 4568
get '/:slug' do
csrfToken = params['client_csrf_token']
ERB.new("<h1>Auth page</h1><a href=\"/redirect?client_csrf_token=#{csrfToken}\">Proceed</a>")
.result(binding)
end
get '/redirect' do
dest = 'https://app.firez.one/handle_client_auth_callback'
csrfToken = params['client_csrf_token']
authToken = File.read(File.join(__dir__, 'data', 'jwt'))
redirect "#{dest}?client_csrf_token=#{csrfToken}&client_auth_token=#{authToken}"
end

View File

@@ -1 +0,0 @@
ruby 3.1.0

View File

@@ -1,4 +0,0 @@
source "https://rubygems.org"
gem 'sinatra'
gem 'thin'

View File

@@ -1,33 +0,0 @@
GEM
remote: https://rubygems.org/
specs:
daemons (1.4.1)
eventmachine (1.2.7)
mustermann (3.0.0)
ruby2_keywords (~> 0.0.1)
rack (2.2.7)
rack-protection (3.0.4)
rack
ruby2_keywords (0.0.5)
sinatra (3.0.4)
mustermann (~> 3.0)
rack (~> 2.2, >= 2.2.4)
rack-protection (= 3.0.4)
tilt (~> 2.0)
thin (1.8.1)
daemons (~> 1.0, >= 1.0.9)
eventmachine (~> 1.0, >= 1.0.4)
rack (>= 1, < 3)
tilt (2.0.11)
PLATFORMS
arm64-darwin-21
arm64-darwin-22
x86_64-linux
DEPENDENCIES
sinatra
thin
BUNDLED WITH
2.3.3

View File

@@ -1,13 +0,0 @@
<?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>NSExtension</key>
<dict>
<key>NSExtensionPointIdentifier</key>
<string>com.apple.networkextension.packet-tunnel</string>
<key>NSExtensionPrincipalClass</key>
<string>$(PRODUCT_MODULE_NAME).PacketTunnelProvider</string>
</dict>
</dict>
</plist>

View File

@@ -1 +0,0 @@
eyJ0eXAiOiJhdCtqd3QiLCJhbGciOiJSUzI1NiIsImtpZCI6IjFMN3k3RUM1T3VSZUNNNnIzX2l0MXNJbjNqeTdiZ2JPSVB3Z0xoejV0SGsifQ.eyJpc3MiOiJodHRwczovL2ZpcmV6b25lLmxvY2FsIiwic3ViIjoidGVzdEBmaXJlem9uZS5kZXYiLCJjbGllbnRfaWQiOiJmaXJlem9uZSIsImV4cCI6MTY3MjgzNzU0NCwiaWF0IjoxNjY4MTMzOTQ0fQ.NvvGWvrMvshKp5MYycDWXa8gQ41Ptrr_nIKzfPWzci8fxwmQYJ5hL1vQpdmECtR5NeGv7qTavi6yq19Kqmwrn27numDXaET2b2xypGbFOm1TJmcbZ4Rxy_-FfAeer-7YNhW_p83a0N7UoPORpxVs8hp76sKe_klfmoM830frrLzeqz0VYxBZXhPiTAlqiG39cY74yk-drxLY4xeRBAXh_TdewrkRkPpTpsrXFz60fF5P8AaRnUKlDSRq89ZIC-zo2ysJsXIZLrJpfcNgkscohZZfXfCLIFaiGvZseW0XHWfq-V5HOXVf09-57GHdmCr-AAJ7sqpnPrSBvg7EDBvylg

View File

@@ -1,17 +0,0 @@
#!/usr/bin/env ruby
require 'sinatra'
require 'erb'
set :bind, '0.0.0.0'
set :port, 4568
get '/:slug' do
ERB.new("<h1>Auth page</h1><a href=\"/redirect\">Proceed</a>")
.result(binding)
end
get '/redirect' do
client_auth_token = File.read('./data/client_auth_token').strip
redirect "firezone://handle_client_auth_callback?client_auth_token=#{client_auth_token}&actor_name=Foo+Bar"
end