Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b45e9ab43d |
65
.github/workflows/deploy-snapshot.yml
vendored
Normal file
65
.github/workflows/deploy-snapshot.yml
vendored
Normal file
@@ -0,0 +1,65 @@
|
|||||||
|
name: Deploy
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ dev ]
|
||||||
|
paths:
|
||||||
|
- src/**
|
||||||
|
- pom.xml
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2.2.0
|
||||||
|
- name: Set up Java and Maven
|
||||||
|
uses: actions/setup-java@v2
|
||||||
|
with:
|
||||||
|
java-version: '8'
|
||||||
|
distribution: 'adopt'
|
||||||
|
- name: Cache m2 package
|
||||||
|
uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: ~/.m2/repository
|
||||||
|
key: ${{ runner.os }}-maven-${{ hashFiles('pom.xml') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-maven-
|
||||||
|
- run: mvn test
|
||||||
|
|
||||||
|
deploy-snapshot:
|
||||||
|
needs: test
|
||||||
|
if: ${{ success() }}
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2.2.0
|
||||||
|
- name: Set up Java and Maven
|
||||||
|
uses: actions/setup-java@v2
|
||||||
|
with:
|
||||||
|
java-version: '8'
|
||||||
|
distribution: 'adopt'
|
||||||
|
server-id: ossrh
|
||||||
|
server-username: MAVEN_USERNAME
|
||||||
|
server-password: MAVEN_PASSWORD
|
||||||
|
- name: Cache m2 package
|
||||||
|
uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: ~/.m2/repository
|
||||||
|
key: ${{ runner.os }}-maven-${{ hashFiles('pom.xml') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-maven-
|
||||||
|
- name: setting snapshot version
|
||||||
|
run: |
|
||||||
|
import xml.etree.ElementTree as ET
|
||||||
|
tree = ET.parse("pom.xml")
|
||||||
|
version = tree.find("{http://maven.apache.org/POM/4.0.0}version")
|
||||||
|
print(version.text + "-SNAPSHOT")
|
||||||
|
if version.text.endswith("-SNAPSHOT") == False:
|
||||||
|
tree.find("{http://maven.apache.org/POM/4.0.0}version").text = version.text + "-SNAPSHOT"
|
||||||
|
ET.register_namespace("", "http://maven.apache.org/POM/4.0.0")
|
||||||
|
tree.write("pom.xml", "utf-8", True)
|
||||||
|
shell: python
|
||||||
|
- name: deploy snapshot to ossrh repository
|
||||||
|
run: mvn -B deploy -P snapshot -DskipTests
|
||||||
|
env:
|
||||||
|
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
|
||||||
|
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
|
||||||
26
.github/workflows/test-pr.yml
vendored
Normal file
26
.github/workflows/test-pr.yml
vendored
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
name: test pull_request
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- src/**
|
||||||
|
- pom.xml
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2.2.0
|
||||||
|
- name: Set up Java and Maven
|
||||||
|
uses: actions/setup-java@v2
|
||||||
|
with:
|
||||||
|
java-version: '8'
|
||||||
|
distribution: 'adopt'
|
||||||
|
- name: Cache m2 package
|
||||||
|
uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: ~/.m2/repository
|
||||||
|
key: ${{ runner.os }}-maven-${{ hashFiles('pom.xml') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-maven-
|
||||||
|
- run: mvn test
|
||||||
22
pom.xml
22
pom.xml
@@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
<groupId>com.xkcoding.justauth</groupId>
|
<groupId>com.xkcoding.justauth</groupId>
|
||||||
<artifactId>justauth-spring-boot-starter</artifactId>
|
<artifactId>justauth-spring-boot-starter</artifactId>
|
||||||
<version>1.4.1</version>
|
<version>1.4.0</version>
|
||||||
|
|
||||||
<name>justauth-spring-boot-starter</name>
|
<name>justauth-spring-boot-starter</name>
|
||||||
<url>https://github.com/xkcoding/justauth-spring-boot-starter</url>
|
<url>https://github.com/xkcoding/justauth-spring-boot-starter</url>
|
||||||
@@ -72,8 +72,8 @@
|
|||||||
<!--SpringBoot版本-->
|
<!--SpringBoot版本-->
|
||||||
<spring-boot.version>2.1.8.RELEASE</spring-boot.version>
|
<spring-boot.version>2.1.8.RELEASE</spring-boot.version>
|
||||||
<!--JustAuth版本-->
|
<!--JustAuth版本-->
|
||||||
<justauth.version>1.16.7</justauth.version>
|
<justauth.version>1.16.1</justauth.version>
|
||||||
<hutool.version>5.8.35</hutool.version>
|
<hutool.version>5.6.5</hutool.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
@@ -215,6 +215,15 @@
|
|||||||
</repositories>
|
</repositories>
|
||||||
|
|
||||||
<profiles>
|
<profiles>
|
||||||
|
<profile>
|
||||||
|
<id>snapshot</id>
|
||||||
|
<distributionManagement>
|
||||||
|
<snapshotRepository>
|
||||||
|
<id>ossrh</id>
|
||||||
|
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
|
||||||
|
</snapshotRepository>
|
||||||
|
</distributionManagement>
|
||||||
|
</profile>
|
||||||
<profile>
|
<profile>
|
||||||
<id>release</id>
|
<id>release</id>
|
||||||
<build>
|
<build>
|
||||||
@@ -236,14 +245,9 @@
|
|||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
<distributionManagement>
|
<distributionManagement>
|
||||||
<snapshotRepository>
|
|
||||||
<id>oss</id>
|
|
||||||
<name>Oss Release Repository</name>
|
|
||||||
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
|
|
||||||
</snapshotRepository>
|
|
||||||
<repository>
|
<repository>
|
||||||
<id>oss</id>
|
<id>oss</id>
|
||||||
<name>Oss Snapshot Repository</name>
|
<name>Oss Release Repository</name>
|
||||||
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
|
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
|
||||||
</repository>
|
</repository>
|
||||||
</distributionManagement>
|
</distributionManagement>
|
||||||
|
|||||||
@@ -186,8 +186,6 @@ public class AuthRequestFactory {
|
|||||||
return new AuthGiteeRequest(config, authStateCache);
|
return new AuthGiteeRequest(config, authStateCache);
|
||||||
case DINGTALK:
|
case DINGTALK:
|
||||||
return new AuthDingTalkRequest(config, authStateCache);
|
return new AuthDingTalkRequest(config, authStateCache);
|
||||||
case DINGTALK_V2:
|
|
||||||
return new AuthDingTalkV2Request(config, authStateCache);
|
|
||||||
case DINGTALK_ACCOUNT:
|
case DINGTALK_ACCOUNT:
|
||||||
return new AuthDingTalkAccountRequest(config, authStateCache);
|
return new AuthDingTalkAccountRequest(config, authStateCache);
|
||||||
case BAIDU:
|
case BAIDU:
|
||||||
@@ -206,6 +204,10 @@ public class AuthRequestFactory {
|
|||||||
return new AuthWeChatOpenRequest(config, authStateCache);
|
return new AuthWeChatOpenRequest(config, authStateCache);
|
||||||
case WECHAT_MP:
|
case WECHAT_MP:
|
||||||
return new AuthWeChatMpRequest(config, authStateCache);
|
return new AuthWeChatMpRequest(config, authStateCache);
|
||||||
|
case WECHAT_ENTERPRISE:
|
||||||
|
return new AuthWeChatEnterpriseQrcodeRequest(config, authStateCache);
|
||||||
|
case WECHAT_ENTERPRISE_WEB:
|
||||||
|
return new AuthWeChatEnterpriseWebRequest(config, authStateCache);
|
||||||
case TAOBAO:
|
case TAOBAO:
|
||||||
return new AuthTaobaoRequest(config, authStateCache);
|
return new AuthTaobaoRequest(config, authStateCache);
|
||||||
case GOOGLE:
|
case GOOGLE:
|
||||||
@@ -218,9 +220,6 @@ public class AuthRequestFactory {
|
|||||||
return new AuthLinkedinRequest(config, authStateCache);
|
return new AuthLinkedinRequest(config, authStateCache);
|
||||||
case MICROSOFT:
|
case MICROSOFT:
|
||||||
return new AuthMicrosoftRequest(config, authStateCache);
|
return new AuthMicrosoftRequest(config, authStateCache);
|
||||||
case MICROSOFT_CN:
|
|
||||||
return new AuthMicrosoftCnRequest(config, authStateCache);
|
|
||||||
|
|
||||||
case MI:
|
case MI:
|
||||||
return new AuthMiRequest(config, authStateCache);
|
return new AuthMiRequest(config, authStateCache);
|
||||||
case TOUTIAO:
|
case TOUTIAO:
|
||||||
@@ -235,25 +234,15 @@ public class AuthRequestFactory {
|
|||||||
return new AuthStackOverflowRequest(config, authStateCache);
|
return new AuthStackOverflowRequest(config, authStateCache);
|
||||||
case HUAWEI:
|
case HUAWEI:
|
||||||
return new AuthHuaweiRequest(config, authStateCache);
|
return new AuthHuaweiRequest(config, authStateCache);
|
||||||
case HUAWEI_V3:
|
|
||||||
return new AuthHuaweiV3Request(config, authStateCache);
|
|
||||||
case WECHAT_ENTERPRISE:
|
|
||||||
return new AuthWeChatEnterpriseQrcodeRequest(config, authStateCache);
|
|
||||||
case WECHAT_ENTERPRISE_V2:
|
|
||||||
return new AuthWeChatEnterpriseQrcodeV2Request(config, authStateCache);
|
|
||||||
case WECHAT_ENTERPRISE_QRCODE_THIRD:
|
|
||||||
return new AuthWeChatEnterpriseThirdQrcodeRequest(config, authStateCache);
|
|
||||||
case WECHAT_ENTERPRISE_WEB:
|
|
||||||
return new AuthWeChatEnterpriseWebRequest(config, authStateCache);
|
|
||||||
case KUJIALE:
|
|
||||||
return new AuthKujialeRequest(config, authStateCache);
|
|
||||||
case GITLAB:
|
case GITLAB:
|
||||||
return new AuthGitlabRequest(config, authStateCache);
|
return new AuthGitlabRequest(config, authStateCache);
|
||||||
case MEITUAN:
|
case KUJIALE:
|
||||||
return new AuthMeituanRequest(config, authStateCache);
|
return new AuthKujialeRequest(config, authStateCache);
|
||||||
case ELEME:
|
case ELEME:
|
||||||
return new AuthElemeRequest(config, authStateCache);
|
return new AuthElemeRequest(config, authStateCache);
|
||||||
case TWITTER:
|
case MEITUAN:
|
||||||
|
return new AuthMeituanRequest(config, authStateCache);
|
||||||
|
case TWITTER:
|
||||||
return new AuthTwitterRequest(config, authStateCache);
|
return new AuthTwitterRequest(config, authStateCache);
|
||||||
case FEISHU:
|
case FEISHU:
|
||||||
return new AuthFeishuRequest(config, authStateCache);
|
return new AuthFeishuRequest(config, authStateCache);
|
||||||
@@ -271,22 +260,6 @@ public class AuthRequestFactory {
|
|||||||
return new AuthLineRequest(config, authStateCache);
|
return new AuthLineRequest(config, authStateCache);
|
||||||
case OKTA:
|
case OKTA:
|
||||||
return new AuthOktaRequest(config, authStateCache);
|
return new AuthOktaRequest(config, authStateCache);
|
||||||
case PROGINN:
|
|
||||||
return new AuthProginnRequest(config,authStateCache);
|
|
||||||
case AFDIAN:
|
|
||||||
return new AuthAfDianRequest(config,authStateCache);
|
|
||||||
case APPLE:
|
|
||||||
return new AuthAppleRequest(config,authStateCache);
|
|
||||||
case FIGMA:
|
|
||||||
return new AuthFigmaRequest(config,authStateCache);
|
|
||||||
case WECHAT_MINI_PROGRAM:
|
|
||||||
config.setIgnoreCheckRedirectUri(true);
|
|
||||||
config.setIgnoreCheckState(true);
|
|
||||||
return new AuthWechatMiniProgramRequest(config, authStateCache);
|
|
||||||
case QQ_MINI_PROGRAM:
|
|
||||||
config.setIgnoreCheckRedirectUri(true);
|
|
||||||
config.setIgnoreCheckState(true);
|
|
||||||
return new AuthQQMiniProgramRequest(config, authStateCache);
|
|
||||||
default:
|
default:
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,14 +19,6 @@
|
|||||||
"value": "DINGTALK",
|
"value": "DINGTALK",
|
||||||
"description": "DINGTALK."
|
"description": "DINGTALK."
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"value": "DINGTALK_V2",
|
|
||||||
"description": "DINGTALK_V2."
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": "DINGTALK_ACCOUNT",
|
|
||||||
"description": "DINGTALK_ACCOUNT."
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"value": "BAIDU",
|
"value": "BAIDU",
|
||||||
"description": "BAIDU."
|
"description": "BAIDU."
|
||||||
@@ -51,14 +43,6 @@
|
|||||||
"value": "QQ",
|
"value": "QQ",
|
||||||
"description": "QQ."
|
"description": "QQ."
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"value": "WECHAT_OPEN",
|
|
||||||
"description": "WeChat open platform."
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": "WECHAT_MP",
|
|
||||||
"description": "WeChat Official Platform."
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"value": "TAOBAO",
|
"value": "TAOBAO",
|
||||||
"description": "TAOBAO."
|
"description": "TAOBAO."
|
||||||
@@ -83,10 +67,6 @@
|
|||||||
"value": "MICROSOFT",
|
"value": "MICROSOFT",
|
||||||
"description": "MICROSOFT."
|
"description": "MICROSOFT."
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"value": "MICROSOFT_CN",
|
|
||||||
"description": "MICROSOFT_CN."
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"value": "MI",
|
"value": "MI",
|
||||||
"description": "MI."
|
"description": "MI."
|
||||||
@@ -116,24 +96,16 @@
|
|||||||
"description": "HUAWEI."
|
"description": "HUAWEI."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"value": "HUAWEI_V3",
|
"value": "WECHAT_OPEN",
|
||||||
"description": "HUAWEI_V3."
|
"description": "WeChat open platform."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"value": "WECHAT_ENTERPRISE",
|
"value": "WECHAT_ENTERPRISE",
|
||||||
"description": "WeChat enterprise platform."
|
"description": "WeChat enterprise platform."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"value": "WECHAT_ENTERPRISE_V2",
|
"value": "WECHAT_MP",
|
||||||
"description": "WeChat enterprise platform v2."
|
"description": "WeChat Official Platform."
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": "WECHAT_ENTERPRISE_QRCODE_THIRD",
|
|
||||||
"description": "WeChat enterprise qrcode third."
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": "WECHAT_ENTERPRISE_WEB",
|
|
||||||
"description": "WeChat enterprise web."
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"value": "KUJIALE",
|
"value": "KUJIALE",
|
||||||
@@ -151,69 +123,17 @@
|
|||||||
"value": "ELEME",
|
"value": "ELEME",
|
||||||
"description": "ELEME."
|
"description": "ELEME."
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"value": "TWITTER",
|
|
||||||
"description": "TWITTER."
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": "FEISHU",
|
|
||||||
"description": "FEISHU."
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"value": "GITLAB",
|
"value": "GITLAB",
|
||||||
"description": "GITLAB."
|
"description": "GITLAB."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"value": "JD",
|
"value": "TWITTER",
|
||||||
"description": "JD."
|
"description": "TWITTER."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"value": "ALIYUN",
|
"value": "ALIYUN",
|
||||||
"description": "ALIYUN."
|
"description": "ALIYUN."
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": "XMLY",
|
|
||||||
"description": "XMLY."
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": "AMAZON",
|
|
||||||
"description": "AMAZON."
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": "SLACK",
|
|
||||||
"description": "SLACK."
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": "LINE",
|
|
||||||
"description": "LINE."
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": "OKTA",
|
|
||||||
"description": "OKTA."
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": "PROGINN",
|
|
||||||
"description": "PROGINN."
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": "AFDIAN",
|
|
||||||
"description": "AFDIAN."
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": "APPLE",
|
|
||||||
"description": "APPLE."
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": "FIGMA",
|
|
||||||
"description": "FIGMA."
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": "WECHAT_MINI_PROGRAM",
|
|
||||||
"description": "WECHAT_MINI_PROGRAM."
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": "QQ_MINI_PROGRAM",
|
|
||||||
"description": "QQ_MINI_PROGRAM."
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
com.xkcoding.justauth.autoconfigure.JustAuthAutoConfiguration
|
|
||||||
Reference in New Issue
Block a user