Code Monkey home page Code Monkey logo

teams-token's Introduction

teams-token

A super simple Electron app that will save your Microsoft Teams tokens in ~/.config/fossteams/.

Instructions

yarn install
yarn start

Commands

Get your token

yarn start

Switch users

Warning: this operation doesn't delete / invalidate your token, but simply clears the cookies of the Electron browser.

yarn start logout

Get login URL

yarn start get-url

Note

Log-in with your Microsoft Teams account (your corprorate / school account) and let this app do the rest. If you don't trust putting your credentials in a random GitHub app, audit the code for yourself: we're basically using Electron to intercept Oauth redirections and storing the tokens on your computer.

The Microsoft Teams authentication flow is described here. We're getting the token that is passed to https://teams.microsoft.com/go.

teams-token's People

Contributors

denysvitali avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

teams-token's Issues

Doesn't seem to work on WSL2 (w/ WSLg)

Ubuntu 20.04 (I tried with ArchWSL as well to no avail)
node: 16.14.0
wsl --version

PS C:\Users\goberlan> wsl --version
WSL version: 0.61.8.0
Kernel version: 5.10.102.1
WSLg version: 1.0.39
MSRDC version: 1.2.3213
Direct3D version: 1.601.0
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.22000.795

Once I type in my work email I get this:
image
then screen goes white with nothing:
image

This is my yarn-start

user@host:~/teams-token$ yarn start
yarn run v1.22.17
$ yarn run build && electron ./dist/main.js
$ tsc
Authorizing teams with tenantId=common

No other debugging info. Is there any other info I can find?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.