File tree Expand file tree Collapse file tree 4 files changed +6
-5
lines changed
Expand file tree Collapse file tree 4 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 33rm -rf /tmp/aws
44cp -R /root/.aws /tmp/.aws
55
6- data=" $( aws sts assume-role --role-arn arn:aws:iam::395594542180:role/product-contractors-role --profile lfproduct --role-session-name lfproduct-dev-session) "
6+ dev_arn=" $( cat ./product-contractors-role.dev.secret) "
7+ data=" $( aws sts assume-role --role-arn ${dev_arn} --profile lfproduct --role-session-name lfproduct-dev-session) "
78export AWS_ACCESS_KEY_ID=" $( echo " ${data} " | jq -r ' .Credentials.AccessKeyId' ) "
89export AWS_SECRET_ACCESS_KEY=" $( echo " ${data} " | jq -r ' .Credentials.SecretAccessKey' ) "
910export AWS_SESSION_TOKEN=" $( echo " ${data} " | jq -r ' .Credentials.SessionToken' ) "
Original file line number Diff line number Diff line change 11#! /bin/bash
2- # API_URL=https://3f13-147-75-85-27 .ngrok-free.app (defaults to localhost:5000)
2+ # API_URL=https://[xyz] .ngrok-free.app (defaults to localhost:5000)
33if [ -z " $API_URL " ]
44then
55 export API_URL=" http://localhost:5000"
Original file line number Diff line number Diff line change 11#! /bin/bash
2- # API_URL=https://3f13-147-75-85-27 .ngrok-free.app (defaults to localhost:5000)
2+ # API_URL=https://[xyz] .ngrok-free.app (defaults to localhost:5000)
33# company_id='862ff296-6508-4f10-9147-2bc2dd7bfe80'
44# project_id='88ee12de-122b-4c46-9046-19422054ed8d'
55# return_url_type='github'
66# return_url='http://localhost'
77# TOKEN='...' - Auth0 JWT bearer token
88# DEBUG=1 TOKEN="$(cat ./auth0.token.secret)" ./utils/request_corporate_signature_post.sh 862ff296-6508-4f10-9147-2bc2dd7bfe80 88ee12de-122b-4c46-9046-19422054ed8d github 'http://localhost'
9- # TODO: this is WIP atm
9+ # TODO: this is WIP atm (due to AUTH0 token and X-ACL missing)
1010
1111if [ -z " $TOKEN " ]
1212then
Original file line number Diff line number Diff line change 11#! /bin/bash
2- # API_URL=https://3f13-147-75-85-27 .ngrok-free.app (defaults to localhost:5000)
2+ # API_URL=https://[token] .ngrok-free.app (defaults to localhost:5000)
33# TOKEN='...' - Auth0 JWT bearer token
44# BODY='{...}' - signature body
55
You can’t perform that action at this time.
0 commit comments