Skip to content
This repository has been archived by the owner on Nov 5, 2022. It is now read-only.

44 provide access to multiple named databases #56

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

faysal-ishtiaq
Copy link
Collaborator

@faysal-ishtiaq faysal-ishtiaq commented Sep 24, 2022

Added a new file in the repository root called climsoft-multi-deployment.yml where you can add new configuration for deployment. Right now it looks like:

test:
  NAME: Climsoft Test
  DATABASE_URI: "mysql+mysqldb://root:password@mysql:3306/mariadb_climsoft_test_db_v4"

And when authenticating, you have to pass a scope like deployment_key:test

Also on swagger authentication form, it looks like:

image

The scopes are autogenerated from deployment keys in climsoft-multi-deployment.yml

If you select multiple deployment key in scopes, only the first one will be taken into consideration.

@cla-bot cla-bot bot added the cla-signed label Sep 24, 2022
@faysal-ishtiaq
Copy link
Collaborator Author

Depends on climsoft/climsoft-api#26

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant