This repository has been archived by the owner on Jul 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 253
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SUBMARINE-1138. New SSO function based on OIDC
### What is this PR for? Use pac4j to support OIDC and default login action, and fix some user rest api question. Currently, it is a preview version, which is mainly modified for the background and adapted to the front-end processing. The current purpose is to summarize the core of the modification and test cicd. So please do not merge the current changes! ### What type of PR is it? Improvement ### Todos * [x] - User `pac4j-oidc` to support OIDC SSO based on cookie/session * [x] - Support rest api with header token * [x] - Front end modification. The 302 redirection of httpclient is not handled at present * [x] - Remove jdk1.8 support * [x] - Optimized cookie configuration * [x] - automatically create new user when logged in * [x] - Support clustering session by jdbc * [x] - Change mybatis log to SLF4J * [x] - Add some tests * [x] - Add some more documents about oidc support ### What is the Jira issue? https://issues.apache.org/jira/browse/SUBMARINE-1138 ### How should this be tested? Need to add some test later. ### Screenshots (if appropriate) ### Questions: * Do the license files need updating? No * Are there breaking changes for older versions? Yes * Does this need new documentation? Yes Author: cdmikechen <[email protected]> Signed-off-by: Kevin <[email protected]> Closes #1019 from cdmikechen/SUBMARINE-1138-0.8.0-pacj4j5.7 and squashes the following commits: 359109b [cdmikechen] SysUserService singleton 3501790 [cdmikechen] Add cookie document 0a45576 [cdmikechen] Fix document ad9d190 [cdmikechen] Add test d1a3304 [cdmikechen] revert authType b575241 [cdmikechen] remove SUBMARINE_AUTH_TYPE in image c552673 [cdmikechen] Fix test error 2e29658 [cdmikechen] Remove derby and upgrade jdk11 version c8644ce [cdmikechen] update jdk11 2803bda [cdmikechen] Adjustment code e9a1b8a [cdmikechen] Support jdk11 and pac4j 5.6.1 Add cookie samesite/httponly/securite eef1373 [cdmikechen] Test python-sdk 2ce98c1 [cdmikechen] Dealing with automatic user creation 1c98d2f [cdmikechen] Commit for python check fix 9ecb7cb [cdmikechen] Add api paths auth checks 220c49a [cdmikechen] Change auth type to flow type 3df16b4 [cdmikechen] Use servlet to replace static auth type check js 9409914 [cdmikechen] Handle front-end workbench oidc support 8b78695 [cdmikechen] deal with 401 16fe1a1 [cdmikechen] Add @context to fix error 90eb5c5 [cdmikechen] Add token to rest api header 0f8f263 [cdmikechen] Add oidc backend support(excluding the addition of oidc users)
- Loading branch information
1 parent
4d234b0
commit 9347fe5
Showing
50 changed files
with
1,746 additions
and
218 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
FROM alpine:3.10 | ||
FROM alpine:3.16.3 | ||
MAINTAINER Apache Software Foundation <[email protected]> | ||
|
||
# If you are in China, enabling the following two lines of code can speed up the build of the image, but it may cause failure in travis. | ||
|
@@ -23,10 +23,10 @@ MAINTAINER Apache Software Foundation <[email protected]> | |
|
||
# INSTALL openjdk | ||
RUN apk update && \ | ||
apk add --no-cache openjdk8 bash tini && \ | ||
apk add --no-cache openjdk11 bash tini && \ | ||
rm -rf /tmp/* /var/cache/apk/* | ||
|
||
ENV JAVA_HOME /usr/lib/jvm/java-1.8-openjdk/jre | ||
ENV JAVA_HOME /usr/lib/jvm/java-11-openjdk/jre | ||
|
||
# Install Submarine | ||
ADD ./tmp/submarine-dist-*.tar.gz /opt/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.