Coder Social home page Coder Social logo

oauth's Issues

CORS配置不当

oauth.asoulcnki.asia/:1

   Access to XMLHttpRequest at 'https://api.asoulcnki.asia/oauth/v1/uid' from origin 'https://oauth.asoulcnki.asia' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

数据持久化

目前的用户信息是放在Redis里的,所以遇到特殊情况,可能回丢失数据,需要把Redis的数据持久化

管理API

需要添加一组管理API,用于管理以下内容

  • 监听账号池的账号cookie,提供增删功能
  • token 和 session 的过期时间
  • 根据 uid 配置黑名单,提供增删功能

管理API通过在参数中携带指定的参数来鉴权,鉴权参数的名称和值都应当是可配置的

新增多账号收取

  • 添加多账号收取功能,支持多组 Cookie
  • 将不同的 Cookie 固定分配给不同的 Worker,如果能错开时间就更好了
    • 读 Cookie 的时候顺便可以把 uid 整理好
  • 新增一个获取账号的接口,用于给前端分发账号uid

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.