Skip to content
This repository was archived by the owner on Apr 12, 2023. It is now read-only.
This repository was archived by the owner on Apr 12, 2023. It is now read-only.

SAML #92

Description

@Poil

Hi,

It doesn't seem possible to login when your company have SAML integration
Fetch tokens from official Slack app is not working (No Valid Slack tokens found)
Dunno how I can help, or debug ?

I'm on Linux

Best regards,

Activity

  1. zcbenz commented on May 15, 2020

    @zcbenz
    Member

    Can you do npm i keytar @slack/web-api and then run following code in Node.js:

    require('keytar').getPassword('Slack', 'tokens').then(console.log)

    and do you see a JSON string with token and teamId keys printed?

    (Please do not paste your token here.)

    And if tokens are printed, can you try running following code to see if the token can be used?

    (new (require('@slack/web-api').WebClient)('xoxs-your-token')).auth.test().then(console.log)
  2. Poil commented on May 15, 2020

    @Poil
    Author

    Hi,

    No token/teamId found

    require('keytar').getPassword('Slack', 'tokens').then(console.log)
    Promise {
      <pending>,
      domain:
       Domain {
         domain: null,
         _events:
          [Object: null prototype] {
            removeListener: [Function: updateExceptionCapture],
            newListener: [Function: updateExceptionCapture],
            error: [Function: debugDomainError] },
         _eventsCount: 3,
         _maxListeners: undefined,
         members: [] } }
    > null
    
  3. zcbenz commented on May 15, 2020

    @zcbenz
    Member

    It seems that slack handles SAML login differently than normal login.

  4. Poil commented on May 15, 2020

    @Poil
    Author

    Via a webbrowser, I'm able to get the xoxc-********** header and the cookie that contains d=
    How keytar works ?

  5. zcbenz commented on May 15, 2020

    @zcbenz
    Member

    keytar reads from system keychain, it is possible that Slack generates a new token for SAML every time and does not store the token in system keychain.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions