This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** 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": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |