Skip to content

Commit 4f4cd9c

Browse files
committed
added paragraph to what and why SRP
1 parent 1317e10 commit 4f4cd9c

File tree

1 file changed

+3
-0
lines changed
  • src/pages/[platform]/build-a-backend/functions/examples/custom-auth-flows

1 file changed

+3
-0
lines changed

src/pages/[platform]/build-a-backend/functions/examples/custom-auth-flows/index.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ export function getStaticProps() {
2929
};
3030
}
3131

32+
Secure Remote Password (SRP) is a cryptographic protocol enabling password-based authentication without transmitting the password over the network. In Amazon Cognito custom authentication flows, CUSTOM_WITH_SRP incorporates SRP steps for enhanced security, while CUSTOM_WITHOUT_SRP bypasses these for a simpler process. The choice between them depends on your application's security needs and performance requirements.
33+
This guide demonstrates how to implement both types of custom authentication flows using AWS Amplify with Lambda triggers.
34+
3235
You can use `defineAuth` and `defineFunction` to create an auth experience that uses `CUSTOM_WITH_SRP` and `CUSTOM_WITHOUT_SRP`. This can be accomplished by leveraging [Amazon Cognito's feature to define a custom auth challenge](https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-authentication-flow.html#Custom-authentication-flow-and-challenges) and 3 triggers:
3336

3437
1. [Create auth challenge](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-create-auth-challenge.html)

0 commit comments

Comments
 (0)