For him, the service id is the correct one. Because he is getting the code for web login. But when you use an app to get the code, you should use bundle id instead.as explained here: https://forums.developer.apple.com/thread/118135
Post
Replies
Boosts
Views
Activity
facing the same issue