Code Monkey home page Code Monkey logo

identityserver4demo's Introduction

Hi there ๐Ÿ‘‹

I'm Vince and I work as a Solutions Architect. Iโ€™m very passionate about learning new technologies and ideas, I enjoy tackling challenges and sharing what I learned in the technical community through writing articles, books and answering to forums. I have over 18 years of software engineering experience - years of making mistakes and learning from them. 11-time Microsoft MVP, 5-time C# Corner MVP, CodeProject MVP, MVA, MVA, OSS Contributor, Microsoft Influencer, DZone MVB and a regular contributor at various online technical communities.

Microsoft MVP | CodeProject MVP | CodeProject MVA | CodeProject MVE | CsharpCorner MVP

  • ๐Ÿ“ I write technical articles related to ASP.NET CORE, .NET 5 and Azure on my blog. Feel free to subscribe and get the latest posts delivered right to your inbox!
  • ๐Ÿ”ญ Iโ€™m currently working on a new open-source project template for ASP.NET Core APIs. Stay tuned!
  • ๐Ÿ“˜ The recent book that I coauthored is out. Check it out here: ASP.NET Core 5 for Beginners.
  • โ˜๏ธ Iโ€™m currently learning Azure and Cloud stuff.
  • ๐Ÿฆ Follow me on twitter @vmsdurano
  • ๐Ÿ”— Let's connect on linkedin
  • ๐Ÿซ I'm an All-Star member at Microsoft ASP.NET forums (100k+ rep), Legend member at CodeProject (72k+ rep) and Platinum member at C# Corner (15k+ rep)

๐Ÿ“š Books written:

identityserver4demo's People

Contributors

proudmonkey avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

identityserver4demo's Issues

Breaks with the latest version of Identity Server 4

Hi,

Great demo but it breaks once you update Identity Server to latest version, ApiResource more specifically.

Thanks.

Migration steps to v4
As described above, starting with v4, scopes have their own definition and can optionally be referenced by resources. Before v4, scopes where always contained within a resource.

To migrate to v4 you need to split up scope and resource registration, typically by first registering all your scopes (e.g. using the AddInMemoryApiScopes method), and then register the API resources (if any) afterwards. The API resources will then reference the prior registered scopes by name.

Incorrect port

Thanks for all your work on the API boilerplate and the IdentityServer4 Demo - both are excellent. In your latest code updates, in WeatherApi\startup.cs:

services.AddAuthentication(IdentityServerAuthenticationDefaults.AuthenticationScheme)
.AddIdentityServerAuthentication(options =>
{
options.Authority = "https://localhost:44354";
options.ApiName = "app.api.weather";
});

in my case, should be:

services.AddAuthentication(IdentityServerAuthenticationDefaults.AuthenticationScheme)
.AddIdentityServerAuthentication(options =>
{
options.Authority = "https://localhost:44373";
options.ApiName = "app.api.weather";
});

It might help to comment the above hardcoded port that it needs to be changed to match the ssl port of the TokenServer's launchSettings.json "sslPort" setting. Even better, an appsettings.Development.json configuration entry could be helpful.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.