This repository was archived by the owner on Nov 24, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 82
add oauth #31
Open
jackielii
wants to merge
7
commits into
te-con:master
Choose a base branch
from
jackielii:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
add oauth #31
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| FROM maven:3-jdk-8-alpine as builder | ||
| VOLUME /root/.m2 | ||
| COPY . /source | ||
| WORKDIR /source | ||
| RUN cp -r repository /root/.m2/ && \ | ||
| mvn org.apache.maven.plugins:maven-install-plugin:3.0.0-M1:install-file -Dfile=repository/nl/tecon/scalahighcharts/highcharts/1.7/highcharts-1.7.jar && \ | ||
| mvn install -Pprod -Dmaven.test.skip=true -DskipTests | ||
|
|
||
| FROM openjdk:8 | ||
| COPY --from=0 /source/eHour-standalone/target/ehour-1.4.4-SNAPSHOT-standalone/ehour-1.4.4-SNAPSHOT/ /ehour | ||
| WORKDIR /ehour | ||
| ENV EHOUR_HOME=/ehour | ||
| CMD java -cp "lib/*" net.rrm.ehour.EhourServerRunner |
This file contains hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -108,11 +108,11 @@ | |
| <artifactId>eHour-common</artifactId> | ||
| </dependency> | ||
|
|
||
| <dependency> | ||
| <groupId>net.rrm.ehour</groupId> | ||
| <artifactId>eHour-common</artifactId> | ||
| <type>test-jar</type> | ||
| </dependency> | ||
| <!--<dependency>--> | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is excluded because somehow if there the docker build won't pass |
||
| <!--<groupId>net.rrm.ehour</groupId>--> | ||
| <!--<artifactId>eHour-common</artifactId>--> | ||
| <!--<type>test-jar</type>--> | ||
| <!--</dependency>--> | ||
|
|
||
| <dependency> | ||
| <groupId>cglib</groupId> | ||
|
|
||
This file contains hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -102,4 +102,4 @@ | |
| (pa.dateEnd IS NULL or pa.dateEnd > :dateStart)]]> | ||
| </query> | ||
|
|
||
| </hibernate-mapping> | ||
| </hibernate-mapping> | ||
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -59,13 +59,13 @@ | |
| <artifactId>eHour-common</artifactId> | ||
| </dependency> | ||
|
|
||
| <dependency> | ||
| <groupId>net.rrm.ehour</groupId> | ||
| <artifactId>eHour-common</artifactId> | ||
| <version>${project.version}</version> | ||
| <scope>test</scope> | ||
| <classifier>tests</classifier> | ||
| </dependency> | ||
| <!--<dependency>--> | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same reason about the docker build |
||
| <!--<groupId>net.rrm.ehour</groupId>--> | ||
| <!--<artifactId>eHour-common</artifactId>--> | ||
| <!--<version>${project.version}</version>--> | ||
| <!--<scope>test</scope>--> | ||
| <!--<classifier>tests</classifier>--> | ||
| <!--</dependency>--> | ||
|
|
||
| <dependency> | ||
| <groupId>org.springframework</groupId> | ||
|
|
||
This file contains hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -60,12 +60,12 @@ | |
| <artifactId>eHour-common</artifactId> | ||
| </dependency> | ||
|
|
||
| <dependency> | ||
| <groupId>net.rrm.ehour</groupId> | ||
| <artifactId>eHour-common</artifactId> | ||
| <scope>test</scope> | ||
| <classifier>tests</classifier> | ||
| </dependency> | ||
| <!--<dependency>--> | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same reason about the docker build |
||
| <!--<groupId>net.rrm.ehour</groupId>--> | ||
| <!--<artifactId>eHour-common</artifactId>--> | ||
| <!--<scope>test</scope>--> | ||
| <!--<classifier>tests</classifier>--> | ||
| <!--</dependency>--> | ||
|
|
||
| <dependency> | ||
| <groupId>javax.servlet</groupId> | ||
|
|
@@ -78,13 +78,13 @@ | |
| <artifactId>eHour-service</artifactId> | ||
| </dependency> | ||
|
|
||
| <dependency> | ||
| <groupId>net.rrm.ehour</groupId> | ||
| <artifactId>eHour-service</artifactId> | ||
| <version>${project.version}</version> | ||
| <scope>test</scope> | ||
| <classifier>tests</classifier> | ||
| </dependency> | ||
| <!--<dependency>--> | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same reason about the docker build |
||
| <!--<groupId>net.rrm.ehour</groupId>--> | ||
| <!--<artifactId>eHour-service</artifactId>--> | ||
| <!--<version>${project.version}</version>--> | ||
| <!--<scope>test</scope>--> | ||
| <!--<classifier>tests</classifier>--> | ||
| <!--</dependency>--> | ||
|
|
||
| <dependency> | ||
| <groupId>nl.tecon.scalahighcharts</groupId> | ||
|
|
||
This file contains hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are they so lengthy, oauth standard? The datamodel needs changes as well to accommodate the longer username.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, this change is for when login with oauth, I have to set the username to the email as that's the only reliable field that comes with the claims that is readable. It's probably not necessary to set it to something readable, for example use the "subject" claim. I was trying to let the user able to login with their emails as well after logged in with Oauth the first time.
So I think we should remove this change.