Introduction

DesignPatterns.API es una API protegida por Identity Server.

Getting Started

TODO: Guide users through getting your code up and running on their own system. In this section you can talk about:

  1. Installation process
  2. Software dependencies
  3. Latest releases
  4. API references

Build and Test

TODO: Describe and show how to build your code and run the tests.

Contribute

TODO: Explain how other users and developers can contribute to make your code better.

If you want to learn more about creating good readme files then refer the following guidelines. You can also seek inspiration from the below readme files:

Ejemplo para solicitar info a Identity Server

var accessToken = await HttpContext.GetTokenAsync("access_token");

var client1 = new HttpClient();

var disco = await client1.GetDiscoveryDocumentAsync("http://localhost:5002");
var client2 = new HttpClient();

var response = await client2.GetUserInfoAsync(new UserInfoRequest
{
    Address = disco.UserInfoEndpoint,
    Token = accessToken
});