Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Coscine
backend
apis
Project
Commits
3d454cbd
Commit
3d454cbd
authored
Aug 15, 2019
by
Benedikt Heinrichs
Browse files
Refactoring
parent
999b709b
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
3d454cbd
...
...
@@ -10,6 +10,16 @@ To use Kestrel you need to add the following NuGet packages:
*
```Microsoft.AspNetCore.Mvc```
*
```Microsoft.AspNetCore```
## Consul keys
The following Consul keys are required:
*
"coscine/global/waterbutler_url"
*
"coscine/global/rds_access_key"
*
"coscine/global/rds_secret_key"
*
"coscine/global/gitlabtoken"
*
Look at cs/action Consul keys
## Https usage
Generate a developer certificate:
```dotnet dev-certs https```
...
...
docs/home.md
View file @
3d454cbd
...
...
@@ -10,6 +10,16 @@ To use Kestrel you need to add the following NuGet packages:
*
```Microsoft.AspNetCore.Mvc```
*
```Microsoft.AspNetCore```
## Consul keys
The following Consul keys are required:
*
"coscine/global/waterbutler_url"
*
"coscine/global/rds_access_key"
*
"coscine/global/rds_secret_key"
*
"coscine/global/gitlabtoken"
*
Look at cs/action Consul keys
## Https usage
Generate a developer certificate:
```dotnet dev-certs https```
...
...
src/Project/Controllers/DataSourceController.cs
View file @
3d454cbd
...
...
@@ -59,14 +59,11 @@ namespace Coscine.Api.Project.Controllers
return
NotFound
(
$"Could not find resource with id:
{
resourceId
}
"
);
}
// Temporary
#if (!DEBUG)
var
user
=
_authenticator
.
GetUserFromToken
();
if
(!
_resourceModel
.
OwnsResource
(
user
,
resource
))
{
return
Forbid
(
$"The user does not own the resource
{
resourceId
}
"
);
}
#endif
if
(
resource
.
Type
==
null
)
{
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment