Skip to content

Commit

Permalink
Merge pull request EGA-archive#122 from EGA-archive/backend
Browse files Browse the repository at this point in the history
folders in db created
  • Loading branch information
costero-e authored May 16, 2023
2 parents f73bdd2 + 328af9b commit 65ea0c4
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ To give the right permissions for AAI you will need to set the permissions of th
Please, bear in mind that the name of the user has to be the same that you used when creating the user in LS or in IDP, whatever the AAI method you are working with.
Furthermore, if you are using LS-AAI method, you will need to get the authorization code following LS-AAI authorization flow method with a browser (for example http://localhost:8080/oidc/auth/authorize?response_type=code&client_id=app-123) and then pass this code via a POST request to get the authorization token. For example:
```bash
curl --location --request POST 'http://localhost:8080/oidc/token' \--header 'Content-Type: application/x-www-form-urlencoded' \--data-urlencode 'grant_type=authorization_code' \--data-urlencode 'pasteyourcodefrombrowserhere' \--data-urlencode 'client_id=app-123' \--data-urlencode 'client_secret=secret_value' \--data-urlencode 'scope=openid' \
curl --location --request POST 'http://localhost:8080/oidc/token' \--header 'Content-Type: application/x-www-form-urlencoded' \--data-urlencode 'grant_type=authorization_code' \--data-urlencode 'code=pasteyourcodefrombrowserhere' \--data-urlencode 'client_id=app-123' \--data-urlencode 'client_secret=secret_value' \--data-urlencode 'scope=openid' \
--data-urlencode 'requested_token_type=urn:ietf:params:oauth:token-type:refresh_token'
```
When you have your authorization token, pass it in a header in your POST request to get your answers.
Expand Down
Empty file added beacon/db/descendants/test.txt
Empty file.
Empty file added beacon/db/ontologies/test.txt
Empty file.
Empty file added beacon/db/similarities/test.txt
Empty file.

0 comments on commit 65ea0c4

Please sign in to comment.