test middleware
This commit is contained in:
parent
41790145a4
commit
206b010787
|
@ -57,7 +57,7 @@
|
||||||
preserve_host: true
|
preserve_host: true
|
||||||
url: "http://dashboard:3000"
|
url: "http://dashboard:3000"
|
||||||
match:
|
match:
|
||||||
url: "http://oathkeeper:4455/<{error,recovery,verify,auth/*,**.css,**.js}{/,}>"
|
url: "http://oathkeeper:4455/<{error,verify,auth/*,**.css,**.js}{/,}>"
|
||||||
methods:
|
methods:
|
||||||
- GET
|
- GET
|
||||||
authenticators:
|
authenticators:
|
||||||
|
|
|
@ -2,7 +2,6 @@ FROM node:14.15.0-alpine
|
||||||
|
|
||||||
WORKDIR /usr/app
|
WORKDIR /usr/app
|
||||||
|
|
||||||
COPY pages ./pages
|
|
||||||
COPY public ./public
|
COPY public ./public
|
||||||
COPY src ./src
|
COPY src ./src
|
||||||
COPY styles ./styles
|
COPY styles ./styles
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
import jwt from "express-jwt";
|
import jwt from "express-jwt";
|
||||||
import jwks from "jwks-rsa";
|
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
|
// 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.
|
// verify the JSON Web Token issued by ORY Oathkeeper using the jwt-express middleware.
|
|
@ -1,6 +1,6 @@
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import { Configuration, PublicApi } from "@ory/kratos-client";
|
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 }));
|
const kratos = new PublicApi(new Configuration({ basePath: config.kratos.public }));
|
||||||
|
|
||||||
|
@ -127,7 +127,7 @@ export default function Login({ flow }) {
|
||||||
</label>
|
</label>
|
||||||
</div> */}
|
</div> */}
|
||||||
<div className="text-sm">
|
<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>
|
<a className="font-medium text-green-600 hover:text-green-500">Forgot your password?</a>
|
||||||
</Link>
|
</Link>
|
||||||
</div>
|
</div>
|
|
@ -1,4 +1,4 @@
|
||||||
import Layout from "../src/components/Layout";
|
import Layout from "./components/Layout";
|
||||||
|
|
||||||
export default function Home() {
|
export default function Home() {
|
||||||
return <Layout title="Dashboard"></Layout>;
|
return <Layout title="Dashboard"></Layout>;
|
|
@ -1,5 +1,5 @@
|
||||||
module.exports = {
|
module.exports = {
|
||||||
purge: ["./pages/**/*.js", "./src/**/*.js"],
|
purge: ["./src/**/*.js"],
|
||||||
darkMode: false, // or 'media' or 'class'
|
darkMode: false, // or 'media' or 'class'
|
||||||
theme: {
|
theme: {
|
||||||
extend: {},
|
extend: {},
|
||||||
|
|
Reference in New Issue