What problem does it solve?
Setting up SSO for a Webiny admin app requires coordinating Cognito User Pool infrastructure, OAuth client settings, the admin login screen, and API-side identity mapping. This Skill guides you through configuring federated sign-in (Google, Facebook, Apple, Amazon, OIDC/Entra ID) while keeping Cognito as the user pool, so users authenticate via external providers and are auto-synced into Webiny.
Core Features & Use Cases
- Federation via
<Cognito /> prop: Add a federation object in webiny.config.tsx to provision the Cognito User Pool Domain, IdP resources, and OAuth client, plus provider buttons on the login screen.
- Custom identity mapping: Use
apiConfig with CognitoIdpConfig to map JWT claims (e.g., Cognito groups) to Webiny roles and teams.
- Custom login screen: Use
adminConfig with CognitoSignInConfig to control provider buttons, credentials visibility (e.g., IP whitelists), titles, and custom button components.
- Use Case: Add a "Sign in with Microsoft" button backed by Entra ID OIDC, hide the password form, and map Entra groups to Webiny roles — all from one config file.
Quick Start
Add a federation prop with domain, callbackUrls, and identityProviders to the Cognito component in webiny.config.tsx, then run yarn webiny deploy.