test middleware

This commit is contained in:
Karol Wypchlo 2021-02-05 12:38:22 +01:00
parent 41790145a4
commit 206b010787
12 changed files with 6 additions and 7 deletions

View File

@ -57,7 +57,7 @@
preserve_host: true
url: "http://dashboard:3000"
match:
url: "http://oathkeeper:4455/<{error,recovery,verify,auth/*,**.css,**.js}{/,}>"
url: "http://oathkeeper:4455/<{error,verify,auth/*,**.css,**.js}{/,}>"
methods:
- GET
authenticators:

View File

@ -2,7 +2,6 @@ FROM node:14.15.0-alpine
WORKDIR /usr/app
COPY pages ./pages
COPY public ./public
COPY src ./src
COPY styles ./styles

View File

@ -2,7 +2,7 @@
import jwt from "express-jwt";
import jwks from "jwks-rsa";
import config from "../../src/config";
import config from "../../config";
// This middleware assumes that the app is secured using ORY Oathkeeper, in which case we
// verify the JSON Web Token issued by ORY Oathkeeper using the jwt-express middleware.

View File

@ -1,6 +1,6 @@
import Link from "next/link";
import { Configuration, PublicApi } from "@ory/kratos-client";
import config from "../../src/config";
import config from "../../config";
const kratos = new PublicApi(new Configuration({ basePath: config.kratos.public }));
@ -127,7 +127,7 @@ export default function Login({ flow }) {
</label>
</div> */}
<div className="text-sm">
<Link href="/auth/recovery">
<Link href="/recovery">
<a className="font-medium text-green-600 hover:text-green-500">Forgot your password?</a>
</Link>
</div>

View File

@ -1,4 +1,4 @@
import Layout from "../src/components/Layout";
import Layout from "./components/Layout";
export default function Home() {
return <Layout title="Dashboard"></Layout>;

View File

@ -1,5 +1,5 @@
module.exports = {
purge: ["./pages/**/*.js", "./src/**/*.js"],
purge: ["./src/**/*.js"],
darkMode: false, // or 'media' or 'class'
theme: {
extend: {},