| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
- Add a header comment explicitly switching off lexical binding
- Harmonize naming (always start with module and double hyphen)
- Ensure all tests have at least a minimal doc string.
- Move tests from `mastodon-auth-test.el` to `mastodon-auth-tests.el`
|
|
|
|
|
| |
- Remove redundant let binding of vars
- Re-indent various things to better fit reasonably on a screen.
|
|
|
|
|
|
|
|
|
|
|
| |
Basically, in Emacs for each file: select all text and
`indent-region`.
- This also removes one redundant comment, and
- fixes an error with json decoding where the `json-read-from-string`
was actually not within the intended `unless` clause (which explains
the warning about "result of (string-equal "" json-string) will be
ignored" which I never understood.
|
|
|
|
| |
* Use the email address of the current user as default
|
|
|
|
|
|
|
|
|
| |
* Use auth-source-search for fetching and saving password
This gives users the ability to save their password to either the gpg-encrypted ~/.authinfo.gpg or
~/.authinfo so that they don't have to provide username/password each time
* Add a new custom var to decide whether to use the auth-source package or not.
|
|
|
|
|
|
|
|
|
|
|
| |
While testing out issue
149 (https://github.com/jdenen/mastodon.el/issues/149) I had problems
due to stale client information being cached.
With this change we store various pieces of information (the client
information in the plstore and the auth tokens) in alists keyed by the
instance url (and the plstore key contains the instance url as well to
allow us to store data per instance).
|
| |
|
|
|
|
|
|
| |
- Remove client functions
- Use mastodon-http--post
- No more callback spaghetti
|
| |
|
|
|
|
| |
Replace direct references to `mastodon--client-app-plist'
|
| |
|
|
|
|
| |
Abstract Email and Password prompts to `mastodon-auth--user-and-passwd' function
|
|
|
|
|
|
| |
Add `mastodon-auth--get-token-success'
Add test for `mastodon-auth--get-token-success'
Add test for `mastodon--get-access-token-triage'
|
| |
|
|
|
|
|
| |
Add `mastodon-auth--token-file' function
Add test for `mastodon-auth--token-file'
|
|
|
|
| |
Refactor tests to check plist return value
|
|
|
|
| |
Add mastodon-auth--register-client-app-triage test
|
|
|