generated from GenomicDataInfrastructure/oss-project-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from GenomicDataInfrastructure/7-gdi-dataset-di…
…scovery-service-spike-how-are-ls-aai-access-token-passport-and-visas-retrieved-via-keycloak 7 gdi dataset discovery service spike how are ls aai access token passport and visas retrieved via keycloak
- Loading branch information
Showing
7 changed files
with
133 additions
and
5 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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# SPDX-FileCopyrightText: 2024 PNED G.I.E. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
KEYCLOAK_HOST=https://keycloak-test.healthdata.nl | ||
KEYCLOAK_REALM=ckan | ||
KEYCLOAK_PROVIDER_ALIAS=LSAAI | ||
ACCESS_TOKEN=dummy |
This file was deleted.
Oops, something went wrong.
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,6 @@ | ||
# SPDX-FileCopyrightText: 2024 PNED G.I.E. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
GET {{$dotenv KEYCLOAK_HOST}}/realms/{{$dotenv KEYCLOAK_REALM}}/broker/{{$dotenv KEYCLOAK_PROVIDER_ALIAS}}/token | ||
Authorization: Bearer {{$dotenv ACCESS_TOKEN}} |
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,82 @@ | ||
# SPDX-FileCopyrightText: 2024 PNED G.I.E. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
openapi: 3.0.3 | ||
info: | ||
title: Keycloak API | ||
version: 1.0.0 | ||
description: This API allows to query the Keycloak identity provider | ||
servers: | ||
- url: / | ||
paths: | ||
/broker/{providerAlias}/token: | ||
get: | ||
summary: Retrieves tokens from the identity provider | ||
operationId: retrive_idp_tokens | ||
tags: | ||
- "keycloak-query" | ||
parameters: | ||
- name: providerAlias | ||
in: path | ||
description: The alias of the identity provider | ||
required: true | ||
schema: | ||
type: string | ||
- name: Autorization | ||
in: header | ||
description: The authorization header | ||
required: true | ||
schema: | ||
type: string | ||
responses: | ||
"200": | ||
description: A list of packages matching the search criteria | ||
content: | ||
application/json: | ||
schema: | ||
$ref: "#/components/schemas/KeycloakTokenResponse" | ||
"401": | ||
description: "Unauthorized" | ||
security: | ||
- keycloak_auth: | ||
- read:token | ||
components: | ||
securitySchemes: | ||
keycloak_auth: | ||
type: oauth2 | ||
description: This API uses OAuth 2 with the implicit grant flow. | ||
flows: | ||
authorizationCode: | ||
tokenUrl: https://api.example.com/oauth2/token | ||
authorizationUrl: https://api.example.com/oauth2/authorize | ||
scopes: | ||
read:token: read tokens | ||
schemas: | ||
KeycloakTokenResponse: | ||
type: object | ||
properties: | ||
access_token: | ||
type: string | ||
title: The access token | ||
expires_in: | ||
type: integer | ||
title: The expiration time of the token | ||
refresh_expires_in: | ||
type: integer | ||
title: The expiration time of the refresh token | ||
token_type: | ||
type: string | ||
title: The type of the token | ||
id_token: | ||
type: string | ||
title: The ID token | ||
not-before-policy: | ||
type: integer | ||
title: The not-before policy | ||
scope: | ||
type: string | ||
title: The scope of the token | ||
accessTokenExpiration: | ||
type: integer | ||
title: The expiration time of the access token |
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