diff --git a/.env.production b/.env.production index a99f1a0d89a000fb2eb7dade3adb40bf4efb4dbb..e0127bdb4e8ad421b03e21f8b210a3242d7b9ea5 100644 --- a/.env.production +++ b/.env.production @@ -1,4 +1,4 @@ NEXT_PUBLIC_GL_CLIENT_ID=76df8d6ead161d6eb9b04d0bfeaca80ac4ad21b7d7bb69cf07b3ab17e17d5514 -NEXT_PUBLIC_GL_REDIRECT_URI=https://grid5000.gitlabpages.inria.fr/environments-recipes +NEXT_PUBLIC_GL_REDIRECT_URI=https://grid5000.gitlabpages.inria.fr/pipeline-creation-assistant NEXT_PUBLIC_GL_URL=https://gitlab.inria.fr NEXT_PUBLIC_API_ROOT=https://public-api.grid5000.fr/stable diff --git a/README.md b/README.md index e215bc4ccf138bbc38ad58ad57e92135484b3c0f..9e40fe39bd0e5f30df48f56d65bb3a9e151d2e5b 100644 --- a/README.md +++ b/README.md @@ -1,36 +1,29 @@ This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app). -## Getting Started - -First, run the development server: +## Running the server ```bash +npm install npm run dev -# or -yarn dev -# or -pnpm dev -# or -bun dev ``` -Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. - -You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file. - -This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel. - -## Learn More - -To learn more about Next.js, take a look at the following resources: +Open [http://localhost:3211](http://localhost:3211) with your browser to see the result. -- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. -- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. +## Authentication -You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome! +This application leverages OpenConnect through Gitlab's authentication provider to authenticate the user and get a token to perform actions on their behalf. -## Deploy on Vercel - -The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js. - -Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details. +It **needs** a registered gitlab application to work. +Currently it's been created by [@viroulea](https://gitlab.inria.fr/viroulea), but if needed one can create a new application with the following steps: + - go to your settings/applications: https://gitlab.inria.fr/-/user_settings/applications + - "add new application" + - pick a name + - to have both a development and a production setup, set the redirect URIs to: +``` +http://localhost:3211 +https://grid5000.gitlabpages.inria.fr/pipeline-creation-assistant +``` + - **uncheck** the "confidential" checkbox since this application **is** a single page app + - check the `api` and `openid` scopes + - save application + - configure the `.env.production` with the appropriate client id