You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# 1) cla/routes.py: 'LG:': return request and cla.auth.fake_authenticate_user(request.headers) - test with fake data
7
+
# Or to get a real user data:
8
+
# 2a) on local (non remote) computer: ~/get_oauth_token.sh (or ~/get_oauth_token_prod.sh) (will open browser, authenticate to LF, and return token data)
9
+
# 2b) edit 'cla/auth.py': uncomment: 'LG: for local environment override', then run server via: clear && AUTH0_USERNAME_CLAIM_CLI='http://lfx.dev/claims/username' yarn serve:ext
10
+
# 2c) then TOKEN='value from the get_oauth_token.sh script' DEBUG='' ./utils/get_user_from_token_py.sh
11
+
12
+
if [ -z"$TOKEN" ]
13
+
then
14
+
# source ./auth0_token.secret
15
+
TOKEN="$(cat ./auth0.token.secret)"
16
+
fi
17
+
18
+
if [ -z"$TOKEN" ]
19
+
then
20
+
echo"$0: TOKEN not specified and unable to obtain one"
21
+
exit 1
22
+
fi
23
+
24
+
if [ -z"$XACL" ]
25
+
then
26
+
XACL="$(cat ./x-acl.secret)"
27
+
fi
28
+
29
+
if [ -z"$XACL" ]
30
+
then
31
+
echo"$0: XACL not specified and unable to obtain one"
0 commit comments