Is mutual TLS authentication possible with next.js without a custom server? #19264
Replies: 2 comments
-
@paulhayessilex Did you manage to solve it in the meantime? I'm also looking for an answer. |
Beta Was this translation helpful? Give feedback.
-
I've been trying to find a method to properly set up axios and Client Certificate while using Next.js 14 because my App API Routes call an external API service that requires (mTLS - mutual TLS) client certificate authentication. Besides the client certificates, the API requires a token acquired during OAuth authentication. I'm using I'm setting up the certificates with axios as bellow:
Here I finish axios configuration such as passing token to headers config...
Within API routes I've tried to use Next.js 14
Bellow is an API route that successfuly works as expected, but given the way I've set up axios as
On client components or pages explicity setting However, If I try to import the custom On server components or pages if I make a request to I'm not sure what to do now... |
Beta Was this translation helpful? Give feedback.
-
Does anyone know of any examples?
Beta Was this translation helpful? Give feedback.
All reactions