aws-amplify / amplify-flutter

A declarative library with an easy-to-use interface for building Flutter applications on AWS.
https://docs.amplify.aws
Apache License 2.0
1.33k stars 248 forks source link

Signin with apple name not showing #1679

Closed Ahmedthedev closed 2 years ago

Ahmedthedev commented 2 years ago

Description

Hi I have created a cognito user pool. And when I try to sign in with apple name is not showing.

The following way attribute mapping is done; Capture d’écran 2022-06-03 à 14 09 46

Attributes: Capture d’écran 2022-06-03 à 14 13 20

Additional information and screenshots

Capture d’écran 2022-06-03 à 14 23 52

Capture d’écran 2022-06-03 à 14 24 37

Categories

Steps to Reproduce

  1. I'm testing directly on my Iphone 8
  2. Initialized the apple login with Amplify.Auth.signInWithWebUI(provider: AuthProvider.apple);
  3. After successful login I get redirected back to my page with an authenticated user

Screenshots

No response

Platforms

Android Device/Emulator API Level

No response

Environment

Flutter version 2.10.5 
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 5464c5bac7 
    • Engine revision 57d3bac3dd
    • Dart version 2.16.2
    • DevTools version 2.9.2

Dependencies

dependencies:
- amplify_auth_cognito 0.2.10 [flutter amplify_auth_plugin_interface amplify_core collection plugin_platform_interface]
- amplify_core 0.2.10 [plugin_platform_interface meta flutter uuid]
- amplify_flutter 0.2.10 [flutter plugin_platform_interface amplify_storage_plugin_interface amplify_analytics_plugin_interface amplify_auth_plugin_interface amplify_datastore_plugin_interface amplify_api_plugin_interface amplify_core]
- api 1.0.0 [dio built_value built_collection]
- api_payment 1.0.0 [dio built_value built_collection]
- build_runner 2.1.5 [args async analyzer build build_config build_daemon build_resolvers build_runner_core code_builder collection crypto dart_style frontend_server_client glob graphs http_multi_server io js logging meta mime package_config path pool pub_semver pubspec_parse shelf shelf_web_socket stack_trace stream_transform timing watcher web_socket_channel yaml]
- cached_network_image 3.2.0 [flutter flutter_cache_manager octo_image cached_network_image_platform_interface cached_network_image_web]
- clock 1.1.0
- connectivity_plus 2.1.0 [flutter connectivity_plus_platform_interface connectivity_plus_linux connectivity_plus_macos connectivity_plus_web connectivity_plus_windows]
- credit_card_validator 2.0.0 [credit_card_type_detector]
- cupertino_icons 1.0.4
- curl_logger_dio_interceptor 0.0.3 [dio flutter]
- dio 4.0.4 [http_parser path]
- equatable 2.0.3 [collection meta]
- feature_flags 0.1.4 [collection shared_preferences flutter]
- file_picker 4.2.7 [flutter flutter_web_plugins flutter_plugin_android_lifecycle plugin_platform_interface ffi path]
- filesize 2.0.1
- firebase_analytics 8.3.4 [firebase_analytics_platform_interface firebase_analytics_web firebase_core flutter meta]
- firebase_core 1.10.5 [firebase_core_platform_interface firebase_core_web flutter meta]
- firebase_messaging 10.0.9 [firebase_core firebase_core_platform_interface firebase_messaging_platform_interface firebase_messaging_web flutter meta]
- fixnum 1.0.0
- fk_user_agent 2.1.0 [flutter]
- flutter 0.0.0 [characters collection material_color_utilities meta typed_data vector_math sky_engine]
- flutter_apns 1.5.1 [flutter firebase_core firebase_messaging flutter_apns_only]
- flutter_apns_only 1.5.0 [flutter]
- flutter_cache_manager 3.3.0 [clock collection file flutter http path path_provider pedantic rxdart sqflite uuid]
- flutter_html 2.2.1 [html csslib flutter_layout_grid video_player chewie webview_flutter chewie_audio flutter_svg flutter_math_fork collection numerus flutter]
- flutter_idensic_mobile_sdk_plugin 1.19.2 [flutter]
- flutter_keyboard_visibility 5.1.0 [meta flutter_keyboard_visibility_platform_interface flutter_keyboard_visibility_web flutter]
- flutter_local_notifications 9.1.5 [clock flutter flutter_local_notifications_linux flutter_local_notifications_platform_interface timezone]
- flutter_localizations 0.0.0 [flutter intl characters clock collection material_color_utilities meta path typed_data vector_math]
- flutter_markdown 0.6.8 [flutter markdown meta path]
- flutter_math_fork 0.5.0 [flutter flutter_svg provider meta collection tuple]
- flutter_riverpod 0.14.0+3 [collection flutter meta riverpod state_notifier]
- flutter_staggered_grid_view 0.4.1 [flutter]
- flutter_sticky_header 0.6.0 [flutter value_layout_builder]
- fluttertoast 8.0.8 [flutter flutter_web_plugins]
- freezed_annotation 0.14.3 [collection json_annotation meta]
- http 0.13.4 [async http_parser meta path]
- in_app_review 2.0.3 [flutter in_app_review_platform_interface]
- ingenico_sdk 0.0.3 [flutter pigeon ingenico_platform_interface]
- intl 0.17.0 [clock path]
- intl_phone_number_input 0.7.0+2 [flutter meta libphonenumber_plugin equatable collection]
- json_annotation 4.4.0 [meta]
- live_sale_api 1.0.0 [pedantic logging web_socket_channel jwt_decoder fixnum protobuf]
- localizely_sdk 2.3.0 [intl http logger package_info path_provider petitparser shared_preferences uuid]
- logging 1.0.2
- measurer 2.1.1 [flutter]
- native_pdf_view 5.0.0 [flutter photo_view synchronized native_pdf_renderer]
- open_file 3.2.1 [flutter ffi]
- package_info_plus 1.3.0 [flutter package_info_plus_platform_interface package_info_plus_linux package_info_plus_macos package_info_plus_windows package_info_plus_web]
- path 1.8.0
- path_icon 0.7.0 [xml path_drawing vector_math flutter]
- path_provider 2.0.8 [flutter path_provider_android path_provider_ios path_provider_linux path_provider_macos path_provider_platform_interface path_provider_windows]
- persistent_bottom_nav_bar 4.0.2 [flutter]
- photo_view 0.13.0 [flutter]
- protobuf 2.0.1 [fixnum collection]
- ragnarok_theme 0.0.1 [confetti html_unescape smooth_page_indicator equatable gap path_icon flutter_svg intl flutter_spinkit flutter_sticky_header freezed_annotation tap_builder auto_size_text shimmer transparent_image sms_autofill vrouter stateful flutter]
- ragnarok_video 0.0.1 [flutter webview_flutter path_provider path]
- retry 3.1.0
- sentry_flutter 6.2.0 [flutter flutter_web_plugins sentry package_info_plus]
- share_plus 3.0.4 [meta mime flutter share_plus_platform_interface share_plus_linux share_plus_macos share_plus_windows share_plus_web]
- shared_preferences 2.0.10 [flutter meta shared_preferences_android shared_preferences_ios shared_preferences_linux shared_preferences_macos shared_preferences_platform_interface shared_preferences_web shared_preferences_windows]
- shimmer 2.0.0 [flutter]
- state_notifier 0.7.1 [meta]
- stateful 0.2.1 [flutter]
- throttling 1.0.0
- url_launcher 6.0.17 [flutter meta url_launcher_android url_launcher_ios url_launcher_linux url_launcher_macos url_launcher_platform_interface url_launcher_web url_launcher_windows]
- vrouter 1.2.0+15 [flutter url_strategy url_launcher move_to_background]
- webview_flutter 3.0.0 [flutter webview_flutter_android webview_flutter_platform_interface webview_flutter_wkwebview]

