You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
adds scoped values credential to support multiple endpoints. (#58)
* adds scoped values credential to support multiple endpoints.
* fix naming
Co-authored-by: Júlio Hoffimann <[email protected]>
* clearer check
Co-authored-by: Júlio Hoffimann <[email protected]>
* rename CDScredentials
Co-authored-by: Júlio Hoffimann <[email protected]>
* WIP: for now adding compatibility for 1.11 only.
* fix: better docs of credentials, moved the check inside the credentials.
and various renames
* better docstring
Co-authored-by: Júlio Hoffimann <[email protected]>
* add logic for ScopedValues compat
* fix wrong string interpolation of `$HOME`
* fix: logic error. auth[] is valid only if both entries are non empty.
* fix: even better logic. clearer.
* add ScopedValues as a direct Dependency
* fix: leftover
* added README entry about multiple token use with examples.
* export with from ScopedValues, so it is available when `using CDSAPI`
* added tests
* better ScopedValue versioning
Co-authored-by: Júlio Hoffimann <[email protected]>
* Documentation fixes
Co-authored-by: Júlio Hoffimann <[email protected]>
* don't export with
Co-authored-by: Júlio Hoffimann <[email protected]>
* added better explaination of the various priorities for default credentials
* split the auth scoped value into key and url.
Properly let the various cred inputs overwrite each other.
* update README with new syntax for scoped values
* clarified the readme and removed references to `credentialsfromfile`
renamed the scoped values to the uppercase variant
* Update README.md
Co-authored-by: Júlio Hoffimann <[email protected]>
* Update README.md
Co-authored-by: Júlio Hoffimann <[email protected]>
* default url as based, fix tests, fix leftover
* typos and whitespace
Co-authored-by: Júlio Hoffimann <[email protected]>
* revert default url in scoped value.
Enforce presence of key and url in file.
* Apply suggestions from code review
Co-authored-by: Júlio Hoffimann <[email protected]>
* Final adjustments
---------
Co-authored-by: Júlio Hoffimann <[email protected]>
@@ -82,6 +94,28 @@ Dict{String,Any} with 6 entries:
82
94
"content_length" => 193660
83
95
"state" => "completed"
84
96
```
97
+
# Multiple credentials
98
+
99
+
In case you want to use multiple credentials for different requests, pass the desired values to the corresponding scoped values `CDSAPI.URL` and `CDSAPI.KEY`:
0 commit comments