|
| 1 | +############################################################################ |
| 2 | +# MaxKey |
| 3 | +############################################################################ |
| 4 | +# domain name configuration |
| 5 | +config.server.domain=maxkey.top |
| 6 | +config.server.domain.sub=sso.${config.server.domain} |
| 7 | +config.server.name=http://${config.server.domain.sub} |
| 8 | +config.server.prefix.uri=${config.server.name}/maxkey |
| 9 | +#default.uri |
| 10 | +config.server.default.uri=${config.server.prefix.uri}/maxkey/appList |
| 11 | +config.server.management.uri=${config.server.name}:9521/maxkey-mgt/login |
| 12 | +#InMemory 0 , jdbc 1, Redis 2 |
| 13 | +config.server.persistence=0 |
| 14 | +#identity |
| 15 | +config.identity.kafkasupport=false |
| 16 | + |
| 17 | +config.app.issuer=CN=ConSec,CN=COM,CN=SH |
| 18 | +############################################################################ |
| 19 | +# Login configuration |
| 20 | +#enable captcha |
| 21 | +config.login.captcha=true |
| 22 | +#text or arithmetic |
| 23 | +config.login.captcha.type=text |
| 24 | +#enable two factor,use one time password |
| 25 | +config.login.mfa=true |
| 26 | +#TimeBasedOtpAuthn MailOtpAuthn SmsOtpAuthnYunxin SmsOtpAuthnAliyun SmsOtpAuthnTencentCloud |
| 27 | +config.login.mfa.type=TimeBasedOtpAuthn |
| 28 | +#enable social sign on |
| 29 | +config.login.socialsignon=true |
| 30 | +#social sign on providers |
| 31 | +config.login.socialsignon.providers=sinaweibo,google,qq,dingtalk,microsoft,facebook |
| 32 | +#Enable kerberos/SPNEGO |
| 33 | +config.login.kerberos=true |
| 34 | +#wsFederation |
| 35 | +config.login.wsfederation=false |
| 36 | +#remeberme |
| 37 | +config.login.remeberme=true |
| 38 | +#validity |
| 39 | +config.login.remeberme.validity=0 |
| 40 | + |
| 41 | +#to default application web site |
| 42 | +config.login.default.uri=appList |
| 43 | + |
| 44 | +config.ipaddress.whitelist=false |
| 45 | + |
| 46 | +#SmsOtpAuthnYunxin SmsOtpAuthnAliyun SmsOtpAuthnTencentCloud |
| 47 | +config.otp.sms=SmsOtpAuthnYunxin |
| 48 | + |
| 49 | +config.otp.sms.aliyun.accesskeyid=94395d754eb55693043f5d6a2b772ef4 |
| 50 | +config.otp.sms.aliyun.accesssecret=05d5485357bc |
| 51 | +config.otp.sms.aliyun.templatecode=14860095 |
| 52 | +config.otp.sms.aliyun.signname=maxkey |
| 53 | + |
| 54 | +config.otp.sms.yunxin.appkey=94395d754eb55693043f5d6a2b772ef4 |
| 55 | +config.otp.sms.yunxin.appsecret=05d5485357bc |
| 56 | +config.otp.sms.yunxin.templateid=14860095 |
| 57 | + |
| 58 | +config.otp.sms.tencentcloud.secretid=94395d754eb55693043f5d6a2b772ef4 |
| 59 | +config.otp.sms.tencentcloud.secretkey=05d5485357bc |
| 60 | +config.otp.sms.tencentcloud.smssdkappid=1486220095 |
| 61 | +config.otp.sms.tencentcloud.templateid=14860095 |
| 62 | +config.otp.sms.tencentcloud.sign=1486009522 |
| 63 | + |
| 64 | +config.otp.keyuri.format.type=totp |
| 65 | +config.otp.keyuri.format.digits=6 |
| 66 | +config.otp.keyuri.format.issuer=MaxKey |
| 67 | +config.otp.keyuri.format.domain=${config.server.domain} |
| 68 | +config.otp.keyuri.format.period=30 |
| 69 | + |
| 70 | +############################################################################ |
| 71 | +# Kerberos Login configuration |
| 72 | +############################################################################ |
| 73 | +#short name of user domain must be in upper case,eg:MAXKEY |
| 74 | +config.support.kerberos.default.userdomain=MAXKEY |
| 75 | +#short name of user domain must be in upper case,eg:MAXKEY.ORG |
| 76 | +config.support.kerberos.default.fulluserdomain=MAXKEY.ORG |
| 77 | +#last 8Bit crypto for Kerberos web Authentication |
| 78 | +config.support.kerberos.default.crypto=846KZSzYq56M6d5o |
| 79 | +#Kerberos Authentication server RUL |
| 80 | +config.support.kerberos.default.redirecturi=http://sso.maxkey.top/kerberos/authn/ |
| 81 | +############################################################################ |
| 82 | +# HTTPHEADER Login configuration |
| 83 | +############################################################################ |
| 84 | +config.support.httpheader.enable=false |
| 85 | +config.support.httpheader.headername=header-user |
| 86 | +# iv-user is for IBM Security Access Manager |
| 87 | +#config.httpheader.headername=iv-user |
| 88 | + |
| 89 | +############################################################################ |
| 90 | +# BASIC Login support configuration |
| 91 | +############################################################################ |
| 92 | + |
| 93 | +config.support.basic.enable=false |
| 94 | + |
| 95 | +############################################################################# |
| 96 | +# WsFederation Login support configuration |
| 97 | +#identifier: the identifer for the ADFS server |
| 98 | +#url: the login url for ADFS |
| 99 | +#principal: the name of the attribute/assertion returned by ADFS that contains the principal's username. |
| 100 | +#relyingParty: the identifier of the CAS Server as it has been configured in ADFS. |
| 101 | +#tolerance: (optional) the amount of drift to allow when validating the timestamp on the token. Default: 10000 (ms) |
| 102 | +#attributeMutator: (optional) a class (defined by you) that can modify the attributes/assertions returned by the ADFS server |
| 103 | +#signingCertificate: ADFS's signing certificate used to validate the token/assertions issued by ADFS. |
| 104 | +############################################################################ |
| 105 | + |
| 106 | +config.support.wsfederation.identifier=http://adfs.maxkey.top/adfs/services/trust |
| 107 | +config.support.wsfederation.url=https://adfs.maxkey.top/adfs/ls/ |
| 108 | +config.support.wsfederation.principal=upn |
| 109 | +config.support.wsfederation.relyingParty=urn:federation:connsec |
| 110 | +config.support.wsfederation.signingCertificate=adfs-signing.crt |
| 111 | +config.support.wsfederation.tolerance=10000 |
| 112 | +config.support.wsfederation.upn.suffix=maxkey.org |
| 113 | +config.support.wsfederation.logoutUrl=https://adfs.maxkey.top/adfs/ls/?wa=wsignout1.0 |
| 114 | +############################################################################# |
| 115 | + |
| 116 | +############################################################################# |
| 117 | +# OIDC V1.0 METADATA configuration |
| 118 | +config.oidc.metadata.issuer=${config.server.name}/maxkey |
| 119 | +config.oidc.metadata.authorizationEndpoint=${config.server.name}/maxkey/oauth/v20/authorize |
| 120 | +config.oidc.metadata.tokenEndpoint=${config.server.name}/maxkey/oauth/v20/token |
| 121 | +config.oidc.metadata.userinfoEndpoint=${config.server.name}/maxkey/api/connect/userinfo |
| 122 | + |
| 123 | +############################################################################# |
| 124 | +# SAML V2.0 configuration |
| 125 | +#saml common |
| 126 | +config.saml.v20.max.parser.pool.size=2 |
| 127 | +config.saml.v20.assertion.validity.time.ins.seconds=90 |
| 128 | +config.saml.v20.replay.cache.life.in.millis=14400000 |
| 129 | +config.saml.v20.issue.instant.check.clock.skew.in.seconds=90 |
| 130 | +config.saml.v20.issue.instant.check.validity.time.in.seconds=300 |
| 131 | + |
| 132 | + |
| 133 | +#saml idp keystore |
| 134 | +config.saml.v20.idp.keystore.password=maxkey |
| 135 | +config.saml.v20.idp.keystore.private.key.password=maxkey |
| 136 | +config.saml.v20.idp.keystore=classpath\:config/samlServerKeystore.jks |
| 137 | +#keystore id for sec |
| 138 | +config.saml.v20.idp.issuing.entity.id=maxkey.top |
| 139 | +config.saml.v20.idp.issuer=https://sso.maxkey.top/maxkey/saml |
| 140 | + |
| 141 | +config.saml.v20.idp.receiver.endpoint=https\://sso.maxkey.top/ |
| 142 | + |
| 143 | +#saml sp keystore |
| 144 | +config.saml.v20.sp.keystore.password=maxkey |
| 145 | +config.saml.v20.sp.keystore.private.key.password=maxkey |
| 146 | +config.saml.v20.sp.keystore=classpath\:config/samlClientKeystore.jks |
| 147 | +config.saml.v20.sp.issuing.entity.id=client.maxkey.org |
| 148 | + |
| 149 | +#Saml v20 METADATA |
| 150 | +config.saml.v20.metadata.orgName=maxkey |
| 151 | +config.saml.v20.metadata.orgDisplayName=maxkey |
| 152 | +config.saml.v20.metadata.orgURL=https://github.com/shimingxy/MaxKey |
| 153 | +config.saml.v20.metadata.contactType=technical |
| 154 | +config.saml.v20.metadata.company=maxkey |
| 155 | +config.saml.v20.metadata.givenName=maxkey |
| 156 | +config.saml.v20.metadata.surName=maxkey |
| 157 | +config.saml.v20.metadata.emailAddress= [email protected] |
| 158 | +config.saml.v20.metadata.telephoneNumber=4008981111 |
| 159 | + |
| 160 | +############################################################################ |
| 161 | +# Social Sign On Configuration # |
| 162 | +#you config client.id & client.secret only |
| 163 | +############################################################################ |
| 164 | + |
| 165 | +############################################################################ |
| 166 | +#sina weibo |
| 167 | +config.socialsignon.sinaweibo.provider=sinaweibo |
| 168 | +config.socialsignon.sinaweibo.provider.name=\u65B0\u6D6A\u5FAE\u535A |
| 169 | +config.socialsignon.sinaweibo.icon=images/social/sinaweibo.png |
| 170 | +config.socialsignon.sinaweibo.client.id=3379757634 |
| 171 | +config.socialsignon.sinaweibo.client.secret=1adfdf9800299037bcab9d1c238664ba |
| 172 | +config.socialsignon.sinaweibo.account.id=id |
| 173 | +config.socialsignon.sinaweibo.sortorder=1 |
| 174 | + |
| 175 | +#Google |
| 176 | +config.socialsignon.google.provider=google |
| 177 | +config.socialsignon.google.provider.name=Google |
| 178 | +config.socialsignon.google.icon=images/social/google.png |
| 179 | +config.socialsignon.google.client.id=519914515488.apps.googleusercontent.com |
| 180 | +config.socialsignon.google.client.secret=3aTW3Iw7e11QqMnHxciCaXTt |
| 181 | +config.socialsignon.google.account.id=id |
| 182 | +config.socialsignon.google.sortorder=2 |
| 183 | + |
| 184 | +#QQ |
| 185 | +config.socialsignon.qq.provider=qq |
| 186 | +config.socialsignon.qq.provider.name=QQ |
| 187 | +config.socialsignon.qq.icon=images/social/qq.png |
| 188 | +config.socialsignon.qq.client.id=101225363 |
| 189 | +config.socialsignon.qq.client.secret=8577d75e0eb4a91ac549cc8be3371bfd |
| 190 | +config.socialsignon.qq.account.id=openid |
| 191 | +config.socialsignon.qq.sortorder=4 |
| 192 | + |
| 193 | +#dingtalk |
| 194 | +config.socialsignon.dingtalk.provider=dingtalk |
| 195 | +config.socialsignon.dingtalk.provider.name=dingtalk |
| 196 | +config.socialsignon.dingtalk.icon=images/social/dingtalk.png |
| 197 | +config.socialsignon.dingtalk.client.id=dingoawf2jyiwh2uzqnphg |
| 198 | +config.socialsignon.dingtalk.client.secret=Crm7YJbMKfRlvG2i1SHpg4GHVpqF_oXiEjhmRQyiSiuzNRWpbFh9i0UjDTfhOoN9 |
| 199 | +config.socialsignon.dingtalk.account.id=openid |
| 200 | +config.socialsignon.dingtalk.sortorder=5 |
| 201 | + |
| 202 | +#Microsoft |
| 203 | +config.socialsignon.microsoft.provider=microsoft |
| 204 | +config.socialsignon.microsoft.provider.name=Microsoft |
| 205 | +config.socialsignon.microsoft.icon=images/social/live.png |
| 206 | +config.socialsignon.microsoft.client.id=24aa73b6-7928-4e64-bd64-d8682e650f95 |
| 207 | +config.socialsignon.microsoft.client.secret=PF[_AthtjVrtWVO2mNy@CJxY1@Z8FNf5 |
| 208 | +config.socialsignon.microsoft.account.id=id |
| 209 | +config.socialsignon.microsoft.sortorder=6 |
| 210 | + |
| 211 | +#facebook |
| 212 | +config.socialsignon.facebook.provider=facebook |
| 213 | +config.socialsignon.facebook.provider.name=facebook |
| 214 | +config.socialsignon.facebook.icon=images/social/facebook.png |
| 215 | +config.socialsignon.facebook.client.id=appKey |
| 216 | +config.socialsignon.facebook.client.secret=appSecret |
| 217 | +config.socialsignon.facebook.account.id=id |
| 218 | +config.socialsignon.facebook.sortorder=7 |
0 commit comments