mirror of
https://github.com/bitwarden/directory-connector
synced 2025-12-05 23:53:21 +00:00
Use organization api key for auth (#121)
* Use api key for login * Remove user login and organization setting * Override Api authentication to expect organization keys * Linter fixes * Use public API The organization api key is valid only in the public api scope * Use organization api key in CLI utility * Serialize storageService writes * Prefer multiple awaits to .then chains * Initial PR review * Do not treat api key inputs as passwords This conforms with how they are handled in CLI/web * Update jslib * PR feedback
This commit is contained in:
@@ -20,12 +20,30 @@
|
||||
"emailRequired": {
|
||||
"message": "Email address is required."
|
||||
},
|
||||
"clientIdRequired": {
|
||||
"message": "Client Id is required."
|
||||
},
|
||||
"invalidClientId": {
|
||||
"message": "Invalid Client Id provided."
|
||||
},
|
||||
"clientSecretRequired": {
|
||||
"message": "Client Secret is required."
|
||||
},
|
||||
"orgApiKeyRequired": {
|
||||
"message": "Api Key must belong to an Organization"
|
||||
},
|
||||
"failedToSaveCredentials": {
|
||||
"message": "Failed to save credentials"
|
||||
},
|
||||
"invalidEmail": {
|
||||
"message": "Invalid email address."
|
||||
},
|
||||
"masterPassRequired": {
|
||||
"message": "Master password is required."
|
||||
},
|
||||
"missingRequiredInput": {
|
||||
"message": "Missing required input."
|
||||
},
|
||||
"unexpectedError": {
|
||||
"message": "An unexpected error has occurred."
|
||||
},
|
||||
@@ -575,7 +593,7 @@
|
||||
"message": "Welcome to the Bitwarden Directory Connector"
|
||||
},
|
||||
"logInDesc": {
|
||||
"message": "Log in as an organization admin user below."
|
||||
"message": "Log in with an organization API key below."
|
||||
},
|
||||
"dirConfigIncomplete": {
|
||||
"message": "Directory configuration incomplete."
|
||||
|
||||
Reference in New Issue
Block a user