Граф коммитов

53 Коммитов

Автор SHA1 Сообщение Дата
Ramya Rao d896076c7c
Fix docs for return types in exported APIs (#133) 2021-08-16 10:33:09 -07:00
Ramya Rao 190348fddd
Stengthen types around AuthResponse (#121)
* Stengthen types around AuthResponse

* Add changelog entry
2021-07-20 18:07:42 -07:00
Ramya Rao 684d9825af
Arguments passed to execFile should be array of strings (#123) 2021-03-31 10:50:45 -07:00
Ramya Rao 957a3ee390
Add prettier and format code (#120) 2021-03-26 12:21:05 -07:00
Arthur Schreiber 4c177518c3
fix: correctly pass through the `tokenCache` option (#107) 2021-03-26 11:52:49 -07:00
huntr.dev | the place to protect open source 1b8dcfb6d7
[CVE-2021-28458] Security Fix for Command Injection - huntr.dev (#117) 2021-03-23 13:34:47 -07:00
Ramya Rao a7b3f559e9
Simplify API reference docs by following TSDoc (#113) 2021-02-23 14:21:55 -08:00
David Wilson d595b87af9 Make buildTenantsList more resilient to error responses 2020-09-25 14:29:59 -07:00
Daniel Rodríguez 029767b92f
Allow changing domain on a credential and listing of all tenants (#91) 2020-06-16 09:55:58 -07:00
Daniel Rodríguez 0fe59073c6
[Issue 88] Better documentation for the MSI credentials, and support for the IDENTITY_* environment variables (#97) 2020-06-12 14:25:45 -07:00
Emily Curry b6e0057045
Add clientid param to MSIAppServiceOptions (#85)
* Add clientid param to MSIAppServiceOptions

* Chore: Use typescript@~3.5.3
2020-06-08 14:17:26 -07:00
Xinxing Liu 43c52f9420 Fix callback not calling issue in applicationTokenCredentialsBase.ts 2019-08-22 12:06:13 -07:00
Wesley Wigham 299621cdaf Fix bug preventing any tenants from being discovered (#76)
* Fix bug preventing any tenants from being discovered

Which in turns prevents any subscriptions in turn from being discovered which in turn makes auth very not useful.

* Update Changelog.md

* Bump package.json version to 3.0.2
2019-08-16 12:37:27 -07:00
Arthur Schreiber 31285f9e38 Cleanup `async function`s and `Promise` based code (#74)
* Cleanup `async`/`Promise` based code.

This cleans up a bunch of misunderstandings between `async` functions 
and `Promise`s.

* There is no need to catch exceptions inside async functions and return 
them wrapped via `Promise.reject`. This will happen automatically if an 
exception is thrown inside an async function.

* There is no need to wrap return values of async functions with 
`Promise.resolve`. This will happen automatically.

These changes make the code easier to read and understand.

* Remove unneeded parentheses.

* Remove duplicate check for `options`.

* Convert `let` bindings to `const`.

* Remove `const self = this` assignment.

* Bump version to `3.0.1`.
2019-08-06 11:19:39 -07:00
Amar Zavery 8715839d9a
update min version of dependencies in the package (#68)
* Added support to use azure-cli credentials from the JS sdk

* remove jsdoc annotations

* minor updates and review changes

* updgrading CI to run against 8, 10, 12 versions of node.js. Removing support for 6.x.

* Add support for client_id, object_id and ms_res_id query parameters for VmMSI. Fixes #58.

* expose resource for getting tokens via azure cli

* addressed review feedback

* get subscriptions if the  tokenAudience is for  Resource Manager.

* depedency version updates

* update check package version script
2019-07-23 10:59:30 -07:00
George Wilson 1223c5c13d Enforce azure cli to output json (#65)
* Enforce azure cli to output json

* Changelog

* Version bump
2019-06-13 10:03:05 -07:00
Amar Zavery d050a1bcb8
get subscriptions if the tokenAudience is for Resource Manager (#62)
* Added support to use azure-cli credentials from the JS sdk

* remove jsdoc annotations

* minor updates and review changes

* updgrading CI to run against 8, 10, 12 versions of node.js. Removing support for 6.x.

* Add support for client_id, object_id and ms_res_id query parameters for VmMSI. Fixes #58.

* expose resource for getting tokens via azure cli

* addressed review feedback

* get subscriptions if the  tokenAudience is for  Resource Manager.
2019-05-22 17:36:36 -07:00
Amar Zavery cd6b21b330
Add support for client_id, object_id and ms_res_id query parameters for VmMSI and fixed a bug in AzureCliCredentials (#59)
* Added support to use azure-cli credentials from the JS sdk

* remove jsdoc annotations

* minor updates and review changes

* updgrading CI to run against 8, 10, 12 versions of node.js. Removing support for 6.x.

* Add support for client_id, object_id and ms_res_id query parameters for VmMSI. Fixes #58.

* expose resource for getting tokens via azure cli

* addressed review feedback
2019-05-20 11:16:03 -07:00
Amar Zavery a853042c87
minor updates and review changes (#56)
* Added support to use azure-cli credentials from the JS sdk

* remove jsdoc annotations

* minor updates and review changes
2019-05-16 10:31:31 -07:00
Amar Zavery b9f236c3b2
Added support to use azure-cli credentials from the JS sdk (#55)
* Added support to use azure-cli credentials from the JS sdk

* remove jsdoc annotations
2019-05-16 09:18:59 -07:00
Amar Zavery 291bbb9d48
Implemented ServicePrincipal login with certificate (#53)
* update nyc dependency to fix security warning from npm

* Implemented ServicePrincipal login with certificate

* code review feedback

* Add samples that can be run live
2019-05-06 13:22:16 -07:00
Ramya Achutha Rao ef90c22c23 Use the right return types when returning promise 2019-03-25 21:57:25 -07:00
Niels Grewe dc555e857b fix(app service msi): Use a GET request to obtain app service MSI credentials (#46)
* fix(app service msi): Use a GET request to obtain app service MSI credentials

* chore: version number bump

* docs: Clarify documentation of MSIAppServiceTokenCredentials.getToken()
2019-01-15 08:45:43 -08:00
Kamil Pajdzik 58f47f65a2
Add support for custom MSI endpoint (#45)
* Add support for custom MSI endpoint

* Bump the version to 0.9.0

* Fix test names

* Fix MSI requests

* Remove unused import

* Add unit tests
2019-01-11 18:07:00 -08:00
Sean 67947af559 Export MSI login methods from msRestNodeAuth.ts (#44)
* Export MSI login methods from msRestNodeAuth.ts

* Bumped version to 0.8.4
2019-01-09 08:26:05 -08:00
Kamil Pajdzik 267937786f
Rename package to "@azure/ms-rest-nodeauth" (#30) 2018-11-12 13:18:44 -08:00
Rikki Gibson 674674f6c4 Update ms rest (#24)
* Update ms-rest-js

* Update ms-rest-azure-env

* Fix tsconfig.json

* Update package-lock

* Update typescript

* Fix output dirs in tsconfig

* Put typings inline with dist

* update package-lock

* Remove .npmignore
2018-10-18 15:09:03 -07:00
Kamil Pajdzik 4745cab4ce
Update Authenticator implementation in KeyVaultFactory (#23)
* Update Authenticator implementation in KeyVaultFactory

* Return promise early
2018-10-02 10:23:15 -07:00
Kamil Pajdzik ac18671465
Add KeyVaultFactory (#22)
* Move KeyVaultCredentials class to KeyVault SDK

* Add KeyVaultCredentialsFactory class

* Add KeyVaultFactory

* Change the version to 0.6.0

* Remove static class and move functions outside
2018-09-27 13:17:47 -07:00
Kamil Pajdzik c3c909588a
Update documentation (#21)
* Update documentation

Fix minor problems

* Add returning from promises
2018-09-20 13:17:44 -07:00
Kamil Pajdzik b9f97baa97
Add support for KeyVault credentials (#18)
* Add support for KeyVault credentials

* Add toLowerCase to comparison

* Rename private httpClient

* Remove self temporary variable

* Bump the version
2018-09-19 13:55:56 -07:00
Kamil Pajdzik 3afd5f4e30
Add support for topic credentials (#17)
* Add Topic Credentials

* Update changelog

Bump the version to 0.5.1
2018-09-19 11:24:36 -07:00
Kamil Pajdzik 399d3d65ef Update support for MSI authentication (#13)
* Add TSLint rule to limit classes per file to one

* Add d.ts and js.map files to gitignore

* Ignore dist directory

* Add empty MSI credential classes

* Update MSIOptions and MSIAppServiceOptions

* Update MsiTokenCredentials

* Add implementation of MSI* credentials

* Fix extra whitespace

* Add typings for ADAL library

* Fix TSLint credential issues

* Temporary commit for fixing overloads

* Fix _withMSI declaration

* Fix loginWithMSI overloads

* Fix loginWithVmMSI overloads

* Fix _withMSI declaration

* Fix loginWithAppServiceMSI overloads

* Fix _withAppServiceMSI declaration

* Fix missing TypeScript types in MSI logging methods

* Make MSITokenCredentials abstract

* Fix TSLint problems in token credential classes

* Remove loginWithMSI method

* Remove dist/lib files from tracking

* Bootstrap test directory

* Add unit tests

* Add tokenClientCredentials class

* Update exports

* Fix extra whitespace

* Move options to corresponding classes

* Adjusting types to newer model

* Updating tests

* Fix compiler errors in unit tests

* Enable injecting custom HttpClient to MSI credentials classses

* Update MSI tests

* Fix promise return type

* Fix tests

* Uncomment tests

* Remove unused package

* Update headers to contain MIT license

* Remove commented code

* Update documentation

* Fix slashes in RM endpoint

* Rempve @types/adal-angular package

* Update missing documentation

* Update README.md
2018-09-05 10:44:46 -07:00
Kamil Pajdzik 7dc80fbe29 Change export convention 2018-08-27 14:28:34 -07:00
Kamil Pajdzik d3928e7fee Address code review comments 2018-08-27 14:06:22 -07:00
Kamil Pajdzik 0f1c07d945 Make domain parameter optional for MSI logging 2018-08-27 13:43:20 -07:00
Kamil Pajdzik 68c830292f Rename LoginWithMSIOptions to MSIOptions 2018-08-27 12:58:21 -07:00
Ace Eldeib 6bd8f01f61 fix comments, graph -> batch 2018-08-24 15:34:35 -07:00
Ace Eldeib df2dec9729 revert bad authConstant change 2018-08-24 15:32:54 -07:00
Ace Eldeib 0b1c9cc8f4 add more batch files 2018-08-24 15:31:48 -07:00
Ace Eldeib 3618e51913 add batch, remove graph context, add interactive login token audiences 2018-08-24 15:22:16 -07:00
Ace Eldeib fe03b464f5 Update parameter comments for token audience to reflect accepting URLs 2018-08-24 14:18:44 -07:00
Ace Eldeib af44747e04 fix interactive login 2018-08-24 14:04:40 -07:00
Ace Eldeib 6153d3a870 Remove static array of management plane ops. 2018-08-24 11:45:15 -07:00
Ace Eldeib fd59a0d5e1 fix login.js 2018-08-23 19:56:12 -07:00
Ace Eldeib ceb118827c fix base class function 2018-08-23 19:36:56 -07:00
Ace Eldeib f0d64def58 attempt a fix at node auth 2018-08-23 18:59:02 -07:00
Rikki Gibson 58f94a1f52 Fix build errors 2018-06-27 12:27:59 -07:00
Amar Zavery a1a78c2ec0 finalize things 2017-09-17 11:52:21 -07:00
Amar Zavery d47311d2fc fix looping over AzureEnvironment 2017-09-08 19:51:26 -07:00