Apache servicecomb security module for java-chassis

Clone this repo:


  1. 74bb155 [SCB-1827] upgrade servicecomb-fence to use servicecomb 2.0.2 by liubao · 2 years, 5 months ago master
  2. 0d116c0 [SCB-1641]fix auth filter default token type error (#19) by bao liu · 2 years, 10 months ago
  3. fac4f13 [SCB-1556]updagrad fence of java-chassis dependency to 1.3.0 and fix old pom problems by liubao · 3 years ago
  4. 8560555 [SCB-1420]provide authentication server for use(add build instructions) by liubao · 3 years, 2 months ago
  5. 57e6889 [SCB-1420]provide authentication server for use(change project pom structure) (#10) by bao liu · 3 years, 2 months ago

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 api, authentication-server and samples folders. Api folder contains components used in Authentication Server, Edge Service and Resource Server. Authentcation Server imeplentation is based on api. And samples folder gives a working example showing how to use these apis.

  • 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

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.

  • Run tests

After services are started, try


This test will token several seconds. See AuthenticationTestCase for testing details.

Contact Us