Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
STS
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Coscine
backend
apis
STS
Merge requests
!31
Product/512 api refactor
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Merged
Product/512 api refactor
Product/512-apiRefactor
into
Sprint/2020-03
Overview
0
Commits
4
Pipelines
1
Changes
13
Merged
Marcel Nellesen
requested to merge
Product/512-apiRefactor
into
Sprint/2020-03
5 years ago
Overview
0
Commits
4
Pipelines
1
Changes
13
0
0
Merge request reports
Compare
Sprint/2020-03
Sprint/2020-03 (base)
and
latest version
latest version
e2675083
4 commits,
5 years ago
13 files
+
297
−
398
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
13
src/STS/Controllers/ORCiDController.cs
+
3
−
3
View file @ e2675083
Edit in single-file editor
Open in Web IDE
Show full file
using
Coscine.Database.Model
;
using
Coscine.Database.
Data
Model
;
using
Coscine.STS.Models
;
using
Coscine.STS.Utils
;
using
Microsoft.AspNetCore.Mvc
;
using
System.Threading.Tasks
;
using
System.Security.Claims
;
using
Coscine.
ApiCommons
.Models
;
using
Coscine.
Database
.Models
;
using
System.Linq
;
using
Coscine.STS.Data
;
using
Microsoft.AspNetCore.Identity
;
@@ -58,7 +58,7 @@ namespace Coscine.STS.Controllers
ExternalIdModel
externalIdModel
=
new
ExternalIdModel
();
var
mapping
=
externalIdModel
.
GetAllWhere
((
map
)
=>
map
.
ExternalId_Column
==
ORCiD
&&
map
.
ExternalAuthenticatorId
==
orcidAuthItem
.
Id
);
User
Plain
Model
userPlainModel
=
new
User
Plain
Model
(
Program
.
Configuration
);
UserModel
userPlainModel
=
new
UserModel
();
User
user
;
if
(
mapping
.
Count
()
>
0
)
{
Loading