Skip to content

Commit

Permalink
feat(auth): includes alt. representations of port in lookup
Browse files Browse the repository at this point in the history
Make the auth-source-search lookup a little more robust but including
other valid representations for valid values for port in the
`auth-source-search` lookup.

This bit me because I was using `:port https` in my authinfo
file based on `auth` Emacs documentation.

ref: https://www.gnu.org/software/emacs/manual/html_mono/auth.html#Help-for-users
  • Loading branch information
nickgarber committed Jul 24, 2021
1 parent 2ea0094 commit 7524f98
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion jiralib.el
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,9 @@ After a successful login, store the authentication token in
(url-host (url-generic-parse-url jiralib-url))
jiralib-host)
;; secrets.el wouldn’t accept a number.
:port (number-to-string (url-port (url-generic-parse-url jiralib-url)))
:port (list (number-to-string (url-port (url-generic-parse-url jiralib-url)))
(url-port (url-generic-parse-url jiralib-url))
(url-type (url-generic-parse-url jiralib-url)))
:require '(:user :secret)
:create t)))
user secret)
Expand Down

0 comments on commit 7524f98

Please sign in to comment.