Skip to content

Instantly share code, notes, and snippets.

Avatar

Israel Parra uno-de-piera

View GitHub Profile
@charltoons
charltoons / autoconfirm.js
Created Aug 26, 2017
AWS Cognito Lambda PreSignup Auto-Confirm Trigger
View autoconfirm.js
'use strict';
exports.handler = (event, context, callback) => {
console.log('Received event:', JSON.stringify(event, null, 2))
const modifiedEvent = event
// check that we're acting on the right trigger
if (event.triggerSource === "PreSignUp_SignUp"){
// auto confirm the user
@ygotthilf
ygotthilf / jwtRS256.sh
Last active Nov 27, 2020
How to generate JWT RS256 key
View jwtRS256.sh
ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key
# Don't add passphrase
openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub
cat jwtRS256.key
cat jwtRS256.key.pub
You can’t perform that action at this time.