Skip to content

Expose AuthContext To Function Scope - #164

Merged
Peter Ombwa (peombwa) merged 7 commits into
devfrom
po/ExposeAuthConfigToFunctionScope
Apr 15, 2020
Merged

Peter Ombwa (peombwa) merged 7 commits into
devfrom
po/ExposeAuthConfigToFunctionScope

Conversation

@peombwa

Copy link
Copy Markdown
Member

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
Copy Markdown
Contributor
        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 DeVere Dyett (ddyett) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🕐

@peombwa
Peter Ombwa (peombwa) dismissed DeVere Dyett (ddyett)’s stale review April 14, 2020 18:17

Requested changes have been made.

@peombwa
Peter Ombwa (peombwa) merged commit d6bce44 into dev Apr 15, 2020
@peombwa
Peter Ombwa (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

3 participants