Giter VIP home page Giter VIP logo

Comments (6)

tonybaloney avatar tonybaloney commented on September 24, 2024

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.

tonybaloney avatar tonybaloney commented on September 24, 2024

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.

minsis avatar minsis commented on September 24, 2024

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.

amanda11 avatar amanda11 commented on September 24, 2024

Agreed that Graph support would fit nicely into a new pack.

from stackstorm-msexchange.

minsis avatar minsis commented on September 24, 2024

@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.

amanda11 avatar amanda11 commented on September 24, 2024

Its still a useful addition to this pack, so I think we can keep it open.

from stackstorm-msexchange.

Related Issues (8)

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.