emacs-slack
emacs-slack copied to clipboard
Error on slack-start: Failed to request slack-authorize: enterprise_is_restricted
Describe the bug When I run slack-start, I get "Failed to request slack-authorize: enterprise_is_restricted"
To Reproduce Steps to reproduce the behavior:
- Follow the README.md at https://github.com/yuya373/emacs-slack
- I'm using doom emacs, set
~/.doom.d/config.el
to
(setq slack-buffer-emojify t) ;; if you want to enable emoji, default nil
(setq slack-prefer-current-team t)
:config
(slack-register-team
:name "Foo"
:default t
:token "xoxs-foo-bar"
:subscribed-channels '(vim)
:full-and-display-names t)
- Reload doom config (i.e., restart emacs):
C-x doom/reload
- M-x slack-start
- See error "Failed to request slack-authorize: enterprise_is_restricted"
Backtrace
[2020-12-03 09:07:52] [trace] REQUEST FINISHED. URL: "https://slack.com/api/rtm.connect", PARAMS: (("mpim_aware" . "1") ("presence_sub" . "true")), DATA: (:ok :json-false :error "enterprise_is_restricted") - Foo
Expected behavior I expected the connection to work.
Environment:
- OS: macOS
- Emacs Version: 27.1
- emacs-slack Version: not sure -- i installed it today
Additional context The Error is documented on Slack's API here: https://api.slack.com/methods/admin.apps.restrict
Same here, I get the same error message.
+1 Does this mean it would be good to have an OAuth option for emacs-slack?
elpa has an oath2 package, so in theory may be possible to follow steps here? (in elisp): https://api.slack.com/legacy/oauth
ah, but then it requires approval from an enterprise admin on a per workspace basis.. makes sense, though probably not doable in most cases :(
i miss having jabber