19 Commits

Author SHA1 Message Date
adrienperonnet
d89e7abfb4 fix case 2019-04-26 23:09:33 +12:00
adrienperonnet
00ec3b1ad5 Fix error in logic handling 2019-04-26 23:03:46 +12:00
adrienperonnet
a801ac49c7 Add TODO to drop prividges to avoid escalation 2019-04-26 23:01:21 +12:00
adrienperonnet
45d95c2619 Pass by value when possible & refresh can be private
ProviderConfig not modified and not large so can be on stack
2019-04-26 22:33:15 +12:00
adrienperonnet
143f5deb99 Empty slice declaration via literal 2019-04-26 22:23:02 +12:00
Jeremy Stott
f39e475590
Add MIT license 2019-04-25 20:56:55 +12:00
Jeremy Stott
33405edd87
Update README.md 2019-04-24 19:17:08 +12:00
Jeremy Stott
f8a7c0986f Added TOML cofiguration file support
* configuration file located at ~/.aws-oidc/config
 * sets default parameters, but can still be overridden on the cli
 * named AuthProviders are accessible via the auth [name] command
Renamed exec command to auth. Upgraded auth command to take defaults from the config file.
Added new command exec, that puts the temporary credentials as environment variables in the specified command
Automatically append URL to end of auth command if not specified
2019-04-24 15:34:01 +12:00
Jeremy Stott
c548dcfd72 Fixed refresh token and storing in keychain.
Beginning to list roles given a clientid.
2019-04-20 23:12:20 +12:00
adrienperonnet
3c2e58c93e Store the whole oauth2 token content in keychain 2019-04-18 15:36:38 +12:00
adrienperonnet
b11fe5c66f Add keychain support for jwt caching 2019-04-18 14:46:43 +12:00
Jeremy Stott
6622205179 Switch back to using AssumeRoleWithWebIdentity 2019-04-18 13:49:16 +12:00
adrienperonnet
1344edfad5 add test account config 2019-04-17 15:26:18 +12:00
Jeremy Stott
a9043f91bc Switch to localhost for testing 2019-04-17 09:53:59 +12:00
Jeremy Stott
3b0dd3b705 Added aws cognito example 2019-04-16 22:20:15 +12:00
Jeremy Stott
33731ab51e Updated to use AWS cognito, including retrieivng credentials with get-credentials-for-identity. 2019-04-16 22:15:37 +12:00
Jeremy Stott
b4ce982c35 First cut of invoking lambda to assume role 2019-04-16 09:21:39 +12:00
Jeremy Stott
0235ceaa79 Add groups claim 2019-04-15 23:36:11 +12:00
Jeremy Stott
653521ed9f aws-oidc working with google and onelogin openid connect. 2019-04-11 00:08:13 +12:00