-
Notifications
You must be signed in to change notification settings - Fork 158
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
feat: add login via Reunite API #1878
base: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: 7fa1c11 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Coverage report
Show new covered files 🐣
Test suite run success853 tests passing in 122 suites. Report generated by 🧪jest coverage report action from 7fa1c11 |
f871e39
to
b322d4b
Compare
Should we update some documentation? |
export function promptClientToken(domain: string) { | ||
return promptUser( | ||
green( | ||
`\n 🔑 Copy your API key from ${blue(`https://app.${domain}/profile`)} and paste it below` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks to me that for now this message is misleading.
We don't apply new isAuthorized()
function anywhere yet, and this will not have any effect on previously protected code.
Please correct me if I am wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We still support the old login which is needed to render Reference Docs with the preview-docs
command. At the same time we need the isAuthorized
method to use it in places that will require auth (probably in the VS Code extension).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, but will preview-docs
work if you run new login ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we can change the message text.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will preview-docs work if you run new login ?
No, I doubt it makes sense since Reference Docs are only related to our previous product. And also, it won't allow to push
to the Redocly registry.
@RomanHotsiy could you check if the message is OK or could be improved?
6001ddd
to
4f55a28
Compare
3e01b13
to
11cd44a
Compare
54ccc40
to
f71bdc3
Compare
f71bdc3
to
7fa1c11
Compare
What/Why/How?
--next
flagcms/
toreunite/
for clarity--region
option to--residency
as it may take a full domain alongsideus
andeu
(but retained--region
alias for backward compatibility)Reference
Internal request: https://github.com/Redocly/openapi-vs-code/issues/231#issuecomment-2598584274
Testing
Screenshots (optional)
Old login:
New login:
![image](https://private-user-images.githubusercontent.com/11423792/409282192-f87437cb-e9c2-484c-9e9a-4a9501ba4edf.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyNTAyMDksIm5iZiI6MTczOTI0OTkwOSwicGF0aCI6Ii8xMTQyMzc5Mi80MDkyODIxOTItZjg3NDM3Y2ItZTljMi00ODRjLTllOWEtNGE5NTAxYmE0ZWRmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDA0NTgyOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTU2M2Y4MjJkOTYzZDhhYWUxOGFmZjRiZjQwNDE0ZDZkNjhkZDU4NDFjYzI4ZjE3YWFjNmZjMWMyNDU3Y2QyNmEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.Tx9X8YGqzxkTaJ_EJ8LlVPCSFDza9WxneB_3yzivzBw)
Check yourself
Security