dependency overrides:
- webview_flutter 3.0.0 [flutter webview_flutter_android webview_flutter_platform_interface webview_flutter_wkwebview]

transitive dependencies:
- _fe_analyzer_shared 31.0.0 [meta]
- amplify_analytics_plugin_interface 0.2.10 [amplify_core flutter meta]
- amplify_api_plugin_interface 0.2.10 [amplify_core collection flutter meta uuid]
- amplify_auth_plugin_interface 0.2.10 [flutter meta amplify_core]
- amplify_datastore_plugin_interface 0.2.10 [flutter meta collection date_time_format uuid amplify_core]
- amplify_storage_plugin_interface 0.2.10 [flutter meta amplify_core]
- analyzer 2.8.0 [_fe_analyzer_shared cli_util collection convert crypto glob meta package_config path pub_semver source_span watcher yaml]
- archive 3.1.6 [crypto path]
- args 2.3.0
- async 2.8.2 [collection meta]
- auto_size_text 3.0.0 [flutter]
- boolean_selector 2.1.0 [source_span string_scanner]
- build 2.1.1 [analyzer async convert crypto glob logging meta path]
- build_config 1.0.0 [checked_yaml json_annotation path pubspec_parse yaml]
- build_daemon 3.0.1 [built_collection built_value http_multi_server logging path pool shelf shelf_web_socket stream_transform watcher web_socket_channel]
- build_resolvers 2.0.5 [analyzer async build crypto graphs logging path package_config pool pub_semver stream_transform yaml]
- build_runner_core 7.2.2 [async build build_config build_resolvers collection convert crypto glob graphs json_annotation logging meta path package_config pool timing watcher yaml]
- built_collection 5.1.1
- built_value 8.1.3 [built_collection collection fixnum meta]
- cached_network_image_platform_interface 1.0.0 [flutter flutter_cache_manager]
- cached_network_image_web 1.0.1 [flutter flutter_cache_manager cached_network_image_platform_interface]
- characters 1.2.0
- charcode 1.3.1
- checked_yaml 2.0.1 [json_annotation source_span yaml]
- chewie 1.1.0 [cupertino_icons flutter video_player wakelock]
- chewie_audio 1.2.0 [cupertino_icons flutter video_player]
- cli_util 0.3.5 [meta path]
- code_builder 4.1.0 [built_collection built_value collection matcher meta]
- collection 1.15.0
- confetti 0.6.0 [flutter vector_math]
- connectivity_plus_linux 1.1.1 [flutter connectivity_plus_platform_interface meta nm]
- connectivity_plus_macos 1.2.1 [connectivity_plus_platform_interface flutter]
- connectivity_plus_platform_interface 1.1.1 [flutter meta plugin_platform_interface]
- connectivity_plus_web 1.1.0+1 [connectivity_plus_platform_interface flutter_web_plugins flutter]
- connectivity_plus_windows 1.2.0 [connectivity_plus_platform_interface flutter]
- convert 3.0.1 [typed_data]
- credit_card_type_detector 2.0.0
- crypto 3.0.1 [collection typed_data]
- csslib 0.17.1 [source_span]
- dart_style 2.2.0 [analyzer args path pub_semver source_span]
- date_time_format 2.0.1
- dbus 0.6.6 [args ffi meta xml]
- device_info_plus 3.1.1 [flutter device_info_plus_platform_interface device_info_plus_linux device_info_plus_macos device_info_plus_web device_info_plus_windows]
- device_info_plus_linux 2.1.0 [device_info_plus_platform_interface file flutter meta]
- device_info_plus_macos 2.2.0 [device_info_plus_platform_interface flutter]
- device_info_plus_platform_interface 2.2.1 [flutter meta plugin_platform_interface]
- device_info_plus_web 2.1.0 [device_info_plus_platform_interface flutter_web_plugins flutter]
- device_info_plus_windows 2.1.0 [device_info_plus_platform_interface ffi flutter win32]
- extension 0.2.0
- fake_async 1.2.0 [clock collection]
- ffi 1.1.2
- file 6.1.2 [meta path]
- firebase 9.0.2 [http http_parser js]
- firebase_analytics_platform_interface 2.0.1 [flutter meta]
- firebase_analytics_web 0.3.0+1 [firebase firebase_analytics_platform_interface flutter flutter_web_plugins meta]
- firebase_core_platform_interface 4.2.2 [collection flutter meta plugin_platform_interface]
- firebase_core_web 1.5.2 [firebase_core_platform_interface flutter flutter_web_plugins js meta]
- firebase_messaging_platform_interface 3.1.3 [firebase_core flutter meta plugin_platform_interface]
- firebase_messaging_web 2.2.4 [firebase_core firebase_core_web firebase_messaging_platform_interface flutter flutter_web_plugins js meta]
- flutter_blurhash 0.6.0 [flutter meta pedantic]
- flutter_keyboard_visibility_platform_interface 2.0.0 [flutter meta plugin_platform_interface]
- flutter_keyboard_visibility_web 2.0.0 [flutter_keyboard_visibility_platform_interface flutter_web_plugins flutter]
- flutter_layout_grid 1.0.3 [flutter collection meta quiver]
- flutter_local_notifications_linux 0.4.0 [flutter flutter_local_notifications_platform_interface dbus path xdg_directories]
- flutter_local_notifications_platform_interface 5.0.0 [flutter plugin_platform_interface]
- flutter_plugin_android_lifecycle 2.0.5 [flutter]
- flutter_spinkit 5.1.0 [flutter]
- flutter_svg 0.23.0+1 [flutter meta path_drawing vector_math xml]
- flutter_test 0.0.0 [flutter test_api path fake_async clock stack_trace vector_math async boolean_selector characters charcode collection matcher material_color_utilities meta source_span stream_channel string_scanner term_glyph typed_data]
- flutter_web_plugins 0.0.0 [flutter js characters collection material_color_utilities meta typed_data vector_math]
- frontend_server_client 2.1.2 [async path]
- gap 2.0.0 [flutter]
- glob 2.0.2 [async collection file path string_scanner]
- graphs 2.1.0 [collection]
- html 0.15.0 [csslib source_span]
- html_unescape 2.0.0
- http_multi_server 3.0.1 [async]
- http_parser 4.0.0 [charcode collection source_span string_scanner typed_data]
- image 3.1.0 [archive meta xml]
- in_app_review_platform_interface 2.0.2 [flutter url_launcher plugin_platform_interface platform]
- ingenico_platform_interface 0.1.1 [flutter plugin_platform_interface]
- io 1.0.3 [meta path string_scanner]
- js 0.6.3
- jwt_decoder 2.0.1
- libphonenumber 2.0.2 [flutter meta]
- libphonenumber_platform_interface 0.3.1 [flutter plugin_platform_interface]
- libphonenumber_plugin 0.2.3 [flutter flutter_web_plugins libphonenumber_platform_interface libphonenumber_web libphonenumber]
- libphonenumber_web 0.2.0+1 [flutter flutter_web_plugins js libphonenumber_platform_interface]
- logger 1.1.0
- markdown 4.0.1 [args charcode meta]
- matcher 0.12.11 [stack_trace]
- material_color_utilities 0.1.3
- meta 1.7.0
- mime 1.0.1
- move_to_background 1.0.2 [flutter]
- native_pdf_renderer 4.0.1 [flutter flutter_web_plugins device_info_plus uuid image js meta extension synchronized universal_platform]
- nested 1.0.0 [flutter]
- nm 0.4.1 [dbus]
- numerus 1.1.1
- octo_image 1.0.1 [flutter flutter_blurhash]
- package_config 2.0.2 [path]
- package_info 2.0.2 [flutter]
- package_info_plus_linux 1.0.3 [package_info_plus_platform_interface flutter path]
- package_info_plus_macos 1.3.0 [flutter]
- package_info_plus_platform_interface 1.0.2 [flutter meta plugin_platform_interface]
- package_info_plus_web 1.0.4 [flutter flutter_web_plugins http meta package_info_plus_platform_interface]
- package_info_plus_windows 1.0.4 [package_info_plus_platform_interface ffi flutter win32]
- path_drawing 0.5.1+1 [vector_math meta path_parsing flutter]
- path_parsing 0.2.1 [vector_math meta]
- path_provider_android 2.0.9 [flutter path_provider_platform_interface]
- path_provider_ios 2.0.7 [flutter path_provider_platform_interface]
- path_provider_linux 2.1.2 [flutter path path_provider_platform_interface xdg_directories]
- path_provider_macos 2.0.4 [flutter meta path_provider_platform_interface]
- path_provider_platform_interface 2.0.1 [flutter meta platform plugin_platform_interface]
- path_provider_windows 2.0.4 [ffi flutter meta path path_provider_platform_interface win32]
- pedantic 1.11.1
- petitparser 4.4.0 [meta]
- pigeon 3.0.3 [analyzer args collection meta path]
- pin_input_text_field 4.1.1 [flutter]
- platform 3.1.0
- plugin_platform_interface 2.0.2 [meta]
- pool 1.5.0 [async stack_trace]
- process 4.2.4 [file path platform]
- provider 6.0.1 [collection flutter nested]
- pub_semver 2.1.0 [collection meta]
- pubspec_parse 1.2.0 [checked_yaml collection json_annotation pub_semver yaml]
- quiver 3.0.1+1 [matcher]
- riverpod 0.14.0+3 [collection freezed_annotation meta state_notifier]
- rxdart 0.27.3
- sentry 6.2.0 [http meta stack_trace uuid]
- share_plus_linux 2.0.4 [share_plus_platform_interface file flutter meta url_launcher]
- share_plus_macos 2.0.2 [share_plus_platform_interface flutter]
- share_plus_platform_interface 2.0.1 [flutter meta mime plugin_platform_interface]
- share_plus_web 2.0.4 [share_plus_platform_interface url_launcher flutter flutter_web_plugins meta]
- share_plus_windows 2.0.3 [share_plus_platform_interface flutter meta url_launcher]
- shared_preferences_android 2.0.9 [flutter meta shared_preferences_platform_interface]
- shared_preferences_ios 2.0.8 [flutter meta shared_preferences_platform_interface]
- shared_preferences_linux 2.0.3 [file flutter meta path path_provider_linux shared_preferences_platform_interface]
- shared_preferences_macos 2.0.2 [flutter shared_preferences_platform_interface]
- shared_preferences_platform_interface 2.0.0 [flutter]
- shared_preferences_web 2.0.2 [flutter flutter_web_plugins meta shared_preferences_platform_interface]
- shared_preferences_windows 2.0.3 [file flutter meta path path_provider_platform_interface path_provider_windows shared_preferences_platform_interface]
- shelf 1.2.0 [async collection http_parser path stack_trace stream_channel]
- shelf_web_socket 1.0.1 [shelf stream_channel web_socket_channel]
- sky_engine 0.0.99
- smooth_page_indicator 1.0.0+2 [flutter]
- sms_autofill 2.2.0 [pin_input_text_field flutter]
- source_span 1.8.1 [collection path term_glyph]
- sqflite 2.0.1 [flutter sqflite_common path]
- sqflite_common 2.0.1+1 [synchronized path meta]
- stack_trace 1.10.0 [path]
- stream_channel 2.1.0 [async]
- stream_transform 2.0.0
- string_scanner 1.1.0 [charcode source_span]
- synchronized 3.0.0
- tap_builder 0.2.0 [flutter]
- term_glyph 1.2.0
- test_api 0.4.8 [async boolean_selector collection meta source_span stack_trace stream_channel string_scanner term_glyph matcher]
- timezone 0.8.0 [path]
- timing 1.0.0 [json_annotation]
- transparent_image 2.0.0
- tuple 2.0.0 [quiver]
- typed_data 1.3.0 [collection]
- universal_platform 1.0.0+1
- url_launcher_android 6.0.13 [flutter meta url_launcher_platform_interface]
- url_launcher_ios 6.0.13 [flutter meta url_launcher_platform_interface]
- url_launcher_linux 2.0.2 [flutter]
- url_launcher_macos 2.0.2 [flutter]
- url_launcher_platform_interface 2.0.4 [flutter plugin_platform_interface]
- url_launcher_web 2.0.5 [flutter flutter_web_plugins meta url_launcher_platform_interface]
- url_launcher_windows 2.0.2 [flutter]
- url_strategy 0.2.0 [flutter_web_plugins]
- uuid 3.0.5 [crypto]
- value_layout_builder 0.3.1 [flutter]
- vector_math 2.1.1
- video_player 2.2.7 [flutter meta video_player_platform_interface video_player_web html]
- video_player_platform_interface 4.2.0 [flutter flutter_test meta]
- video_player_web 2.0.4 [flutter flutter_web_plugins meta video_player_platform_interface]
- wakelock 0.5.6 [flutter meta wakelock_macos wakelock_platform_interface wakelock_web wakelock_windows]
- wakelock_macos 0.4.0 [flutter flutter_web_plugins wakelock_platform_interface]
- wakelock_platform_interface 0.3.0 [flutter meta]
- wakelock_web 0.4.0 [flutter flutter_web_plugins js wakelock_platform_interface]
- wakelock_windows 0.2.0 [flutter wakelock_platform_interface win32]
- watcher 1.0.1 [async path]
- web_socket_channel 2.1.0 [async crypto stream_channel]
- webview_flutter_android 2.8.2 [flutter webview_flutter_platform_interface]
- webview_flutter_platform_interface 1.8.0 [flutter plugin_platform_interface]
- webview_flutter_wkwebview 2.7.1 [flutter webview_flutter_platform_interface]
- win32 2.3.1 [ffi]
- xdg_directories 0.2.0 [meta path process]
- xml 5.3.1 [collection meta petitparser]
- yaml 3.1.0 [collection source_span string_scanner]

Device

Iphone 8

OS

15.4

CLI Version

5.1.2

Additional Context

No response

haverchuck commented 2 years ago

@Ahmedthedev According to the Cognito docs, there are a few instances in which scopes may not be returned from Apple, which could in turn cause the failure of Name to populate. Do any of the following apply?

With Sign in with Apple, the following are user scenarios where scopes might not be returned:

Ahmedthedev commented 2 years ago

Hello @haverchuck thanks you for your response.

I solve the problem.

In the iphone > settings > password and security > app using the Apple ID > your App > stop using apple ID

then I retry the process and it's works fine.