KevinMarquette / jira

PowerShell module for Jira
MIT License
15 stars 2 forks source link

Login don't work in powershell version 6.1.3 #1

Closed sdaaish closed 5 years ago

sdaaish commented 5 years ago

I get this when I try to login:

 Open-JiraSession -Credential $credential -Uri $uri -Save
New-StoredCredential : Argument 'New-StoredCredential' is not recognized as a cmdlet: Could not load type 'System.Web.Security.Membership' from assembly 'System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
At C:\Users\sdaa\Documents\PowerShell\Modules\jira\0.2.2\jira.psm1:88 char:21
+             $null = New-StoredCredential @storedCredential -Comment " ...
+                     ~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : ObjectNotFound: (New-StoredCredential:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CmdletNotFoundException

This the current version:

 $PSVersionTable

Name                           Value
----                           -----
PSVersion                      6.1.3
PSEdition                      Core
GitCommitId                    6.1.3
OS                             Microsoft Windows 10.0.17134
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

I guess I need to install something to get this to work. But what exactly?

Get-Module -Name jira

ModuleType Version    Name                                ExportedCommands
---------- -------    ----                                ----------------
Script     0.2.2      jira                                {Add-Comment, Get-Issue, Invoke-IssueTransition, New-Issue...}
KevinMarquette commented 5 years ago

Does it work without the -Save?

I am depending on 2 modules that should have auto installed if you installed from the PSGallery. CredentialManager and PSFramework. I don't know if I will keep the option of saving credentials because I don't have a solution for Linux. The save is using the credential store to keep your credential secure.

sdaaish commented 5 years ago

It works without -Save. Thanks.

KevinMarquette commented 5 years ago

Thank you. Please feel free to give me feedback any time.

KevinMarquette commented 5 years ago

Created issue #11 to track the work around this