Architecture design of ASP. NET Core Login Module

Source: Internet
Author: User
Tags md5 encryption ticket

Three small modules

First, the login module (front-end recommended using Verify sliding module verification )

Background generate random Locations + temporary notes in a dictionary type in Redis (expires 5 minutes) return value: Random position, temporary ticket, background image URL

Front desk verification via and login request Body{name: "321", PWD: "Md5 Encryption"} Head{theid: "Temporary Ticket", postion: "Sliding Position"}

II: Authorization

Background verification location and login information by destroying the temporary ticket and generating the login ticket (token) and the user basic information has been stored in the dictionary form in Redis (Expiration time 15 minutes) and return to the front Token

Three: Validation

Front token is saved to head for each request on tape

Backend gets tokens in the middleware and determines if there are any in Redis

Presence execution

There is no access denied

Architecture design of ASP. NET Core Login Module

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.