-1

https://docs.amplify.aws/lib/auth/signin_web_ui/q/platform/flutter#ios-platform-setup

Im trying to find out if its possible to use SAML with Flutter Amplify plugin

I only see documentation on how to do this with native iOS and Android

How would this be done with Flutter

is it just as simple as updating to awsconfiguration.json to include your SAML info?

{
    "IdentityManager": {
        ...
    },
    "CredentialsProvider": {
        ...
    },
    "CognitoUserPool": {
        ...
    },
    "Auth": {
        "Default": {
            "OAuth": {
                "WebDomain": "YOUR_AUTH_DOMAIN.auth.us-west-2.amazoncognito.com", // Do not include the https:// prefix
                "AppClientId": "YOUR_APP_CLIENT_ID",
                "SignInRedirectURI": "myapp://",
                "SignOutRedirectURI": "myapp://",
                "Scopes": ["openid", "email"]
            }
        }
    }
}

and then just calling Amplify.Auth.signInWithWebUI(); ?

or am i missing something else that is needed?

or is this not possible with Flutter Amplify yet?

1 Answer 1

0

turns out all i needed was the correct OAuth config values and simply calling signInWithWebUI()

1
  • what were the correct OAuth config values? having trouble with the SignInRedirectURI? any thoughts
    – Ivan Trejo
    May 20, 2022 at 6:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.