-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Source credentials from module instance in config
- Loading branch information
Showing
11 changed files
with
235 additions
and
263 deletions.
There are no files selected for viewing
This file contains 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 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 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 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,15 @@ | ||
#!/bin/bash -e | ||
|
||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" | ||
|
||
echo "AUTH.SH: OAuth 2.0 credentials: Fetch..." | ||
echo "Enter 'OAuth 2.0 Client ID' (client_id):" | ||
read client_id | ||
|
||
echo "Enter 'Client Secret' (client_secret):" | ||
read client_secret | ||
|
||
echo "AUTH.SH: Generate access tokens: Opening web browser..." | ||
cd "${DIR}/python" | ||
DISPLAY=:0 python setup_access.py "${client_id}" "${client_secret}" 2> /dev/null | ||
echo "AUTH.SH: Generate access tokens: Done!" |
This file contains 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,13 @@ | ||
#!/bin/bash -e | ||
|
||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" | ||
|
||
cd "${DIR}" | ||
|
||
echo "INIT.SH: Install dependencies: Node.js..." | ||
npm install | ||
|
||
echo "INIT.SH: Install dependencies: Python..." | ||
pip install --quiet --user -r "${DIR}/requirements.txt" | ||
|
||
echo "INIT.SH: Install dependencies: Done!" |
This file contains 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 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.