Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a schema documentation for config? (coming from aws-exports.js) #13995

Closed
drewboardman opened this issue Oct 24, 2024 · 3 comments
Closed
Labels
pending-response Issue is pending response from the issue author pending-triage Issue is pending triage question General question

Comments

@drewboardman
Copy link

drewboardman commented Oct 24, 2024

Amplify CLI Version

"aws-amplify": "^6.0.28"

Question

I am using the stand-alone authentication library. I am not interested in using the CLI or Amplify backend stuff for my app. I just want to use the Authenticator and have federated social sign-in through Google and Cognito.

One issue is that I cannot find any documentation of how to manually configure the config passed to Amplify.configure(config);. I figured out the Cognito bits:

export const cognitoConfig = {
    // socialProviders: ["Facebook", "Google"],
    Auth: {
        Cognito: {
            userPoolId: "us-east-aaa",
            userPoolClientId: "bbb",
            // Login options (optional)
            loginWith: {
                username: true,
                email: false,
                phone: false,
            },
            mfaConfiguration: "OFF",
            passwordProtectionSettings: {
                minLength: 8,
            },
            verificationMechanisms: ["EMAIL"],
        }
    }
};

This seems to be the Gen 1 solution. Since in the code, it is named LegacyConfig and there is a comment:

 * Compatibility type representing the Amplify Gen 1 configuration file schema. This type should not be used directly.

However, I can't find any documentation for setting up the social sign in for this UI library. All example/videos/documentation that are on the official website seem to rely on the amplify-cli. This is confusing to me, since the UI libraries seem to be marketed as stand-alone.

@drewboardman drewboardman added pending-triage Issue is pending triage question General question labels Oct 24, 2024
@ykethan
Copy link
Member

ykethan commented Oct 25, 2024

Hey @drewboardman, thank you for reaching out. The schema for the config/outputs file in the documentation and API documentation may assist with this information.

Do let us know if you require any additional assistance.

@ykethan ykethan added the pending-response Issue is pending response from the issue author label Oct 25, 2024
@ykethan
Copy link
Member

ykethan commented Nov 12, 2024

Closing the issue due to inactivity. Do reach out to us if you are still experiencing this issue

@ykethan ykethan closed this as not planned Won't fix, can't repro, duplicate, stale Nov 19, 2024
Copy link

This issue is now closed. Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pending-response Issue is pending response from the issue author pending-triage Issue is pending triage question General question
Projects
None yet
Development

No branches or pull requests

2 participants