Giter Club home page Giter Club logo

boy-sso's Introduction

boy-sso

单点登录系统

简单使用方法

1、boy-sso-example项目中直接在web.xml中添加如下代码,需要注意的是需要依赖boy-sso-client这个项目。

	<filter>
		<filter-name>SSOAuth</filter-name>
		<filter-class>com.boy.sso.client.SSOFilter</filter-class>
		<init-param>
			<!-- 认证系统服务 -->
			<param-name>ssoService</param-name>
			<param-value>http://passport.com:8080/boy-sso-server/SSOAuth</param-value>
		</init-param>
		<init-param>
			<!-- 认证系统ticket名称 -->
			<param-name>cookieName</param-name>
			<param-value>boy-sso-client-id</param-value>
		</init-param>
		<init-param>
			<!-- 认证登出 -->
			<param-name>logoutStr</param-name>
			<param-value>/logout</param-value>
		</init-param>
		<init-param>
			<!-- 认证本地设置cookie -->
			<param-name>setCookieStr</param-name>
			<param-value>/setCookie</param-value>
		</init-param>
		<init-param>
			<!-- 过滤规则 -->
			<param-name>exclusions</param-name>
			<param-value>*/images/*,*/css/*,*/favicon.ico,*/js/*</param-value>
		</init-param>
	</filter>
	<filter-mapping>
		<filter-name>SSOAuth</filter-name>
		<url-pattern>/*</url-pattern>
	</filter-mapping>

2、部署运行boy-sso-server这个项目。

效果图:

登录页面

登录成功 ## (单个系统)

登录成功 ## (多个系统)

boy-sso's People

Watchers

 avatar  avatar  avatar

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.