# 'Unknown authentication strategy "oidc"' using NodeJS Lambda example

**URL:** <https://devforum.okta.com/t/unknown-authentication-strategy-oidc-using-nodejs-lambda-example/12922>\
**Category:** Questions\
**Created:** [February 12, 2021, 6:29pm UTC](https://devforum.okta.com/t/unknown-authentication-strategy-oidc-using-nodejs-lambda-example/12922 "2021-02-12T18:29:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![popefelix](https://avatars.discourse-cdn.com/v4/letter/p/34f0e0/32.png) [@popefelix](https://devforum.okta.com/u/popefelix)\
**Post date:** [February 12, 2021, 6:29pm UTC](https://devforum.okta.com/t/unknown-authentication-strategy-oidc-using-nodejs-lambda-example/12922/1 "2021-02-12T18:29:20Z")

</div>

I’m trying to deploy the [Lambda sample app](https://toolkit.okta.com/apps/okta-nodejs-aws-lambda-example/) described in the Okta toolkit. It works fine running from localhost, but when I run it in Lambda, I get:

```
Error: Unknown authentication strategy "oidc"
    at attempt (/var/task/node_modules/passport/lib/middleware/authenticate.js:173:37)
    at authenticate (/var/task/node_modules/passport/lib/middleware/authenticate.js:349:7)
    at /var/task/node_modules/@okta/oidc-middleware/src/connectUtil.js:81:28
    at Layer.handle [as handle_request] (/var/task/node_modules/express/lib/router/layer.js:95:5)
    at trim_prefix (/var/task/node_modules/express/lib/router/index.js:317:13)
    at /var/task/node_modules/express/lib/router/index.js:284:7
    at Function.process_params (/var/task/node_modules/express/lib/router/index.js:335:12)
    at next (/var/task/node_modules/express/lib/router/index.js:275:10)
    at urlencodedParser (/var/task/node_modules/body-parser/lib/types/urlencoded.js:91:7)
    at Layer.handle [as handle_request] (/var/task/node_modules/express/lib/router/layer.js:95:5)
```

---

<div class="post-metadata">

**Author:** ![sigama](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/sigama/32/5811_2.png) [@sigama](https://devforum.okta.com/u/sigama)\
**Post date:** [February 16, 2021, 10:41pm UTC](https://devforum.okta.com/t/unknown-authentication-strategy-oidc-using-nodejs-lambda-example/12922/2 "2021-02-16T22:41:23Z")

</div>

Hi @popefelix! Please open a support ticket by emailing [support@okta.com](mailto:support@okta.com) with details about your setup. One of our Developer Support Engineers will be able to take a closer look.

---

<div class="post-metadata">

**Author:** ![Lijia](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/lijia/32/2295_2.png) [@Lijia](https://devforum.okta.com/u/Lijia)\
**Post date:** [February 18, 2021, 12:31am UTC](https://devforum.okta.com/t/unknown-authentication-strategy-oidc-using-nodejs-lambda-example/12922/3 "2021-02-18T00:31:23Z")

</div>

Closing this topic as we already received the case the client created.

---

<div class="post-metadata">

**Author:** ![Lijia](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/lijia/32/2295_2.png) [@Lijia](https://devforum.okta.com/u/Lijia)\
**Post date:** [February 18, 2021, 12:31am UTC](https://devforum.okta.com/t/unknown-authentication-strategy-oidc-using-nodejs-lambda-example/12922/4 "2021-02-18T00:31:27Z")

</div>

Closed on February 18, 2021, 12:31am UTC


