-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
135 additions
and
21 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
title: "cbox" | ||
linkTitle: "cbox" | ||
weight: 10 | ||
description: > | ||
Configuration for the cbox service | ||
--- |
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,7 @@ | ||
--- | ||
title: "user" | ||
linkTitle: "user" | ||
weight: 10 | ||
description: > | ||
Configuration for the user service | ||
--- |
74 changes: 74 additions & 0 deletions
74
docs/content/en/docs/config/packages/cbox/user/rest/_index.md
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,74 @@ | ||
--- | ||
title: "rest" | ||
linkTitle: "rest" | ||
weight: 10 | ||
description: > | ||
Configuration for the rest service | ||
--- | ||
|
||
# _struct: config_ | ||
|
||
{{% dir name="redis_address" type="string" default="localhost:6379" %}} | ||
The address at which the redis server is running [[Ref]](https://github.com/cs3org/reva/tree/master/pkg/cbox/user/rest/rest.go#L69) | ||
{{< highlight toml >}} | ||
[cbox.user.rest] | ||
redis_address = "localhost:6379" | ||
{{< /highlight >}} | ||
{{% /dir %}} | ||
|
||
{{% dir name="user_groups_cache_expiration" type="int" default=5 %}} | ||
The time in minutes for which the groups to which a user belongs would be cached [[Ref]](https://github.com/cs3org/reva/tree/master/pkg/cbox/user/rest/rest.go#L75) | ||
{{< highlight toml >}} | ||
[cbox.user.rest] | ||
user_groups_cache_expiration = 5 | ||
{{< /highlight >}} | ||
{{% /dir %}} | ||
|
||
{{% dir name="id_provider" type="string" default="http://cernbox.cern.ch" %}} | ||
The OIDC Provider [[Ref]](https://github.com/cs3org/reva/tree/master/pkg/cbox/user/rest/rest.go#L77) | ||
{{< highlight toml >}} | ||
[cbox.user.rest] | ||
id_provider = "http://cernbox.cern.ch" | ||
{{< /highlight >}} | ||
{{% /dir %}} | ||
|
||
{{% dir name="api_base_url" type="string" default="https://authorization-service-api-dev.web.cern.ch/api/v1.0" %}} | ||
Base API Endpoint [[Ref]](https://github.com/cs3org/reva/tree/master/pkg/cbox/user/rest/rest.go#L79) | ||
{{< highlight toml >}} | ||
[cbox.user.rest] | ||
api_base_url = "https://authorization-service-api-dev.web.cern.ch/api/v1.0" | ||
{{< /highlight >}} | ||
{{% /dir %}} | ||
|
||
{{% dir name="client_id" type="string" default="-" %}} | ||
Client ID needed to authenticate [[Ref]](https://github.com/cs3org/reva/tree/master/pkg/cbox/user/rest/rest.go#L81) | ||
{{< highlight toml >}} | ||
[cbox.user.rest] | ||
client_id = "-" | ||
{{< /highlight >}} | ||
{{% /dir %}} | ||
|
||
{{% dir name="client_secret" type="string" default="-" %}} | ||
Client Secret [[Ref]](https://github.com/cs3org/reva/tree/master/pkg/cbox/user/rest/rest.go#L83) | ||
{{< highlight toml >}} | ||
[cbox.user.rest] | ||
client_secret = "-" | ||
{{< /highlight >}} | ||
{{% /dir %}} | ||
|
||
{{% dir name="oidc_token_endpoint" type="string" default="https://keycloak-dev.cern.ch/auth/realms/cern/api-access/token" %}} | ||
Endpoint to generate token to access the API [[Ref]](https://github.com/cs3org/reva/tree/master/pkg/cbox/user/rest/rest.go#L86) | ||
{{< highlight toml >}} | ||
[cbox.user.rest] | ||
oidc_token_endpoint = "https://keycloak-dev.cern.ch/auth/realms/cern/api-access/token" | ||
{{< /highlight >}} | ||
{{% /dir %}} | ||
|
||
{{% dir name="target_api" type="string" default="authorization-service-api" %}} | ||
The target application for which token needs to be generated [[Ref]](https://github.com/cs3org/reva/tree/master/pkg/cbox/user/rest/rest.go#L88) | ||
{{< highlight toml >}} | ||
[cbox.user.rest] | ||
target_api = "authorization-service-api" | ||
{{< /highlight >}} | ||
{{% /dir %}} | ||
|
Oops, something went wrong.