lawrencehwang / oktaawstoken Goto Github PK
View Code? Open in Web Editor NEWA PowerShell module to retrieve temporary AWS credential with Okta federated identity
License: MIT License
A PowerShell module to retrieve temporary AWS credential with Okta federated identity
License: MIT License
the "account" key in the config file is written as "acoount" so the Get-OktaAWSToken function does not retrieve/output the right account information.
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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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("& ...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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
~~~~~~~
This module doesn't work if per-app MFA is enabled. Please see my example for an implementation
https://gist.githubusercontent.com/JustinGrote/7f7b2d5d7e2ec8f45481dba23a043047/raw/137ab1a64557f1c0f196854e4aed616634ed1eb1/Use-STSRoleWithOkta.ps1
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.
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("& ...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.