Skip to content

Instantly share code, notes, and snippets.

View rhosys-service-account's full-sized avatar
🔐
It's security related

Rhosys Service Account rhosys-service-account

🔐
It's security related
View GitHub Profile
@rhosys-service-account
rhosys-service-account / cloud-formation.js
Last active November 21, 2020 10:35
Step Function execution example including error handling
/** Example used to support creating custom domains with https://authress.io */
const stepFunctionResource = {
"Type": "AWS::StepFunctions::StateMachine",
"Properties": {
"StateMachineName": {
"Fn::Sub": "${AWS::StackName}-CustomDomain"
},
"LoggingConfiguration": {
"Destinations": [{
"CloudWatchLogsLogGroup": {
@rhosys-service-account
rhosys-service-account / auth-manager-routes.js
Last active November 21, 2020 10:35
Google Oauth identity provider quick start guide
const loginClient = new LoginClient({
// Both of these properties an be found and configured at:
// https://authress.io/app/#/manage?focus=applications
authenticationServiceUrl: 'https://login.application.com',
applicationId: 'YOUR_APPLICATION_ID'
});
// This will redirect the user to Google, track their session with Authress,
// and then redirect back to your specified redirectUrl. By default we redirect them back
// to where they started, however usually you’ll want to specify the next location