Skip to content

Commit

Permalink
Merge pull request #193 from alexa/development-localhost
Browse files Browse the repository at this point in the history
fix: revert pull request #164 causing authentication failures
  • Loading branch information
tydonelson authored Jul 15, 2022
2 parents 11d0be2 + 781a250 commit c022c9f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/runtime/lib/utils/lwa.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export async function accessTokenGenerator(lwaOptions: any): Promise<Token> {

const OAuth: OAuthClient = createOAuth(clientId, clientSecret, lwaAuthorizeHost, lwaTokenHost);
const SERVER_PORT = 9090;
const localServerUrl = `http://localhost:${SERVER_PORT}/cb`;
const localServerUrl = `http://127.0.0.1:${SERVER_PORT}/cb`;
const authorizeUrl: string = OAuth.authorizationCode.authorizeURL({
redirect_uri: localServerUrl,
scope: scopes,
Expand Down
2 changes: 1 addition & 1 deletion src/utils/captchaValidator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ async function _openLoginUrlWithRedirectLink(captchaUrl: string, vendorId: strin
["openid.claimed_id", "http://specs.openid.net/auth/2.0/identifier_select"],
["openid.identity", "http://specs.openid.net/auth/2.0/identifier_select"],
["openid.assoc_handle", "amzn_dante_us"],
["openid.return_to", `${captchaUrl}?vendor_id=${vendorId}&redirect_url=http://localhost:${LOCALHOST_PORT}/captcha`],
["openid.return_to", `${captchaUrl}?vendor_id=${vendorId}&redirect_url=http://127.0.0.1:${LOCALHOST_PORT}/captcha`],
["openid.pape.max_auth_age", "7200"],
]).toString();
await open(loginUrl.href);
Expand Down

0 comments on commit c022c9f

Please sign in to comment.