简体   繁体   中英

Flutter Amplify with SAML

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?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM