Skip to content

ianxinnew/servicecomb-fence

 
 

Repository files navigation

Fence | 中文 License Gitter

This project is servicecomb-java-chassis security support. The main architecture is based on The OAuth 2.0 Authorization Framework and OpenID Connect. And provides APIs for developers based on Spring Security. Please see developers guide for details.

Authentication diagram

Authorization diagram

Project description

This project contains authentication-server, resource server, edge service, admin service and admin website.

  • Prepare

Authentication Server uses MySql database. Install database first, and initialize it by executing authentication-server\src\main\resources\sql\user.sql .

  • Build and run
build_and_run.bat

Can open this file with a text editor to check what it is done.

  • Demo web pages

Using admin/changeMyPassword login to the demo pages, and try operations.

http://localhost:9090/ui/admin/
  • Run tests

After services are started, try

cd %HOME%\integration-tests\target
start java -jar integration-tests-0.0.1-SNAPSHOT.jar

This test will token several seconds. See implementations of TestCase for testing details.

  • Observability

After login, Cloud Service capapi -> Problem Locating . Input Trace-Id and 大概时间 can search invocation chain logs and related application logs. Using 查看日志查看Metrics able to download logs and metrics.

Tips: Using debug window of browsers can find trace id in HTTP response headers, e.g. X-B3-Traceid:86560bc39a54d498.

Contact Us

About

Apache servicecomb security module for java-chassis

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vue 43.1%
  • Java 30.9%
  • TypeScript 21.3%
  • JavaScript 2.2%
  • HTML 1.4%
  • Less 0.8%
  • Other 0.3%