Need help for implementing OAuth for sending email
I am planning to implement OAuth in my desktop application for Yahoo email, and I'm following the documentation provided here: https://developer.yahoo.com/oauth2/guide/. However, I'm encountering several issues and would appreciate your assistance.
I need to use OAuth for sending emails, so I have registered an application in the developer center as a Public Client, intended for mobile apps, native apps, or single-page apps.
For my desktop application, I have used the redirect URI urn:ietf:wg:oauth:2.0:oob. Can you suggest an alternative redirect URI that would properly redirect to a desktop app? I have already tried http://127.0.0.1:50454/callback, but it did not work.
When it comes to sending emails, should I refer to the OpenID Connect documentation instead of the OAuth code grant flow?
I encountered an issue where using scope=mail-w in the following request to the auth API redirects to an error page instead of the consent page:
bash
Copy code
https://api.login.yahoo.com/oauth2/request_auth?client_id=client-id&redirect_uri=oob&response_type=code&language=en-us&prompt=consent&code_challenge=lNZvZVwF2BYEDIsmv5ne3iYdUeFyzHWtGDgSUDh-dco&code_challenge_method=S256
Can you explain why this is happening?
When I use prompt=login in the auth API request, it successfully directs users to the login page. However, after they log in, the authorization code is never displayed for the "oob" setup. Am I missing something in this process?
Lastly, could you provide guidance on the appropriate redirect URI mechanism for desktop applications, or do you have any specific recommendations?
Thank you for your help!

Hi there! We're sorry to hear this. Could you please share your email address with us in a Private Message on our Yahoo Customer Care page: https://www.facebook.com/YahooCustomerCare/? We're looking forward to helping you!