docker-compose up --build --force-recreate
http://localhost:8080/identity/.well-known/openid-configuration
$token = (curl -X POST 'http://localhost:8080/identity/connect/token' `
--data 'client_id=service&client_secret=secret&grant_type=client_credentials&scope=weather.read' | ConvertFrom-Json
).access_token
curl -X GET "http://localhost:8080/api/WeatherForecast" `
-H "Authorization: Bearer <access_token>"
curl -X POST 'http://localhost:8080/identity/connect/token' `
--data 'client_id=customer&grant_type=password&username=jsoliveira&password=1234&scope=openid profile'
curl -X POST 'http://localhost:8080/identity/connect/userinfo' -H "Authorization: Bearer <acess_token>"
result:
{"username":"jsoliveira","email":"jose.oliveira@domain.com","sub":"1234"}