Java Code Examples for org.jeecg.modules.shiro.vo.DefContants#X_ACCESS_TOKEN

The following examples show how to use org.jeecg.modules.shiro.vo.DefContants#X_ACCESS_TOKEN . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Swagger2Config.java    From jeecg-boot-with-activiti with MIT License 2 votes vote down vote up
/***
 * oauth2配置
 * 需要增加swagger授权回调地址
 * http://localhost:8888/webjars/springfox-swagger-ui/o2c.html
 * @return
 */
@Bean
SecurityScheme securityScheme() {
	return new ApiKey(DefContants.X_ACCESS_TOKEN, DefContants.X_ACCESS_TOKEN, "header");
}
 
Example 2
Source File: Swagger2Config.java    From teaching with Apache License 2.0 2 votes vote down vote up
/***
 * oauth2配置
 * 需要增加swagger授权回调地址
 * http://localhost:8888/webjars/springfox-swagger-ui/o2c.html
 * @return
 */
@Bean
SecurityScheme securityScheme() {
	return new ApiKey(DefContants.X_ACCESS_TOKEN, DefContants.X_ACCESS_TOKEN, "header");
}
 
Example 3
Source File: Swagger2Config.java    From jeecg-boot with Apache License 2.0 2 votes vote down vote up
/***
 * oauth2配置
 * 需要增加swagger授权回调地址
 * http://localhost:8888/webjars/springfox-swagger-ui/o2c.html
 * @return
 */
@Bean
SecurityScheme securityScheme() {
	return new ApiKey(DefContants.X_ACCESS_TOKEN, DefContants.X_ACCESS_TOKEN, "header");
}