Skip to content

Commit

Permalink
Revert "Changing redirect URI to https://login.microsoftonline.com/co…
Browse files Browse the repository at this point in the history
…mmon/oauth2/nativeclient Via the new WithDefaultRedirectUri() method."

This reverts commit 9ae8125.
  • Loading branch information
trwalke committed Jul 10, 2019
1 parent 9ae8125 commit 63ee17b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion 1. Desktop app calls Web API/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ If you want to register your apps manually, as a first step you'll need to:
- Select **Register** to create the application.
1. On the app **Overview** page, find the **Application (client) ID** value and record it for later. You'll need it to configure the Visual Studio configuration file for this project (`ida:ClientId` in `TodoListClient\App.Config`).
1. From the app's Overview page, select the **Authentication** section.
1. In the **Redirect URIs** list, under **Suggested Redirect URIs for public clients (mobile, desktop)** check the box next to **https://login.microsoftonline.com/common/oauth2/nativeclient**.
1. In the **Redirect URIs** list, select for **TYPE** Public client (mobile & desktop). Then paste this value **urn:ietf:wg:oauth:2.0:oob** in the **REDIRECT URI** column.
1. Select **Save**.
1. Select the **API permissions** section
- Click the **Add a permission** button and then,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,6 @@ public MainWindow()
InitializeComponent();
_app = PublicClientApplicationBuilder.Create(ClientId)
.WithAuthority(Authority)
//Sets the default redirect URI to https://login.microsoftonline.com/common/oauth2/nativeclient for .NET Framework
.WithDefaultRedirectUri()
.Build();

TokenCacheHelper.EnableSerialization(_app.UserTokenCache);
Expand Down

0 comments on commit 63ee17b

Please sign in to comment.