Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
LegacySTS
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Coscine
backend
apis
LegacySTS
Commits
277d4b28
Commit
277d4b28
authored
4 years ago
by
Benedikt Heinrichs
Browse files
Options
Downloads
Patches
Plain Diff
Fix compatibility problems (coscine/issues#1335)
parent
86e29f7d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1
New: Create a legacy STS Api
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/LegacySTS/Controllers/STSController.cs
+3
-2
3 additions, 2 deletions
src/LegacySTS/Controllers/STSController.cs
src/LegacySTS/LegacySTS.csproj
+1
-0
1 addition, 0 deletions
src/LegacySTS/LegacySTS.csproj
with
4 additions
and
2 deletions
src/LegacySTS/Controllers/STSController.cs
+
3
−
2
View file @
277d4b28
...
...
@@ -5,6 +5,7 @@ using System;
using
System.IdentityModel.Configuration
;
using
System.IdentityModel.Services
;
using
System.IdentityModel.Tokens
;
using
System.Web
;
namespace
Coscine.Api.LegacySTS.Controllers
{
...
...
@@ -16,12 +17,12 @@ namespace Coscine.Api.LegacySTS.Controllers
}
[
HttpPost
(
"[controller]/processSignIn/{url}/{hostValue}"
)]
public
IActionResult
ProcessSignIn
(
Uri
url
,
string
hostValue
,
[
FromBody
]
SignInInstance
signInInstance
)
public
IActionResult
ProcessSignIn
(
string
url
,
string
hostValue
,
[
FromBody
]
SignInInstance
signInInstance
)
{
var
user
=
signInInstance
.
User
;
var
userObject
=
signInInstance
.
UserObject
;
var
requestMessage
=
(
SignInRequestMessage
)
WSFederationMessage
.
CreateFromUri
(
url
);
var
requestMessage
=
(
SignInRequestMessage
)
WSFederationMessage
.
CreateFromUri
(
new
Uri
(
HttpUtility
.
UrlDecode
(
url
)
))
;
var
signingCredentials
=
new
X509SigningCredentials
(
CustomSecurityTokenService
.
GetCertificate
());
var
config
=
new
SecurityTokenServiceConfiguration
(
hostValue
,
signingCredentials
);
...
...
This diff is collapsed.
Click to expand it.
src/LegacySTS/LegacySTS.csproj
+
1
−
0
View file @
277d4b28
...
...
@@ -37,6 +37,7 @@
<Reference
Include=
"System.Core"
/>
<Reference
Include=
"System.IdentityModel"
/>
<Reference
Include=
"System.IdentityModel.Services"
/>
<Reference
Include=
"System.Web"
/>
<Reference
Include=
"System.Xml.Linq"
/>
<Reference
Include=
"System.Data.DataSetExtensions"
/>
<Reference
Include=
"Microsoft.CSharp"
/>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment