Skip to content
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

Bump ws from 6.2.2 to 6.2.3 #1094

Open
wants to merge 128 commits into
base: fix_typo
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
128 commits
Select commit Hold shift + click to select a range
0acaa0e
fixed typo in readme (#677)
wti806 Mar 4, 2020
30e290b
Localize email action (#681)
wti806 Mar 13, 2020
c7c5457
4.5.0
google-oss-bot Mar 13, 2020
6067268
[firebase-release] Removed change log and reset repo after 4.5.0 release
google-oss-bot Mar 13, 2020
7404a41
Fixes issue when email link user tries to sign in with FirebaseUI whe…
bojeil-google May 26, 2020
bc42a21
One tap migration (#714)
bojeil-google Jun 3, 2020
fb1dde6
Update package-lock. (#719)
bojeil-google Jun 3, 2020
bcf264a
4.5.1
google-oss-bot Jun 3, 2020
49128da
[firebase-release] Removed change log and reset repo after 4.5.1 release
google-oss-bot Jun 3, 2020
6b11d83
Bump websocket-extensions from 0.1.3 to 0.1.4 (#720)
dependabot[bot] Jun 8, 2020
18b5dd2
Updates dependency versions to remove all high risk dependencies. (#727)
bojeil-google Jun 26, 2020
481fc2c
Release updates on accountchooser.com warnings & fix RTL spinner (#724)
xil222 Jul 9, 2020
54e7c8c
4.5.2
google-oss-bot Jul 9, 2020
205f66d
[firebase-release] Removed change log and reset repo after 4.5.2 release
google-oss-bot Jul 9, 2020
3eb86ec
Adds ability to customize IdP buttons. (#730)
bojeil-google Jul 15, 2020
58192a4
4.6.0
google-oss-bot Jul 15, 2020
363dfd3
[firebase-release] Removed change log and reset repo after 4.6.0 release
google-oss-bot Jul 15, 2020
6787dbb
tenant button config (#737)
xil222 Jul 28, 2020
da98299
4.6.1
google-oss-bot Jul 28, 2020
194548b
[firebase-release] Removed change log and reset repo after 4.6.1 release
google-oss-bot Jul 28, 2020
e025211
Bump elliptic from 6.5.2 to 6.5.3 (#738)
dependabot[bot] Jul 29, 2020
540ddc0
Leverage the font-display CSS feature (#759)
oliverpool Oct 5, 2020
a9c367d
chore: accountchooser.com shutdown (#762)
xil222 Oct 12, 2020
93bdbc1
Fix high severities (#767)
xil222 Oct 15, 2020
fa37786
4.7.0
google-oss-bot Oct 15, 2020
02996d4
[firebase-release] Removed change log and reset repo after 4.7.0 release
google-oss-bot Oct 15, 2020
39230c6
fix: update ES6 firebase/app import
1amageek Oct 28, 2020
acbac90
fix: Microsoft cancelling Permission UI improvement (#775)
xil222 Nov 3, 2020
d636991
4.7.1
google-oss-bot Nov 3, 2020
702e012
[firebase-release] Removed change log and reset repo after 4.7.1 release
google-oss-bot Nov 3, 2020
7844a2e
Update README.md (#781)
jpangburn Nov 21, 2020
6525220
Support Safari 9. (#701)
simonness Nov 30, 2020
83b21dc
fix: Replace with respectful terms (#801)
bojeil-google Jan 25, 2021
4a3c665
Bump firebase dev dependency version number
sam-gc Jan 25, 2021
9ab63a2
Merge pull request #802 from firebase/samgho/version-bump
sam-gc Jan 27, 2021
bb65d49
fix: add emulator support for auth (#805)
sam-gc Jan 29, 2021
d48a68d
fix package lock (#808)
xil222 Feb 1, 2021
7154898
Emulator release (#809)
xil222 Feb 3, 2021
c99fc0d
use npm ci to replace npm install (#810)
xil222 Feb 3, 2021
ad29c57
4.7.2
google-oss-bot Feb 3, 2021
ad3f94b
[firebase-release] Removed change log and reset repo after 4.7.2 release
google-oss-bot Feb 3, 2021
b9c74bc
Release dialog (#811)
xil222 Feb 3, 2021
576519b
4.7.3
google-oss-bot Feb 3, 2021
a848b99
[firebase-release] Removed change log and reset repo after 4.7.3 release
google-oss-bot Feb 3, 2021
0c99d45
fix: fixes signInFailure return type (#812)
bojeil-google Feb 4, 2021
76b5654
Fix typo (#819)
sryze Feb 22, 2021
fad3989
Update README.md (#816)
ferrywlto Feb 26, 2021
a3fd135
Bump elliptic from 6.5.3 to 6.5.4 (#827)
dependabot[bot] Mar 8, 2021
eff21b6
feat: support disable new email user sign up (#826)
xil222 Mar 9, 2021
7ade9ff
4.8.0
google-oss-bot Mar 9, 2021
bfaf593
[firebase-release] Removed change log and reset repo after 4.8.0 release
google-oss-bot Mar 9, 2021
1a8f9e5
Bump y18n from 3.2.1 to 3.2.2 (#832)
dependabot[bot] Mar 29, 2021
fb863cc
Update README.md (#834)
Ready4theCrush Apr 7, 2021
389aa98
Use google-closure-deps instead of closurebuilder.py. (#839)
kjin Apr 27, 2021
7df4278
fix: fixes broken tests (#840)
bojeil-google Apr 27, 2021
271f012
feat: Implement adminRestrictedOperation config to support disabling …
xil222 Jul 15, 2021
743740a
4.8.1
google-oss-bot Jul 16, 2021
04fbd80
[firebase-release] Removed change log and reset repo after 4.8.1 release
google-oss-bot Jul 16, 2021
2df9b23
update dockerversion
xil222 Jul 16, 2021
33a7ced
change LTS version
xil222 Jul 16, 2021
6304ef0
update dockerversion (#861)
xil222 Jul 19, 2021
936a80b
fix: hash routing incompatibility with email link (#870)
bojeil-google Aug 4, 2021
e286bd0
fix: Update GCIP docs related feature (#871)
xil222 Aug 6, 2021
51c8f7a
chore: Shut down accountchooser credential helper (#873)
xil222 Aug 18, 2021
24d2b19
5.0.0
google-oss-bot Aug 18, 2021
50714ff
[firebase-release] Removed change log and reset repo after 5.0.0 release
google-oss-bot Aug 18, 2021
4fae8d6
Merge branch 'master' into dockerversion
xil222 Aug 18, 2021
fbeeb41
Update npm to make it compatiable with node version
xil222 Aug 18, 2021
d7046b8
Merge branch 'master' into dockerversion
xil222 Aug 18, 2021
4740dc2
Merge pull request #874 from firebase/dockerversion
xil222 Aug 19, 2021
4d61fc6
Migrate to GitHub actions (#878)
jamesdaniels Aug 31, 2021
bfc646c
Porting over some Github Actions fixes from the v9 PR
jamesdaniels Sep 29, 2021
39dc933
webdriver-manager in the package.json
jamesdaniels Sep 29, 2021
800b42f
Whooops sauce_connect wasnt spinning up if cache hit, add OSX support
jamesdaniels Oct 1, 2021
a3edcd5
Merge pull request #886 from firebase/github_actions_fixes
xil222 Oct 7, 2021
8cdf9eb
chore(docs): update docs to match new UI (#892)
Oct 13, 2021
5e2edbe
feat: Support for Firebase v9 (compat) (#850)
jamesdaniels Oct 28, 2021
f768ec7
Revert manually upgraded firebaseUI version
xil222 Oct 28, 2021
578212a
Merge pull request #897 from firebase/revertFirebaseUIVersion
xil222 Oct 28, 2021
d388ff8
6.0.0
google-oss-bot Oct 28, 2021
e8874db
[firebase-release] Removed change log and reset repo after 6.0.0 release
google-oss-bot Oct 28, 2021
782fa3b
Bump follow-redirects from 1.14.1 to 1.14.8 (#925)
dependabot[bot] Feb 14, 2022
3b5e5aa
Fix behavior of checkbox selecting on `auth` settings form (#920)
harrykiselev Feb 14, 2022
f522da7
Bump vm2 from 3.9.5 to 3.9.7 (#926)
dependabot[bot] Feb 15, 2022
cfa9ece
Upgraded to gulp-sass 5.0.0 to use node-sass 6.0.0
prameshj Feb 16, 2022
3964433
Autogenerated package-lock.json using `npm install`
prameshj Feb 16, 2022
d05eda7
Merge pull request #927 from firebase/prameshj-patch-1
prameshj Feb 22, 2022
f984908
Update CHANGELOG.md
prameshj Feb 22, 2022
ae371c4
Merge pull request #929 from firebase/prameshj-patch-2
prameshj Feb 22, 2022
24cf6be
6.0.1
google-oss-bot Feb 23, 2022
832134e
[firebase-release] Removed change log and reset repo after 6.0.1 release
google-oss-bot Feb 23, 2022
1380e47
Update npm token as the previous one has expired.
prameshj Feb 23, 2022
3375698
Merge pull request #930 from firebase/new-npm-token
prameshj Feb 23, 2022
60be9bf
Minor gender neutral text change
somejeff Sep 9, 2022
4577818
Update firebase compat to 9.13.0
NhienLam Nov 9, 2022
fc3e751
update package-lock.json
NhienLam Nov 9, 2022
2b8be76
Merge pull request #982 from firebase/update-to-9.13.0
prameshj Nov 10, 2022
4936b49
Update CHANGELOG.md
NhienLam Nov 11, 2022
6126532
Merge pull request #985 from firebase/nhienlam-patch-1
prameshj Nov 14, 2022
3f81c31
6.0.2
google-oss-bot Nov 14, 2022
18a2b1c
[firebase-release] Removed change log and reset repo after 6.0.2 release
google-oss-bot Nov 14, 2022
fba0d93
Update README.md to use Firebase JS version 9.13.0 when using CDN
NhienLam Nov 15, 2022
4da2639
Merge pull request #989 from firebase/nhienlam-patch-1
prameshj Nov 16, 2022
dd50ced
Bump vm2 from 3.9.7 to 3.9.19
dependabot[bot] May 17, 2023
6db9a13
Merge branch 'master' into patch-1
kroikie Jun 5, 2023
0694858
Merge pull request #1025 from firebase/dependabot/npm_and_yarn/vm2-3.…
kroikie Jun 5, 2023
39fb610
Merge branch 'master' into patch-1
somejeff Jun 8, 2023
a0a5d8c
Merge pull request #974 from somejeff/patch-1
rachelmyers Jun 12, 2023
f7176d2
Bump @grpc/grpc-js and firebase-tools (#1030)
dependabot[bot] Jul 14, 2023
de8a5b0
remove deprecated npm bin command (#1031)
jhuleatt Jul 14, 2023
2b29ba6
Bump word-wrap from 1.2.3 to 1.2.4 (#1033)
dependabot[bot] Jul 20, 2023
3b254b8
Update to Firebase JS 10 compat (#1032)
jhuleatt Jul 31, 2023
06c5e1f
update changelog
jhuleatt Jul 31, 2023
6d9ae57
6.1.0
google-oss-bot Aug 2, 2023
6ece912
[firebase-release] Removed change log and reset repo after 6.1.0 release
google-oss-bot Aug 2, 2023
85fbdd4
update deploy container deps
jhuleatt Aug 2, 2023
b2b7b4c
Configure Protractor to use the chromedriver binary
NhienLam Nov 2, 2023
7277a03
Update package-lock.json
NhienLam Nov 2, 2023
a01e523
Pin Chrome v118
NhienLam Nov 2, 2023
2369bb7
Pin chrome v118 in docker container
NhienLam Nov 2, 2023
7b3b4f7
Add TODO comment
NhienLam Nov 2, 2023
f8fe7dd
Merge pull request #1049 from firebase/nhienlam-patch2
NhienLam Nov 9, 2023
7e3ec16
Bump browserify-sign from 4.2.1 to 4.2.2 (#1046)
dependabot[bot] Nov 13, 2023
549b6d7
Update README.md (#685)
gregfenton Nov 13, 2023
efc1b85
docs: requireDisplayName has no effect with email link sign-in (#717)
emschwartz Nov 13, 2023
44884c7
Update password reset handler to handle password policy error (#1047)
NhienLam Nov 13, 2023
5ff6fde
Prep for 6.1.1 release (#1057)
jhuleatt Dec 8, 2023
1b4e501
Bump ws from 6.2.2 to 6.2.3
dependabot[bot] Jun 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Test

on:
push:
branches:
- master
pull_request:
branches:
- "**"

env:
SAUCE_USERNAME: ${{secrets.SAUCE_USERNAME}}
SAUCE_ACCESS_KEY: ${{secrets.SAUCE_ACCESS_KEY}}

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v2-beta
with:
node-version: '18'
check-latest: true
- name: node_modules cache
id: node_modules_cache
uses: actions/cache@v2
with:
path: ./node_modules
key: ${{ runner.os }}-18-node_modules-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-18-node_modules-
- name: NPM install
if: steps.node_modules_cache.outputs.cache-hit != 'true'
run: npm ci
- name: Build & run tests
run: npm run test
- name: Run tests in Saucelabs
run: |
./buildtools/sauce_connect.sh &
./buildtools/run_tests.sh --saucelabs
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ node_modules/
generated/
out/
dist/
.firebase

# Generated files.
*.log
Expand Down
16 changes: 0 additions & 16 deletions .travis.yml

This file was deleted.

1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* Fix password policy error message handling in password reset flow (#1047)
470 changes: 348 additions & 122 deletions README.md

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "firebaseui",
"version": "4.2.0",
"version": "6.0.0",
"description": "Javascript library for customizable UI on top of Firebase SDK",
"main": [
"./dist/firebaseui.js",
Expand All @@ -22,6 +22,6 @@
"out"
],
"dependencies": {
"firebase": "^4.1.2"
"firebase": "^9.1.3 || ^10.0.0"
}
}
18 changes: 12 additions & 6 deletions buildtools/container/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,22 @@
FROM node:8.16.0
FROM ubuntu:latest

# Install dependencies: curl, git, jq, python2 and jre8.
RUN apt-get update && \
apt-get install -y curl git jq python openjdk-8-jre-headless
apt-get install -y curl git jq python-is-python3 openjdk-11-jre-headless nodejs npm wget

# Install npm at 6.10.2.
RUN npm install --global [email protected]
# Print Node version and npm version
RUN node -v
RUN npm -v

# Install hub
RUN curl -fsSL --output hub.tgz https://github.com/github/hub/releases/download/v2.11.2/hub-linux-amd64-2.11.2.tgz
RUN tar --strip-components=2 -C /usr/bin -xf hub.tgz hub-linux-amd64-2.11.2/bin/hub

# Install the lastest Chrome stable version.
RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
RUN dpkg -i google-chrome-stable_current_amd64.deb; apt-get -fy install
# RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
# RUN dpkg -i google-chrome-stable_current_amd64.deb; apt-get -fy install

# Pin Chrome v119 because we're pinning this version in CI.
# TODO: Install the lastest Chrome stable version once we unpin chrome version in CI.
RUN wget https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/119.0.6045.105/linux64/chrome-linux64.zip
RUN dpkg -i google-chrome-stable_119.0.6045.105_amd64.deb; apt-get -fy install
12 changes: 6 additions & 6 deletions buildtools/gen_all_tests_js.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@

def main():
common.cd_to_firebaseui_root()
print "var allTests = ["
print("var allTests = [")
_print_test_files_under_root(common.TESTS_BASE_PATH)
print "];"
print("];")
# The following is required in the context of protractor.
print "if (typeof module !== 'undefined' && module.exports) {"
print " module.exports = allTests;"
print "}"
print("if (typeof module !== 'undefined' && module.exports) {")
print(" module.exports = allTests;")
print("}")


def _print_test_files_under_root(root):
Expand All @@ -41,7 +41,7 @@ def _print_test_files_under_root(root):
root: The path to the directory.
"""
for file_name in common.get_files_with_suffix(root, "_test.html"):
print " '%s'," % file_name[2:] # Ignore the beginning './'.
print(" '%s'," % file_name[2:]) # Ignore the beginning './'.


if __name__ == "__main__":
Expand Down
18 changes: 10 additions & 8 deletions buildtools/gen_test_html.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,9 @@ def _gen_html(js_path, template):

_write_file(related_paths.html, generated_html)

except: # pylint: disable=bare-except
print "HTML generation failed for: %s" % js_path
except Exception as e: # pylint: disable=bare-except
print("HTML generation failed for: %s" % js_path)
print(e)


def _get_related_paths_from_js_path(js_path):
Expand All @@ -86,21 +87,22 @@ def _get_related_paths_from_js_path(js_path):


def _extract_closure_package(js_data):
"""Extracts the package name that is goog.provide()d in the JS file.
"""Extracts the package name that is goog.provide() or goog.module()
in the JS file.

Args:
js_data: The contents of a JS test (*_test.js) file.

Returns:
The closure package goog.provide()d by the file.
The closure package goog.provide() or good.module() by the file.

Raises:
ValueError: The JS does not contain a goog.provide().
ValueError: The JS does not contain a goog.provide() or goog.module().
"""
matches = re.search(r"goog\.provide\('(.+)'\);", js_data)
matches = re.search(r"goog\.(provide|module)\([\n\s]*'(.+)'\);", js_data)
if matches is None:
raise ValueError("goog.provide() not found in file")
return matches.group(1)
raise ValueError("goog.provide() or goog.module() not found in file")
return matches.group(2)


def _read_file(path):
Expand Down
22 changes: 13 additions & 9 deletions buildtools/generate_test_files.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,21 @@
cd "$(dirname $(dirname "$0"))"

echo "Compiling templates..."
npm run build build-soy
cp -r ./out/soy ./generated
npm run build clean
npm run build-soy
mkdir -p ./generated
cp -r ./out/soy/* ./generated

echo "Generating dependency file..."
CLOSURE_PATH="google-closure-templates/javascript"
python node_modules/google-closure-library/closure/bin/build/depswriter.py \
--root_with_prefix="soy ../../../../soy" \
--root_with_prefix="generated ../../../../generated" \
--root_with_prefix="javascript ../../../../javascript" \
--root_with_prefix="node_modules/$CLOSURE_PATH ../../../$CLOSURE_PATH" \
node node_modules/.bin/closure-make-deps \
--closure-path="node_modules/google-closure-library/closure/goog" \
--file="node_modules/google-closure-library/closure/goog/deps.js" \
--root="soy" \
--root="generated" \
--root="javascript" \
--root="node_modules/google-closure-templates/javascript" \
--exclude="generated/all_tests.js" \
--exclude="generated/deps.js" \
--exclude="javascript/externs" \
> generated/deps.js

echo "Generating test HTML files..."
Expand Down
6 changes: 3 additions & 3 deletions buildtools/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@ if [ ! -s CHANGELOG.md ]; then
fi
echo "Made sure there is a changelog."

echo "Running npm install..."
npm install
echo "Ran npm install."
echo "Running npm ci..."
npm ci
echo "Ran npm ci."

CURRENT_VERSION=$(jq -r ".version" package.json)
echo "Making a $VERSION version..."
Expand Down
Binary file modified buildtools/publish/npmrc.enc
Binary file not shown.
26 changes: 15 additions & 11 deletions buildtools/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
# Can take up to two arguments:
# --saucelabs: Use SauceLabs instead of phantomJS.
# --tunnelIdentifier=<tunnelId>: when using SauceLabs, specify the tunnel
# identifier. Otherwise, uses the environment variable TRAVIS_JOB_NUMBER.
# identifier. Otherwise, uses the environment variable GITHUB_RUN_ID.
#
# Prefer to use the `npm test` command as explained below.
#
Expand All @@ -45,7 +45,7 @@
# This will start the HTTP Server locally, and connect through SauceConnect
# to SauceLabs remote browsers instances.
#
# Travis will run `npm test -- --saucelabs`.
# Github Actions will run `npm test -- --saucelabs`.

cd "$(dirname $(dirname "$0"))"
BIN_PATH="./node_modules/.bin"
Expand All @@ -71,24 +71,28 @@ trap killServer EXIT
# If --saucelabs option is passed, forward it to the protractor command adding
# the second argument that is required for local SauceLabs test run.
if [[ $1 = "--saucelabs" ]]; then
# Enable saucelabs tests only when running locally or when Travis enviroment vars are accessible.
if [[ ( "$TRAVIS" = true && "$TRAVIS_SECURE_ENV_VARS" = true ) || ( -z "$TRAVIS" ) ]]; then
# Enable saucelabs tests only when running locally or when CI enviroment vars are accessible.
if [[ ((! -z "$SAUCE_USERNAME") && (! -z "$SAUCE_ACCESS_KEY")) || ( -z "$CI" ) ]]; then
seleniumStarted=false
sleep 2
echo "Using SauceLabs."
until [ -f '/tmp/sauce-connect-ready' ]
do
sleep 2
done
# $2 contains the tunnelIdentifier argument if specified, otherwise is empty.
$PROTRACTOR_BIN_PATH/protractor protractor.conf.js --saucelabs $2
fi
else
# https://github.com/angular/webdriver-manager/issues/404
echo "Updating webdriver-manager dependency."
cd ./node_modules/protractor/
npm i webdriver-manager@latest
cd ../../
echo "Using Headless Chrome."
# Updates Selenium Webdriver.
echo "$PROTRACTOR_BIN_PATH/webdriver-manager update --gecko=false"
$PROTRACTOR_BIN_PATH/webdriver-manager update --gecko=false

# TODO(jhuleatt) this is failing when `google-chrome --product-version` returns Chrome 115.0.5790.110
# so for now, hard code latest
# GOOGLE_CHROME_VERSION=$(google-chrome --product-version || echo 'latest')
GOOGLE_CHROME_VERSION=$(echo 'latest')
echo "$PROTRACTOR_BIN_PATH/webdriver-manager update --versions.chrome=$GOOGLE_CHROME_VERSION --gecko=false"
$PROTRACTOR_BIN_PATH/webdriver-manager update --versions.chrome=$GOOGLE_CHROME_VERSION --gecko=false
# Start Selenium Webdriver.
echo "$PROTRACTOR_BIN_PATH/webdriver-manager start &>/dev/null &"
$PROTRACTOR_BIN_PATH/webdriver-manager start &>/dev/null &
Expand Down
30 changes: 23 additions & 7 deletions buildtools/sauce_connect.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,16 @@
# Download and install SauceConnect under Linux 64-bit. To be used when testing
# with SauceLabs locally. See the instructions in protractor.conf.js file.
#
# It should not be used on Travis. Travis already handles SauceConnect.
#
# Script copied from the Closure Library repository:
# https://github.com/google/closure-library/blob/master/scripts/ci/sauce_connect.sh
#

# Setup and start Sauce Connect locally.
CONNECT_URL="https://saucelabs.com/downloads/sc-4.4.1-linux.tar.gz"
if [[ $OSTYPE == 'darwin'* ]]; then
CONNECT_URL="https://saucelabs.com/downloads/sc-4.9.2-osx.zip"
else
CONNECT_URL="https://saucelabs.com/downloads/sc-4.9.2-linux.tar.gz"
fi
CONNECT_DIR="/tmp/sauce-connect-$RANDOM"
CONNECT_DOWNLOAD="sc-latest-linux.tar.gz"

Expand All @@ -35,8 +37,17 @@ mkdir -p $CONNECT_DIR
cd $CONNECT_DIR
curl $CONNECT_URL -o $CONNECT_DOWNLOAD 2> /dev/null 1> /dev/null
mkdir sauce-connect
tar --extract --file=$CONNECT_DOWNLOAD --strip-components=1 \

if [[ $OSTYPE == 'darwin'* ]]; then
unzip -d sauce-connect $CONNECT_DOWNLOAD &&
f=(sauce-connect/*) &&
mv sauce-connect/*/* sauce-connect &&
rmdir "${f[@]}"
else
tar --extract --file=$CONNECT_DOWNLOAD --strip-components=1 \
--directory=sauce-connect > /dev/null
fi

rm $CONNECT_DOWNLOAD

function removeFiles() {
Expand All @@ -46,8 +57,13 @@ function removeFiles() {

trap removeFiles EXIT

# This will be used by Protractor to connect to SauceConnect.
TUNNEL_IDENTIFIER="tunnelId-$RANDOM"
# This will be used by Protractor to connect to SauceConnect
if [[(! -z "$GITHUB_RUN_ID")]]; then
TUNNEL_IDENTIFIER="$GITHUB_RUN_ID"
else
TUNNEL_IDENTIFIER="tunnelId-$RANDOM"
fi

echo ""
echo "========================================================================="
echo " Tunnel Identifier to pass to Protractor:"
Expand All @@ -60,4 +76,4 @@ echo "Starting Sauce Connect..."

# Start SauceConnect.
sauce-connect/bin/sc -u $SAUCE_USERNAME -k $SAUCE_ACCESS_KEY \
-i $TUNNEL_IDENTIFIER
-i $TUNNEL_IDENTIFIER -f $BROWSER_PROVIDER_READY_FILE
Empty file added cut
Empty file.
11 changes: 11 additions & 0 deletions demo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,17 @@ Then copy and paste the Web snippet code found in the console (either by clickin
your web app" button in your Project overview, or clicking the "Web setup" button in the Auth page)
in the `config.js` file.

## Integrate One-tap sign-up with FirebaseUI (optional)

If you want to integrate with
[One-tap sign-up](https://developers.google.com/identity/one-tap/web/overview),
you will also need the Google OAuth web client ID corresponding to that project
which can be retrieved from the Google Cloud Console. This value will need to be
populated in `CLIENT_ID`.
The domain of the page has to also be whitelisted. Learn more on how to
[get started with One-tap sign-up](https://developers.google.com/identity/one-tap/web/get-started).
Skip this step, if you don't want to use One-tap sign-up with FirebaseUI.

## Deploy

### Option 1: Compile and use local FirebaseUI files
Expand Down
Loading
Loading