Skip to content

v1.0.25.42

Compare
Choose a tag to compare
@markekraus markekraus released this 22 Apr 18:22
· 19 commits to master since this release

Version 1.0.25.42 (2017-04-22)

Functions

Get-GraphOauthAccessToken

  • Revised Invoke-WebRequest error handling. Now uses MSGraphAPI.Oauth.Exception to handle formating
  • Simplified error handling for JSON parsing
  • Revamped credential object creation for readbility.
  • Clean up debug code

Types

MSGraphAPI.Oauth.Exception

  • Added the MSGraphAPI.Oauth.Exception type to handle OAuth related Invoke-Webrequest Exceptions
  • New ScriptMethod JSONResponse converts the response stream from the Invoke-WebRequest exception from JSON to PSObject

Test

Get-GraphOauthAccessToken.Unit.Tests.ps1

  • Added missing code coverage for Invoke-webRequest error handling
  • Add missing code coverage for JSON parsing error handling
  • Now at 100% code coverage for Get-GraphOauthAccessToken!

Built Toolds

psake.ps1

  • Adjust recommit logic in PostDeploy task
  • Added !forcrecommit to override default ignores if needed
  • Added devlop to ignored branch for recommits as constant work in the develop branch leads to staging issues.
  • Added comment based help file header.

Documentation

Get-GraphOauthAccessToken

  • Modifyed Description to something useful
  • adjusted formating on Resource parameter
  • Added Get-GraphOauthAuthorizationCode to Notes
  • Added Get-GraphOauthAuthorizationCode to Links