🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

aws-simple-sso

Package Overview
Dependencies
Maintainers
0
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aws-simple-sso

Simple AWS SSO Sign-in

1.5.0
latest
Source
npm
Version published
Weekly downloads
1
Maintainers
0
Weekly downloads
 
Created
Source

aws-simple-sso

Simple AWS SSO Sign-in

Install

npm install aws-simple-sso

API Reference

Simplified AWS SSO authentication

Example

import { authenticate } from 'aws-simple-sso'
const credentials = await authenticate()

aws-simple-sso.authenticate ⇒ Promise.<SSOCredentials>

Simplified Authentication function

Kind: static constant of aws-simple-sso
Returns: Promise.<SSOCredentials> - SSO Role Credentials

ParamTypeDescription
[params]AuthenticateParamsOptional function parameters

aws-simple-sso.getOrgUrl ⇒ Promise.<SSOOrgUrl>

Get an Organization Start URL

Kind: static constant of aws-simple-sso
Returns: Promise.<SSOOrgUrl> - Organization Start URL

ParamTypeDescription
matchOrgMatchFunctionPartial string to match with the Org name

aws-simple-sso.getToken ⇒ Promise.<SSOToken>

Get an SSO OIDC Token

Kind: static constant of aws-simple-sso
Returns: Promise.<SSOToken> - SSO OIDC Token

ParamTypeDescription
orgUrlSSOOrgUrlSSO Start URL

aws-simple-sso.getAccount ⇒ Promise.<SSOAccount>

Get a list of SSO AWS Accounts

Kind: static constant of aws-simple-sso
Returns: Promise.<SSOAccount> - SSO Role

ParamTypeDescription
tokenSSOTokenSSO OIDC Token
matchAccMatchFunctionPartial string to match with the Account name

aws-simple-sso.getRole ⇒ Promise.<SSORole>

Get an SSO Role

Kind: static constant of aws-simple-sso
Returns: Promise.<SSORole> - SSO Role

ParamTypeDescription
tokenSSOTokenSSO OIDC Token
accountIdstringAWS Account Id
matchRoleMatchFunctionPartial string to match with the Role name

aws-simple-sso.getRoleCredentials ⇒ Promise.<SSOCredentials>

Get SSO Role Credentials

Kind: static constant of aws-simple-sso
Returns: Promise.<SSOCredentials> - SSO Role Credentials

ParamTypeDescription
tokenSSOTokenSSO OIDC Token
ssoRoleSSORoleSSO Role structure

aws-simple-sso~delay(ms) ⇒ Promise

Delay function

Kind: inner method of aws-simple-sso
Returns: Promise - Promise that resolves after the delay

ParamTypeDescription
msnumberDelay in milliseconds

aws-simple-sso~AuthenticateParams : object

Kind: inner typedef of aws-simple-sso
Properties

NameTypeDescription
[matchOrg]MatchFunctionOrganization match function
[matchAcc]MatchFunctionAccount match function
[matchRole]MatchFunctionRole match function

aws-simple-sso~SSOOrgUrl : object

Kind: inner typedef of aws-simple-sso
Properties

NameTypeDescription
namestringOrganization name
startUrlstringSSO Start URL

aws-simple-sso~SSOAccount : object

Kind: inner typedef of aws-simple-sso
Properties

NameTypeDescription
accountIdstringAWS Account Id
namestringAccount name

aws-simple-sso~SSOToken : object

Kind: inner typedef of aws-simple-sso
Properties

NameTypeDescription
[accessToken]stringAWS Access Token
[tokenType]stringToken type
[expiresIn]numberToken expiration in seconds
[expireTime]DateToken expiration time
[refreshToken]stringRefresh token
[idToken]stringID token

aws-simple-sso~SSORole : object

Kind: inner typedef of aws-simple-sso
Properties

NameTypeDescription
accountIdstringAWS Account Id
namestringSSO Role name

aws-simple-sso~SSOCredentials : object

Kind: inner typedef of aws-simple-sso
Properties

NameTypeDescription
accessKeyIdstringAWS Access Key Id
secretAccessKeystringAWS Secret Access Key
sessionTokenstringAWS Session Token
expireTimeDateToken expiration time

aws-simple-sso~MatchFunction ⇒ boolean

Kind: inner typedef of aws-simple-sso
Returns: boolean - True if the value matches

ParamTypeDescription
valueobjectValue to match

License

MIT ©

Keywords

AWS

FAQs

Package last updated on 11 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts