aws-cdk-lib.aws_cognito.SignInUrlOptions

interface SignInUrlOptions

LanguageType name
.NETAmazon.CDK.AWS.Cognito.SignInUrlOptions
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awscognito#SignInUrlOptions
Javasoftware.amazon.awscdk.services.cognito.SignInUrlOptions
Pythonaws_cdk.aws_cognito.SignInUrlOptions
TypeScript (source)aws-cdk-lib » aws_cognito » SignInUrlOptions

Options to customize the behaviour of signInUrl().

Example

const userpool = new cognito.UserPool(this, 'UserPool', {
  // ...
});
const client = userpool.addClient('Client', {
  // ...
  oAuth: {
    flows: {
      implicitCodeGrant: true,
    },
    callbackUrls: [
      'https://myapp.com/home',
      'https://myapp.com/users',
    ],
  },
});
const domain = userpool.addDomain('Domain', {
  // ...
});
const signInUrl = domain.signInUrl(client, {
  redirectUri: 'https://myapp.com/home', // must be a URL configured under 'callbackUrls' with the client
});

Properties

NameTypeDescription
redirectUristringWhere to redirect to after sign in.
fips?booleanWhether to return the FIPS-compliant endpoint.
signInPath?stringThe path in the URI where the sign-in page is located.

redirectUri

Type: string

Where to redirect to after sign in.


fips?

Type: boolean (optional, default: return the standard URL)

Whether to return the FIPS-compliant endpoint.


signInPath?

Type: string (optional, default: '/login')

The path in the URI where the sign-in page is located.