Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for API keys #2245

Merged
merged 2 commits into from
Jan 23, 2022
Merged

Add support for API keys #2245

merged 2 commits into from
Jan 23, 2022

Conversation

jjlin
Copy link
Contributor

@jjlin jjlin commented Jan 19, 2022

This is mainly useful for CLI-based login automation.

Upstream PR: bitwarden/server#981
Upstream docs: https://bitwarden.com/help/personal-api-key/

@jjlin jjlin marked this pull request as ready for review January 21, 2022 06:02
src/api/identity.rs Outdated Show resolved Hide resolved
@jjlin jjlin force-pushed the api-key branch 2 times, most recently from f99b0af to 4668485 Compare January 22, 2022 06:41
jjlin added 2 commits January 21, 2022 23:10
This is mainly useful for CLI-based login automation.
API key logins use a scope of `api`, not `api offline_access`. Since
`offline_access` is not requested, no `refresh_token` is returned either.
@dani-garcia dani-garcia merged commit bf63303 into dani-garcia:main Jan 23, 2022
jjlin added a commit to jjlin/bw_web_builds that referenced this pull request Jan 23, 2022
@jjlin jjlin deleted the api-key branch January 24, 2022 07:43
@BlackDex BlackDex mentioned this pull request Feb 28, 2022
61 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants