microsoft / SQLServerPSModule

This repo is the home of SQL Server PowerShell Module development.
MIT License
45 stars 1 forks source link

Invoke-Sqlcmd parameter -AccessToken should be a PSObject #32

Open Matteo-T opened 1 year ago

Matteo-T commented 1 year ago

It would be beneficial to allow passing an entire and not just the Token.

Not that the Invoke-Sqlcmd uses the metadata that comes with the whole AccessToken (like ExpireOn, UserID, etc...), but it would save the trouble of having to .Token on it + make it consistent with the other cmdlets that (in v22) are happy to take a full AccessToken.