Giter Club home page Giter Club logo

oktaawstoken's People

Contributors

lawrencehwang avatar pollosp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

oktaawstoken's Issues

misspelling in config file

the "account" key in the config file is written as "acoount" so the Get-OktaAWSToken function does not retrieve/output the right account information.

MFA is not passing thorough

Invoke-WebRequest : Invalid URI: The hostname could not be parsed.
At C:\Program Files\WindowsPowerShell\Modules\OktaAWSToken\0.0.39\OktaAWSToken.psm1:103 char:19

  • ... $SamlAuth = Invoke-WebRequest -uri $AuthURI -SessionVariable okta -Us ...
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [Invoke-WebRequest], UriFormatException
    • FullyQualifiedErrorId : System.UriFormatException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand

You cannot call a method on a null-valued expression.
At C:\Program Files\WindowsPowerShell\Modules\OktaAWSToken\0.0.39\OktaAWSToken.psm1:106 char:7

  •   $SamlResponse = $SamlResponse.Replace("+", "+").Replace("& ...
    
  •   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:) [], RuntimeException
    • FullyQualifiedErrorId : InvokeMethodOnNull

Unable to get token back.

After checking the config I saw account was spelled acoount. Fixed that, now getting the following error. I would really like to see this work. :)

`GetSAML: Error during authenticating with given username/ password.
At C:\Users%username%\Documents\WindowsPowerShell\Modules\OktaAWSToken\OktaAWSToken.psm
1:168 char:19

  • $SamlResponse = GetSAML
  •               ~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
    • FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,GetSAM
      `

Update README.md file

The example of the manual configuration is using "idpurl", but in the OktaAWSToken.config file the script is actually looking for "idp_url"...which causes "host name could not be parsed" errors

$prop = @{
organizationurl = $account.organizationurl
appurl = $account.account[($selection - 1)].idp_url

So its just a typo in the ReadMe that needs to be changed.

Unable to get the role back

I am getting the following error
FA_REQUIRED
[1] OKTA - push
[2] OKTA - token:software:totp
MFA required. Select a MFA method (sms not supported currently): 1
You cannot call a method on a null-valued expression.
At C:\Users\sarun\Documents\WindowsPowerShell\Modules\OktaAWSToken\0.0.39\OktaAWSToken.psm1:104 char:7

  •   $SamlResponse = $SamlResponse.Replace("+", "+").Replace("& ...
    
  •   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:) [], RuntimeException
    • FullyQualifiedErrorId : InvokeMethodOnNull

Configuration file doesn't prompt with menu

I built my own config file and the module comes up and tries to work, but with the generated version the "organizationurl" is at the bottom and the menu comes up but doesn't generate a choice.

I get the "Select an account:" option.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.