Giter Site home page Giter Site logo

damienbod / aspnetcorehybridflowwithapi Goto Github PK

View Code? Open in Web Editor NEW
338.0 23.0 69.0 7.68 MB

Different ASP.NET Core applications using OpenID Connect Hybrid flow Code Flow, Code Flow with PKCE, JWT APIs, MFA examples

Home Page: https://damienbod.com/2018/02/02/securing-an-asp-net-core-mvc-application-which-uses-a-secure-api/

License: MIT License

C# 40.33% JavaScript 1.82% CSS 37.62% HTML 15.13% Batchfile 0.01% Shell 0.01% SCSS 0.05% Less 5.03%
asp-net-core asp-net-mvc oidc openid hybrid-flow security token jwt oauth2 pkce

aspnetcorehybridflowwithapi's People

Contributors

damienbod avatar dependabot[bot] avatar hamidrezahy 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

aspnetcorehybridflowwithapi's Issues

SlidingExpiration?

Was going through the WebMVCClient example and the auth token caching implementation, when I found that the ApiTokenCacheClient is offsetting the expiration by the number of seconds in tokenResponse.ExpiresIn and also setting a sliding expiration of 1 day on top of that. Conversely, the ApiTokenInMemoryClient is only offsetting by the tokenResponse.ExpiresIn.

Is the expiration not a fixed point in time after being offset by the ExpiresIn value? Does sliding expiration do anything in this case? I'm assuming the token will be considered expired after the ExpiresIn has lapsed?

make passing reference to CSP.UseCspReportOnly, Explain CSP2 CSP3

reported by snomad

Maybe make passing reference to CSP.UseCspReportOnly, super helpful on initial efforts into CSP. I am still lost on CSP level 2 and level 3 and just how much of a priority they should be. CanIUse shows CSP 1 at 94% globally, CSP2 at 80%. Not sure what to aim for.

Scott Helme
You can use CSP 2 and CSP 3 features and be backwards compatible. At a minimum I'd say CSP 2.

Problem with Localization Services

Hello there,

I'm following your project but I have a problem with the localization services.

When I run the project I'm only seeing the key from the resources but not the value.

2021-12-04_19h34_41

Add other MFA method

ASP.NET Core Identity defaultUI is not added and so Identity razor pages need to be added explicitly.

At present, only FIDO2 is setup on the STS

Unable to validate the 'id_token', no suitable ISecurityTokenValidator was found for: ''."

I am getting this error when using WebCodeFlowPkceClient. I have configured all the parameters and succeed in getting authorization code and token, but after that above error is showing. Can you, please, help me? Am I doing something wrong?
Those are my parameters:
options.ClientId = config["Connection:ClientId"];
options.ClientSecret = config["Connection:ClientSecret"];
options.Scope.Clear();
options.Authority = config["Connection:Uri"];
options.CallbackPath = new PathString("/signin");
options.SignInScheme = "Cookies";
options.RequireHttpsMetadata = true;
options.ResponseType = "code";
options.ResponseMode = "query";
options.UsePkce = true;
options.SaveTokens = true;
options.GetClaimsFromUserInfoEndpoint = true;

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.