From 6fe39e960277c6f7e2fbd6d88190c1de4ef006e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Chalet?= Date: Wed, 10 Feb 2016 18:25:43 +0100 Subject: [PATCH] Add a default Postman client registration to Mvc.Server --- samples/Mvc.Server/Startup.cs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/samples/Mvc.Server/Startup.cs b/samples/Mvc.Server/Startup.cs index 52c87ea3..6b1b1da0 100644 --- a/samples/Mvc.Server/Startup.cs +++ b/samples/Mvc.Server/Startup.cs @@ -132,6 +132,22 @@ namespace Mvc.Server { Type = OpenIddictConstants.ApplicationTypes.Confidential }); + // To test this sample with Postman, use the following settings: + // + // * Authorization URL: http://localhost:54540/connect/authorize + // * Access token URL: http://localhost:54540/connect/token + // * Client ID: postman + // * Client secret: [blank] (not used with public clients) + // * Scope: openid email profile roles + // * Grant type: authorization code + // * Request access token locally: yes + context.Applications.Add(new Application { + Id = "postman", + DisplayName = "Postman", + RedirectUri = "https://www.getpostman.com/oauth2/callback", + Type = OpenIddictConstants.ApplicationTypes.Public + }); + context.SaveChanges(); } }