Git Product home page Git Product logo

openplatform's Introduction

开放平台例子

步骤: 1 创建mysql数据库openplatform

2 执行openplatform.sql文件创建表和初始化数据

3 用8080端口启动opentform-server项目

4 访问http://127.0.0.1:8080/openplatform-server/register注册一个帐号

5 访问http://127.0.0.1:8080/openplatform-server/login并登录(如果是走流程4,该步可以省略,刚注册帐号默认会登录)

6 访问http://127.0.0.1:8080/openplatform-server/open/index,并添加一个应用

7 将添加的应用获取的appkey,secret和redirectUrl填写到opentform-client项目的oauth.properties文件里

8 用8081端口启动opentform-client项目,新打开一个浏览器,访问http://127.0.0.1:8081/openplatform-client (新打开一个浏览器目的是为了重新授权,因为在同一个浏览器下4,5步骤已经授权)

9 点击"开始授权",应用跳转到服务器登录授权页面,填写步骤4注册的帐号,并登录

10 登录完后请"授权"

11 授权完后,点击"获取用户信息",就可以获取缓存的用户信息

说明:默认的appkey:874146317135 默认的secret:k7RSQH46AKp0bfmJS78oRqaCnW0H 默认的帐号密码:dylan/111111 如果启动项目的端口与上面步骤不一样,需要修改openplatform-client项目的oauth.properties和openplatform-sdk项目的_oauth.properties相应的选项

openplatform's People

Watchers

James Cloos avatar  avatar

Forkers

rocky-zh

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.