Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

Library for user login (client side) using AWS ADFS (Active Directory Federation Service)

License

Notifications You must be signed in to change notification settings

ExpediaGroup/aws-adfs-login

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deprecation Notice

We no longer support this project and will be archiving this repository to reflect the same. In case needed, the binary can be built using the commands in Makefile

AWS ADFS login

Library for user login (client side) using AWS ADFS (Active Directory Federation Service).

Example

Errors are ignored to make example shorter and more readable

// Load aws roles
roles, _ := LoadAWSRoles(adfsHost, user, password)

// List all accounts
accounts := roles.Accounts()

// Filter roles by account
accountRoles := roles.RolesByAccountId("123456789")

// Get specific role and log in
admin, _ := roles.RoleByRoleArn("arn:aws:iam::123456789:role/Admin")
creds, _ := admin.Login()

MFA Duo

devices, _ := MFA(adfsHost, user, password)

// factor can be 'Phone Call', 'Duo Push', or 'Passcode'
// passcode is required only with 'Passcode' factor
roles, _ := devices["phone1"].Factors["Duo Push"].LoadAWSRoles("")

Legal

This project is available under the Apache 2.0 License.

Copyright 2018 Expedia Inc.

About

Library for user login (client side) using AWS ADFS (Active Directory Federation Service)

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •