Browse Source

Add a default Postman client registration to Mvc.Server

pull/60/head
Kévin Chalet 10 years ago
parent
commit
6fe39e9602
  1. 16
      samples/Mvc.Server/Startup.cs

16
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();
}
}

Loading…
Cancel
Save