Comments (6)
ExchangeLib supports this, https://ecederstrand.github.io/exchangelib/#setup-and-connecting
I've also noticed the version of exchange lib this pack uses is wildly out of date. So I'll patch that bit first.
The challenge with OAuth based workflows is how to signin without a browser/redirect flow. you need some sort of service token,
if you can share a basic flow we could probably work out a solution
from stackstorm-msexchange.
These are the inputs needed:
class OAuth2Credentials(BaseCredentials):
"""Login info for OAuth 2.0 client credentials authentication, as well as a base for other OAuth 2.0 grant types.
This is primarily useful for in-house applications accessing data from a single Microsoft account. For applications
that will access multiple tenants' data, the client credentials flow does not give the application enough
information to restrict end users' access to the appropriate account. Use OAuth2AuthorizationCodeCredentials and
the associated auth code grant type for multi-tenant applications.
"""
def __init__(self, client_id, client_secret, tenant_id=None, identity=None):
"""
:param client_id: ID of an authorized OAuth application, required for automatic token fetching and refreshing
:param client_secret: Secret associated with the OAuth application
:param tenant_id: Microsoft tenant ID of the account to access
:param identity: An Identity object representing the account that these credentials are connected to.
"""
from stackstorm-msexchange.
Alright so I've finally been able to circle back around to this. After understanding my needs this pack isn't setup to use Graph which is what our email admins have setup for me. So when I spoke of OAuth I was looking at OAuth for the Graph and not EWS in order to access our O365 mailbox.
With that said, since this pack uses the EWS libraries exclusively I'm thinking maybe its best to look towards building a new pack to deal with Graph. Graph is overly complex to navigate and deal with. The library I've mentioned in my OP has the ability to use Graph and works well.
from stackstorm-msexchange.
Agreed that Graph support would fit nicely into a new pack.
from stackstorm-msexchange.
@amanda11 Should I close this issue as my needs have changed? It could still be a good feature to add OAuth to this library, but I don't have any way of testing these kind of changes.
from stackstorm-msexchange.
Its still a useful addition to this pack, so I think we can keep it open.
from stackstorm-msexchange.
Related Issues (8)
- 'Configuration' object has no attribute '__getitem__' HOT 16
- The get_folder_by_name() method is deprecated HOT 6
- sensor 'Found 0 items in Messages' HOT 5
- Sensor not detecting new items in Inbox HOT 24
- Allowing multiple accounts
- Move or add sensor_folder to sensor parameters
- exchangelib needs to be updated HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stackstorm-msexchange.