Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!
openssl genrsa -des3 -out rootCA.key 4096
#!/bin/bash | |
# Check if the component name argument was passed | |
if [ -z "$1" ]; then | |
echo "Error: Component name argument is required." | |
exit 1 | |
fi | |
if [ ! -d "./components" ]; then | |
mkdir ./components |
{ | |
"Version":"2012-10-17", | |
"Statement":[ | |
{ | |
"Effect":"Allow", | |
"Principal":{ | |
"Service":[ | |
"edgelambda.amazonaws.com", | |
"lambda.amazonaws.com" | |
] |
{ | |
"Version":"2008-10-17", | |
"Statement":[ | |
{ | |
"Sid":"PublicReadGetObject", | |
"Effect":"Deny", | |
"Principal":"*", | |
"Action":[ | |
"s3:GetObject", | |
"s3:PutObject" |
'use strict'; | |
exports.handler = (event, context, callback) => { | |
// Get request and request headers | |
const request = event.Records[0].cf.request; | |
const headers = request.headers; | |
// Configure authentication | |
const authUser = 'user'; | |
const authPass = 'PassWord!'; | |
// Construct the Basic Auth string | |
const authString = 'Basic ' + new Buffer(authUser + ':' + authPass).toString('base64'); |
const echoPostRequest = { | |
url: pm.collectionVariables.get("authUrl"), | |
method: "POST", | |
header: { | |
"content-type": "application/x-www-form-urlencoded", | |
}, | |
body: { | |
mode: "urlencoded", | |
urlencoded: [ | |
{ |
// import the hook | |
import React, { useContext } from "react"; | |
//Import the Context | |
import { UsersContext } from "./context"; | |
// get the current value in UsersContext through the hook | |
const usersContext = useContext(UsersContext); | |
const { users, selectedUser, setSelectedUser } = usersContext; |