Giter VIP home page Giter VIP logo

netless-token's Introduction

netless-token

English

该项目用于签出 Agora 互动白板服务可识别的 Token,具体请参考《互动白板 Token 概述》

如何使用

你需要获取 AK、和 SK(可参考获取访问密钥对。之后,根据自己所掌握的语言,选择该 repo 中的 sample codes,将其迁移到自己的项目中。最后,在需要时,传入 AKSK 并调用函数生成 Token。

如果该 repo 没有提供满足你需求的语言的 sample codes,你可以。

  • 尝试根据已有的语言仿写你需要语言的等效 codes。
  • 通过向 Agora 互动白板服务发起 HTTP 请求来申请 Token,参考《生成 Token》。但我们不推荐这种做法。

注意事项

  • AKSK 是你的公司或团队的重要资产。切勿将其传输给客户端,或直接用代码写死在客户端。拿到了 AKSK 就是拿到了一切,让恶意人士窃取严重破坏你的资产安全。
  • 永不过期的 Token 可能为你的业务带来安全隐患。想象一下,如果某人获取了一个权限很高的 Token,他就可以用该 Token 危害你的系统,而你将该 Token 失效的唯一手段只有禁用该 Token 的访问密钥对——这是一个副作用极大的操作。
  • 不要将 sdkToken 泄漏到客户端(或前端),也不要将 sdkToken 存入数据库或写入配置文件。应该在使用时临时签出,过期时间尽可能设短。sdkToken 的权限级别很高,泄漏后会危害业务安全。

netless-token's People

Contributors

a1528zhang avatar alwaysmavs avatar baiyih avatar blackhole1 avatar hyrious avatar l1shen avatar leavesster avatar moskize91 avatar ooeyuna avatar the-redhat avatar tingchen2020 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

netless-token's Issues

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.