Code Monkey home page Code Monkey logo

aspnet.security.openidconnect.samples's Introduction

AspNet.Security.OpenIdConnect.Samples

ASP.NET Core samples demonstrating how to use the ASP.NET OpenID Connect server with MVC or JS apps.

Note: the samples hosted on this repository target ASP.NET Core 1.0 RTM ; see AspNet.Security.OpenIdConnect.Server/samples for samples targeting the latest pre-release versions.

This sample shows two separate web applications, potentially running on separate servers, playing the roles of a client and a server with regard to authentication.

To the user, Mvc.Client is the main web application, offering for example a login page and a home page (see HomeController). It plays as the client from the point of view of authentication, as it does not implement authentication services on its own and asks the Mvc.Server project for those through interactive OpenID Connect requests.

To the user, Mvc.Server is almost invisible. It offers authentication services to client web application by means of its REST API endpoints, playing as the authorization server mentioned in OpenID Connect scenarios. In this role, it's also responsible of rendering the authorization consent form (see AuthorizationController).

Besides from APIs to request and refresh tokens, Mvc.Server also offers an API to access a protected resource, whose data are only accessible to authenticated users (see ResourceController). Thus, it also plays as the resource server of an OpenID Connect scenario.

Note that, generally speaking, authorization server and resource server could also be split in two separate web applications.

Support

Need help or wanna share your thoughts? Don't hesitate to join us on Gitter or ask your question on StackOverflow:

Contributors

AspNet.Security.OpenIdConnect.Samples is actively maintained by Kévin Chalet. Contributions are welcome and can be submitted using pull requests.

License

This project is licensed under the Apache License. This means that you can use, modify and distribute it freely. See http://www.apache.org/licenses/LICENSE-2.0.html for more details.

aspnet.security.openidconnect.samples's People

Contributors

braincrumbz avatar kevinchalet avatar

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.