提交 d33bbedf 编写于 作者: M MaxKey

maxkey-authentications

上级 c803c9a8
/* /*
* This build file was auto generated by running the Gradle buildrelease.bat * Copyright [2021] [MaxKey of copyright http://www.maxkey.top]
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* MaxKey build file was auto generated by running the Gradle release.bat
*/ */
defaultTasks "clean", "build" defaultTasks "clean", "build"
...@@ -148,7 +164,7 @@ subprojects { ...@@ -148,7 +164,7 @@ subprojects {
compile group: 'org.apache.poi', name: 'poi-ooxml', version: "${poiVersion}" compile group: 'org.apache.poi', name: 'poi-ooxml', version: "${poiVersion}"
compile group: 'org.apache.poi', name: 'poi-ooxml-schemas', version: "${poiVersion}" compile group: 'org.apache.poi', name: 'poi-ooxml-schemas', version: "${poiVersion}"
compile group: 'org.apache.poi', name: 'poi-scratchpad', version: "${poiVersion}" compile group: 'org.apache.poi', name: 'poi-scratchpad', version: "${poiVersion}"
compile group: 'org.apache.commons', name: 'not-yet-commons-ssl', version: '0.3.9' //compile group: 'org.apache.commons', name: 'not-yet-commons-ssl', version: '0.3.9'
//logs //logs
compile group: 'org.apache.logging.log4j', name: 'log4j-1.2-api', version: "${log4jVersion}" compile group: 'org.apache.logging.log4j', name: 'log4j-1.2-api', version: "${log4jVersion}"
......
description = "maxkey-authentication-captcha"
dependencies {
//local jars
compile fileTree(dir: '../maxkey-lib/', include: '*/*.jar')
compile project(":maxkey-core")
compile project(":maxkey-persistence")
}
\ No newline at end of file
...@@ -15,13 +15,14 @@ ...@@ -15,13 +15,14 @@
*/ */
package org.maxkey.web.image; package org.maxkey.web.contorller;
import com.google.code.kaptcha.Producer; import com.google.code.kaptcha.Producer;
import java.awt.image.BufferedImage; import java.awt.image.BufferedImage;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import org.maxkey.web.WebConstants; import org.maxkey.web.WebConstants;
import org.maxkey.web.image.AbstractImageEndpoint;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
......
description = "maxkey-authentications" description = "maxkey-authentication-core"
dependencies { dependencies {
//local jars //local jars
compile fileTree(dir: '../maxkey-lib/', include: '*/*.jar') compile fileTree(dir: '../maxkey-lib/', include: '*/*.jar')
compile project(":maxkey-core") compile project(":maxkey-core")
compile project(":maxkey-persistence") compile project(":maxkey-persistence")
compile project(":maxkey-protocols:maxkey-protocol-oauth-2.0") compile project(":maxkey-protocols:maxkey-protocol-oauth-2.0")
......
description = "maxkey-authentication-social"
dependencies {
//local jars
compile fileTree(dir: '../maxkey-lib/', include: '*/*.jar')
compile project(":maxkey-core")
compile project(":maxkey-persistence")
}
\ No newline at end of file
...@@ -70,7 +70,9 @@ public class SocialSignOnAutoConfiguration implements InitializingBean { ...@@ -70,7 +70,9 @@ public class SocialSignOnAutoConfiguration implements InitializingBean {
socialSignOnProvider.setClientId(clientId); socialSignOnProvider.setClientId(clientId);
socialSignOnProvider.setClientSecret(clientSecret); socialSignOnProvider.setClientSecret(clientSecret);
socialSignOnProvider.setSortOrder(Integer.valueOf(sortOrder)); socialSignOnProvider.setSortOrder(Integer.valueOf(sortOrder));
_logger.debug("socialSignOnProvider " + socialSignOnProvider); _logger.debug("socialSignOnProvider " + socialSignOnProvider.getProvider()
+ "(" + socialSignOnProvider.getProviderName()+")");
_logger.trace("socialSignOnProvider " + socialSignOnProvider);
socialSignOnProviderList.add(socialSignOnProvider); socialSignOnProviderList.add(socialSignOnProvider);
} }
socialSignOnProviderService.setSocialSignOnProviders(socialSignOnProviderList); socialSignOnProviderService.setSocialSignOnProviders(socialSignOnProviderList);
......
...@@ -45,7 +45,7 @@ public class AbstractImageEndpoint { ...@@ -45,7 +45,7 @@ public class AbstractImageEndpoint {
@Autowired @Autowired
@Qualifier("applicationConfig") @Qualifier("applicationConfig")
ApplicationConfig applicationConfig; protected ApplicationConfig applicationConfig;
/** /**
* producerImage. * producerImage.
......
...@@ -61,6 +61,7 @@ jib { ...@@ -61,6 +61,7 @@ jib {
dependencies { dependencies {
compile project(":maxkey-core") compile project(":maxkey-core")
compile project(":maxkey-authentications:maxkey-authentication-captcha")
compile project(":maxkey-persistence") compile project(":maxkey-persistence")
compile project(":maxkey-protocols:maxkey-protocol-oauth-2.0") compile project(":maxkey-protocols:maxkey-protocol-oauth-2.0")
compile project(":maxkey-protocols:maxkey-protocol-saml-2.0") compile project(":maxkey-protocols:maxkey-protocol-saml-2.0")
......
...@@ -48,6 +48,8 @@ public class MaxKeyMgtMvcConfig implements WebMvcConfigurer { ...@@ -48,6 +48,8 @@ public class MaxKeyMgtMvcConfig implements WebMvcConfigurer {
@Override @Override
public void addResourceHandlers(ResourceHandlerRegistry registry) { public void addResourceHandlers(ResourceHandlerRegistry registry) {
_logger.debug("addResourceHandlers");
_logger.debug("add statics"); _logger.debug("add statics");
registry.addResourceHandler("/static/**") registry.addResourceHandler("/static/**")
.addResourceLocations("classpath:/static/"); .addResourceLocations("classpath:/static/");
...@@ -65,7 +67,7 @@ public class MaxKeyMgtMvcConfig implements WebMvcConfigurer { ...@@ -65,7 +67,7 @@ public class MaxKeyMgtMvcConfig implements WebMvcConfigurer {
registry.addResourceHandler("doc.html").addResourceLocations("classpath:/META-INF/resources/"); registry.addResourceHandler("doc.html").addResourceLocations("classpath:/META-INF/resources/");
registry.addResourceHandler("/webjars/**").addResourceLocations("classpath:/META-INF/resources/webjars/"); registry.addResourceHandler("/webjars/**").addResourceLocations("classpath:/META-INF/resources/webjars/");
_logger.debug("add addResourceHandler"); _logger.debug("addResourceHandler finished .");
} }
@Override @Override
......
...@@ -64,7 +64,10 @@ dependencies { ...@@ -64,7 +64,10 @@ dependencies {
compile project(":maxkey-core") compile project(":maxkey-core")
compile project(":maxkey-persistence") compile project(":maxkey-persistence")
compile project(":maxkey-authentications") compile project(":maxkey-authentications:maxkey-authentication-core")
compile project(":maxkey-authentications:maxkey-authentication-social")
compile project(":maxkey-authentications:maxkey-authentication-captcha")
compile project(":maxkey-protocols:maxkey-protocol-authorize") compile project(":maxkey-protocols:maxkey-protocol-authorize")
compile project(":maxkey-protocols:maxkey-protocol-cas") compile project(":maxkey-protocols:maxkey-protocol-cas")
......
...@@ -68,6 +68,7 @@ public class MaxKeyMvcConfig implements WebMvcConfigurer { ...@@ -68,6 +68,7 @@ public class MaxKeyMvcConfig implements WebMvcConfigurer {
@Override @Override
public void addResourceHandlers(ResourceHandlerRegistry registry) { public void addResourceHandlers(ResourceHandlerRegistry registry) {
_logger.debug("addResourceHandlers");
_logger.debug("add statics"); _logger.debug("add statics");
registry.addResourceHandler("/static/**") registry.addResourceHandler("/static/**")
.addResourceLocations("classpath:/static/"); .addResourceLocations("classpath:/static/");
...@@ -85,7 +86,7 @@ public class MaxKeyMvcConfig implements WebMvcConfigurer { ...@@ -85,7 +86,7 @@ public class MaxKeyMvcConfig implements WebMvcConfigurer {
registry.addResourceHandler("doc.html").addResourceLocations("classpath:/META-INF/resources/"); registry.addResourceHandler("doc.html").addResourceLocations("classpath:/META-INF/resources/");
registry.addResourceHandler("/webjars/**").addResourceLocations("classpath:/META-INF/resources/webjars/"); registry.addResourceHandler("/webjars/**").addResourceLocations("classpath:/META-INF/resources/webjars/");
_logger.debug("add addResourceHandler"); _logger.debug("addResourceHandler finished .");
} }
@Override @Override
......
kaptcha.image.width=80
kaptcha.image.height=25
kaptcha.border=no
kaptcha.obscurificator.impl=com.google.code.kaptcha.impl.ShadowGimpy
kaptcha.textproducer.font.size=23
kaptcha.textproducer.char.string=0123456789
kaptcha.textproducer.char.length=4
kaptcha.noise.impl=com.google.code.kaptcha.impl.NoNoise
#kaptcha.noise.color=white
\ No newline at end of file
...@@ -6,7 +6,10 @@ rootProject.name = 'MaxKey' ...@@ -6,7 +6,10 @@ rootProject.name = 'MaxKey'
//Common //Common
include 'maxkey-core' include 'maxkey-core'
include 'maxkey-persistence' include 'maxkey-persistence'
include 'maxkey-authentications' //include 'maxkey-authentications'
include 'maxkey-authentications:maxkey-authentication-core'
include 'maxkey-authentications:maxkey-authentication-captcha'
include 'maxkey-authentications:maxkey-authentication-social'
//identity //identity
include 'maxkey-identitys:maxkey-identity-scim' include 'maxkey-identitys:maxkey-identity-scim'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册