OAuth authentication to OneDrive results in AADTS90093, AADSTS50011 error and login fails.

Asked 2 years ago, Updated 2 years ago, 75 views

I am creating an Android app that displays folder information for the online storage area of OneDrive and SharePoint Online.I registered the application with Azure account, got the issued client ID, and set it to the application, but when I tried to log in with OAuth's authentication screen, an error occurred.Could you tell me how to deal with each error?

If you enter your account name and password on the OAuth authentication screen, the following error message appears and you cannot log in.The user attempting to log in is a regular user with a different tenant than the account tenant used to register the new app.

Error Message: Sorry, but we're having trouble signing you in. We received a
bad request.AADTS90093:This application requirements application
permissions to another application.Consent for application permissions
can only be performed by an administrator.Sign out and sign in as an
administrator or contact one of your organization's administrators.

In response to this error, I tried to log in with the administrator account I used to register a new application, but another error occurred.

Error Message: Sorry, but we*re having trouble signing you in. We received a
bad request.AADSTS50011: The reply address 'http://localhost:8000'
does not match the reply addresses configured for the
application: 'Client ID' More details: not specified.

I would like to know how to deal with these errors.
Also, I would like to make it possible for ordinary users to log in, but is it possible to change the application settings registered with AzureAD?

android azure

2022-09-30 16:12

1 Answers

If you use an API that requires administrator permission, you must first obtain approval from the administrator of the target tenant.

To get approval, access the fixed URL in the administrator account of the target tenant and press the approval button.

Please refer to the following site for specific instructions.
https://blogs.msdn.microsoft.com/tsmatsuz/2016/10/07/application-permission-with-v2-endpoint-and-microsoft-graph/

above-mentioned

https://login.microsoftonline.com/ {tenant name}/admincontent?client_id={application id}&state={some state data}&redirect_uri={redirect uri}

is the destination URL.

"However, when I tried, the access to the above URL itself failed, so I changed {tenant name} to ""common"" as described below, and it was successful."
https://stackoverflow.com/a/32529128/1411521

You only need to do this once in a while, but you will need to try again each time you change the permission settings for your application.


2022-09-30 16:12

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.