Skip to content
This repository was archived by the owner on Oct 1, 2020. It is now read-only.

Commit 73ba33f

Browse files
authored
Merge pull request #9 from rydash/master
Add MFA support
2 parents 7d2b0f9 + 2ed8670 commit 73ba33f

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ <h1>
3232

3333
<label>Secret Key:</label>
3434
<input type="password" id="secret_key" placeholder="SECRET KEY" value="" />
35+
<label>Session Token (if using MFA):</label>
36+
<input type="password" id="session_token" placeholder="SESSION TOKEN" value="" />
3537
</div>
3638
<div class="col">
3739
<label>Language: </label>

lib/main.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@ function createPresignedUrl() {
226226
crypto.createHash('sha256').update('', 'utf8').digest('hex'), {
227227
'key': $('#access_id').val(),
228228
'secret': $('#secret_key').val(),
229+
'sessionToken': $('#session_token').val(),
229230
'protocol': 'wss',
230231
'expires': 15,
231232
'region': region,

0 commit comments

Comments
 (0)