Coder Social home page Coder Social logo

sapurtcomputer30 / identityendpointssample Goto Github PK

View Code? Open in Web Editor NEW

This project forked from davidfowl/identityendpointssample

2.0 0.0 0.0 13 KB

A sample showing how to setup ASP.NET Core Identity API endpoints for authentication

C# 100.00%

identityendpointssample's Introduction

Background

https://devblogs.microsoft.com/dotnet/improvements-auth-identity-aspnetcore-8/

In .NET 8 preview 6, we've added new APIs to allow exposing endpoints to register, login and refresh bearer tokens. This is a simple API that returns tokens (or sets cookies) that is optimized usage with 1st party applications (no delegated authentication). The tokens are self contained, and generated using the same technique as cookie authentication. These are NOT JWTs, they are self-contained tokens. To make issued tokens work across servers, data protection needs to be configured with shared storage.

New APIs

There are 2 new concepts being introduced:

  1. A new bearer token authentication handler. This authentication handler supports token validation and issuing and integrates with the normal ASP.NET Core authentication system. It can be used standalone without identity.
  2. A set of HTTP endpoints for registering a new user, exchanging credentials for a token/cookie and refreshing tokens using the identity APIs.

These new building blocks make it easier to build authenticated 1st party applications (applications that don't delegate authentication).

identityendpointssample's People

Contributors

davidfowl avatar jaliyaudagedara avatar jeremylikness avatar nielspilgaard avatar kjartanvalur avatar

Stargazers

sadra soleimani avatar  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.