-
-
Notifications
You must be signed in to change notification settings - Fork 247
Document hashing of credentials #1416
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,4 @@ | ||||||||||||
| :::{important} | ||||||||||||
| Most transports hash the credentials, so both *username* (e-mail) and *password* are case-sensitive. | ||||||||||||
| If you are unable to authenticate with the device, verify they match to your account. | ||||||||||||
|
Comment on lines
+2
to
+3
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Users probably don't need to know about hashing or transports, just that credentials are usually case sensitive. Probably makes sense to have all the relevant credentials information in the one snippet. |
||||||||||||
| ::: | ||||||||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -24,7 +24,7 @@ | |||||
| >>> [dev.model for dev in found_devices.values()] | ||||||
| ['KP303', 'HS110', 'L530E', 'KL430', 'HS220'] | ||||||
|
|
||||||
| You can pass username and password for devices requiring authentication | ||||||
| You can pass username and password for devices requiring authentication: | ||||||
|
|
||||||
| >>> devices = await Discover.discover( | ||||||
| >>> username="user@example.com", | ||||||
|
|
@@ -33,13 +33,16 @@ | |||||
| >>> print(len(devices)) | ||||||
| 5 | ||||||
|
|
||||||
| You can also pass a :class:`kasa.Credentials` | ||||||
| You can also pass a :class:`kasa.Credentials`: | ||||||
|
|
||||||
| >>> creds = Credentials("user@example.com", "great_password") | ||||||
| >>> devices = await Discover.discover(credentials=creds) | ||||||
| >>> print(len(devices)) | ||||||
| 5 | ||||||
|
|
||||||
| .. include:: ../creds_hashing.md | ||||||
| :parser: myst_parser.sphinx_ | ||||||
|
|
||||||
|
Comment on lines
+43
to
+45
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
This is repeated at the top of the page. We should either remove it from |
||||||
| Discovery can also be targeted to a specific broadcast address instead of | ||||||
| the default 255.255.255.255: | ||||||
|
|
||||||
|
|
||||||
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.
I think this looked better as a self contained note which separated it from the rest of the details on each page. Making the
asyncio.runseems to end the note and breaks up the whole thing.Before:
After:
Perhaps the
noteshould self-contain all the details about the async, and then a subsequentimportantsection contains everything about the credentials.