<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D54z0000AE4vc1CQBOkta Classic EngineSingle Sign-OnAnswered2025-09-09T09:00:17.000Z2024-08-07T20:03:06.000Z2024-08-08T16:37:50.000Z

wdppi (wdppi) asked a question.

Can I implement OIDC SSO without installing any packages in a lambda function, using Nextjs Static export frontend?

Hello,

 

We're currently working on a project that has a few restrictions and I'm looking for ideas on how to overcome them.

We do not have access to a server, so we're using S3, API Gateway, and a lambda function to handle backend processes. We are using NextJS 13 as a static frontend with output export. We can install packages on the frontend but we cannot install any packages on the lambda side. We are part of an OKTA organization so we are given the domain, client Id, and client secret.

 

We can successfully send the user to the OKTA login, and the idea is then to handle the rest of the authentication in the lambda to obscure the client secret. Is there a way to handle the rest of the authentication process in the lambda without using any SKD/packages? All of the documentation and examples either use NextJS middleware (which we cannot since it's a static build) or use packages installed on the Nodejs side.

 

I hope this was a clear description of my issue.

 

Thank you


  • Mihai N. (Okta, Inc.)

    Hi @wdppi (wdppi)​ , Thank you for reaching out to the Okta Community! 

     

    This question is more appropriate for our dedicated Okta Developer Forum.

    My advice would be to reach out via devforum.okta.com to take advantage of their expertise.

    While we'll do our best to answer all of your questions here, this medium is more inclined towards Okta core products and features (non-custom/developer work). 

     

    Regards.

    --

    Help others in the community by liking or hitting Select as Best if this response helped you.

    Expand Post
    Selected as Best
  • Mihai N. (Okta, Inc.)

    Hi @wdppi (wdppi)​ , Thank you for reaching out to the Okta Community! 

     

    This question is more appropriate for our dedicated Okta Developer Forum.

    My advice would be to reach out via devforum.okta.com to take advantage of their expertise.

    While we'll do our best to answer all of your questions here, this medium is more inclined towards Okta core products and features (non-custom/developer work). 

     

    Regards.

    --

    Help others in the community by liking or hitting Select as Best if this response helped you.

    Expand Post
    Selected as Best
  • wdppi (wdppi)

    Hi @Mihai N. (Okta, Inc.)​ ,

    Thank you for pointing me in the right direction! I'll check that out.

    Andre

This question is closed.
Loading
Can I implement OIDC SSO without installing any packages in a lambda function, using Nextjs Static export frontend?