-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(backend): New Backend and authentication for Phonebook data. (#7)
The following are the changes, most of them are breaking changes: - replace the json file with a real backend - the backend connects directly to a database - currently, it try to return the same stuff as the old JSON file - Open Source the backend - add authentification to the people data - currently, supported is WsFederation over Azure or ADFS (and tested) There are some issues that currently are known: - the search for numbers is broken - this is not related to this change but good to know (#591 ) - the last hierarchy in the org structure isn't visible in any view - organigram - users supervisor - Users organigram information - after login the user is redirected to `/` and not to the path the redirection starts. (#586 ) - the picture backend asked for login - this will change soon because we plan to use the same auth like this backend. But we must ship this because the old source is broken. (after more than 15 years!) So let's ![ship it gif](https://media1.tenor.com/images/6727709a62756a117203bbbf42c23ad9/tenor.gif?itemid=14131994) BREAKING CHANGE closes #18 closes #271
- Loading branch information
Showing
64 changed files
with
2,365 additions
and
517 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,19 @@ | ||
# TODO: #18 | ||
trigger: none | ||
pr: | ||
branches: | ||
include: | ||
- master | ||
paths: | ||
include: | ||
- Phonebook.Source.PeopleSoft/** | ||
|
||
jobs: | ||
- job: build | ||
displayName: build docker image | ||
pool: | ||
vmImage: 'ubuntu-16.04' | ||
steps: | ||
- bash: | | ||
docker build . | ||
workingDirectory: 'Phonebook.Source.PeopleSoft/' |
27 changes: 26 additions & 1 deletion
27
.azure/pipelines/production/Phonebook.Source.PeopleSoft.yml
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 |
---|---|---|
@@ -1 +1,26 @@ | ||
# TODO: #18 | ||
trigger: | ||
batch: true | ||
branches: | ||
include: | ||
- master | ||
paths: | ||
include: | ||
- Phonebook.Source.PeopleSoft/ | ||
pr: none | ||
|
||
jobs: | ||
- job: build | ||
displayName: build docker image | ||
pool: | ||
vmImage: 'ubuntu-16.04' | ||
steps: | ||
- bash: | | ||
docker build -t $dockerRepo:$tag . | ||
docker login -u $DOCKER_REGISTRY_USER -p $DOCKER_REGISTRY_PASSWORD | ||
docker push $dockerRepo:$tag | ||
workingDirectory: 'Phonebook.Source.PeopleSoft/' | ||
env: | ||
DOCKER_REGISTRY_PASSWORD: $(DOCKER_REGISTRY_PASSWORD) | ||
DOCKER_REGISTRY_USER: $(DOCKER_REGISTRY_USER) | ||
dockerRepo: tsystemsmms/phonebook-build | ||
tag: source-peoplesoft |
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
// Use IntelliSense to find out which attributes exist for C# debugging | ||
// Use hover for the description of the existing attributes | ||
// For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": ".NET Core Launch (web)", | ||
"type": "coreclr", | ||
"request": "launch", | ||
"preLaunchTask": "build", | ||
// If you have changed target frameworks, make sure to update the program path. | ||
"program": "${workspaceFolder}/Phonebook.Source.PeopleSoft/src/Phonebook.Source.PeopleSoft/bin/Debug/netcoreapp2.2/Phonebook.Source.PeopleSoft.dll", | ||
"args": [], | ||
"cwd": "${workspaceFolder}/Phonebook.Source.PeopleSoft/src/Phonebook.Source.PeopleSoft", | ||
"stopAtEntry": false, | ||
// Enable launching a web browser when ASP.NET Core starts. For more information: https://aka.ms/VSCode-CS-LaunchJson-WebBrowser | ||
"serverReadyAction": { | ||
"action": "openExternally", | ||
"pattern": "^\\s*Now listening on:\\s+(https?://\\S+)" | ||
}, | ||
"env": { | ||
"ASPNETCORE_ENVIRONMENT": "Development" | ||
}, | ||
"sourceFileMap": { | ||
"/Views": "${workspaceFolder}/Views" | ||
} | ||
}, | ||
{ | ||
"name": ".NET Core Attach", | ||
"type": "coreclr", | ||
"request": "attach", | ||
"processId": "${command:pickProcess}" | ||
} | ||
] | ||
} |
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "build", | ||
"command": "dotnet", | ||
"type": "process", | ||
"args": [ | ||
"build", | ||
"${workspaceFolder}/Phonebook.Source.PeopleSoft/src/Phonebook.Source.PeopleSoft/Phonebook.Source.PeopleSoft.csproj" | ||
], | ||
"problemMatcher": "$tsc" | ||
}, | ||
{ | ||
"label": "publish", | ||
"command": "dotnet", | ||
"type": "process", | ||
"args": [ | ||
"publish", | ||
"${workspaceFolder}/Phonebook.Source.PeopleSoft/src/Phonebook.Source.PeopleSoft/Phonebook.Source.PeopleSoft.csproj" | ||
], | ||
"problemMatcher": "$tsc" | ||
}, | ||
{ | ||
"label": "watch", | ||
"command": "dotnet", | ||
"type": "process", | ||
"args": [ | ||
"watch", | ||
"run", | ||
"${workspaceFolder}/Phonebook.Source.PeopleSoft/src/Phonebook.Source.PeopleSoft/Phonebook.Source.PeopleSoft.csproj" | ||
], | ||
"problemMatcher": "$tsc" | ||
} | ||
] | ||
} |
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
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.