microsoftgraph / msgraph-cli-archived

The Microsoft Graph CLI repository has moved. This repository is now an archive.
https://github.com/microsoftgraph/msgraph-cli
Other
44 stars 9 forks source link

Using mg login with scopes and client id (bug-bash) #122

Closed izaktumz-zz closed 3 years ago

izaktumz-zz commented 3 years ago

Describe the bug mg login bug using client id and scopes

To Reproduce Steps to reproduce the behavior:

  1. Successfully Installed the cli
  2. Typed the mg login command with the following parameters mg login --scopes "User.Read.All" --client-id my-app-clientid
  3. Redirected to Login Page
  4. Error Message: Trouble Signing in

Expected behavior Successful Login through the cli

Actual behavior Trouble Signing in

Screenshots If applicable, add screenshots to help explain your problem.

Recommendations Examples of Signing in using cli with different parameters AB#9560

jobala commented 3 years ago

@isaactumut what error message did you get?

izaktumz-zz commented 3 years ago

I got the error

Sorry, but we’re having trouble signing you in. AADSTS50011: The reply URL specified in the request does not match the reply URLs configured for the application:

NB:I did not specify the reply url when making the request.There is no mention of specifying the reply url in the cli

jobala commented 3 years ago

You need to configure the reply url when registering your app.

Considering this as a documentation bug, we need to tell users how to configure their apps.