Skip to content

Conversation

@peombwa
Copy link
Member

@peombwa peombwa commented Apr 8, 2020

This PR adds a GraphSession class which safely provides a single session instance of itself across multiple Microsoft Graph modules. This session object will be use to hold the AuthContext, thus making it accessible to both Powershell scripts/functions and inline calls. This closes #124 and #113.

The PR also fixes #154, by changing how the JWT token is decoded.

@ddyett
Copy link
Contributor

ddyett commented Apr 8, 2020

        SessionState.PSVariable.Remove(Constants.GraphAuthConfigId);

should this not clear the graphsession state?


Refers to: src/Authentication/Authentication/Cmdlets/DisconnectGraph.cs:34 in b0c31bc. [](commit_id = b0c31bc, deletion_comment = False)

ddyett
ddyett previously requested changes Apr 8, 2020
Copy link
Contributor

@ddyett ddyett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🕐

@peombwa peombwa requested a review from ddyett April 8, 2020 21:22
@peombwa peombwa dismissed ddyett’s stale review April 14, 2020 18:17

Requested changes have been made.

@peombwa peombwa merged commit d6bce44 into dev Apr 15, 2020
@peombwa peombwa deleted the po/ExposeAuthConfigToFunctionScope branch April 16, 2020 00:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

4 participants