Git Product home page Git Product logo

Comments (2)

Allen7D avatar Allen7D commented on July 4, 2024
  1. 关于与lin-cms-vue-0.2.x适配的问题

lin-cms-vue-0.2.x的JWT接口认证是Bearer Token,而mini-shop-server的Basic Auth,两者,因此他们在前端和后端加密和解密的方式是不同的
你使用Postman这个接口测试软件就会发现。
image

  1. 关于小程序的请求头为何要Base64.encode加密

前端之所以要加密,是因为后端解析(代码在/app/core/token_auth.py)会解密,你估且认定为是一套既定的约定,后端的Serializer库会解析该Token。
当我们使用swagger的时候,你会看到生成的Token即使加密后的
image

from mini-shop-server.

DonkeXu avatar DonkeXu commented on July 4, 2024

校验成功了,感谢!

from mini-shop-server.

Related Issues (6)

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.