A relay for My Epitech/Epitest API to do requests without the authentication token

Overview

My Epitech Relay

A barely working relay for interacting with My Epitech endpoints without token.

About

How?

It is backed up with Puppeteer to provide authentication mechanics. Basically, it is a headless Chromium browser that sometimes does run only for token refresh purposes (Once every few hours).

Why?

Because there actually is no easy way to use the data provided by these endpoints due to oauth.

Install & build

Install NodeJS and NPM, clone this repo, and run the following commands inside:

npm install
npm run build

Manual login

BE CAREFUL, a cookies.json file will be created, and may allow everyone whom has access to it to login to the Microsoft account you were logged in!!

Before getting started, you need to know that the first login must be done. This step requires a graphical interface and may occur as soon as Microsoft auth requires it.

Graphical interface

If Microsoft authentication is required, a window will appear, DO NOT CLOSE IT, or you will need to restart the relay.

You will need to authenticate in this window, in the opened tab. Complete all authentication steps, click on "Stay logged in" everywhere you're asked, and wait until you are back on my.epitech.eu. The window should close.

NO_WINDOW mode

Let's say you don't have any graphical interface. You will need to provide the cookies to the browser. To do that, install the relay on another machine and proceed to authenticate. Then copy the cookies.json file into the remote relay working directory.

This might not work for all cases, but it might at least give you a few hints.

Configure

Copy .env.example into a .env file, and make your adjustments.

Start

Please read the "Manual login" step before if not done yet. It is a required step.

npm start

Use

Considering that you'll host it on localhost:8080. All requests will be proxied as specified below. You will NOT need any token.

https://localhost:8080/epitest/*  =>  https://api.epitest.eu/*

For example, to get https://api.epitest.eu/me/2021, you'll need to call http://localhost:8080/epitest/me/2021.

You might also like...

Capture a famous phrase, download it without hassle and share it with your friends. 🎉

This is a Next.js project bootstrapped with create-next-app. Getting Started First, run the development server: npm run dev # or yarn dev Open http://

Mar 8, 2022

Stream animes for free without any interruption.

Stream animes for free without any interruption.

Aniflix Stream animes for free without any interruption. Free $0 Ad Free Open Source 99.89% uptime Preview Main Server : https://aniflix.eu.org (Repli

Dec 17, 2022

preact.js with hooks and ES2021, without compilers

naked preact preact.js with hooks, without compilers Web development should be simple. No compilers, just ES2021 and preact+hooks. See comments in the

Jun 16, 2022

React Native's Global Alert Component that can be fully customized and without the need of a state.

React Native's Global Alert Component that can be fully customized and without the need of a state.

🚩 React Native Easy Alert React Native Easy Alert Component. Watch on youtube Easy Alert example app. React Native's Global Alert Component that can

Feb 21, 2022

Single Page Application built using React, Context API and OMDb API.

Single Page Application built using React, Context API and OMDb API.

Movie Search App This project is a React application with functions to search for movies and add movies to favorites using OMDb API. Home Page Favorit

Sep 6, 2022

The JavaScript and API powered WordPress.com

The JavaScript and API powered WordPress.com

Calypso Calypso is the new WordPress.com front-end – a beautiful redesign of the WordPress dashboard using a single-page web application, powered by t

Dec 30, 2022

React friendly API wrapper around MapboxGL JS

react-map-gl | Docs react-map-gl is a suite of React components designed to provide a React API for Mapbox GL JS-compatible libraries. More informatio

Dec 31, 2022

Fully typed hooks and utility functions for the React Native StyleSheet API

react-native-style-utilities Fully typed hooks and utility functions for the React Native StyleSheet API npm i react-native-style-utilities ESLint Set

Dec 17, 2022

Distance Matrix Routing App with Tom Tom API

Distance Matrix Routing App Have you ever wanted to build a delivery app that will calculate the shortest distance from each drop off spot? Get extra

Dec 13, 2022
Owner
Alexis Cheron
19yo coding cat, messing with computers since I'm 9
Alexis Cheron
Notifies and then closes draft pull requests that have had no activity for a specified amount of time.

Close Stale Draft Pull Requests This action has been inspired by microsoft/vscode-github-triage-actions, actions/stale and probot/stale, ultimately wr

Multi Theft Auto 2 Jan 7, 2022
This is a custom recipe app called chefMaster. which contains a lot of interesting such as many apis requests, filter, search , add posts. Property design

In the project directory, you can run: npm start Runs the app in the development mode. Open http://localhost:3000 to view it in the browser. The page

Andrew Smal 0 Nov 9, 2022
Parcel Next JS - A simple website with Authentication and basic API calls to a backend system.

This is a Next.js project bootstrapped with create-next-app. Getting Started First, run the development server: npm run dev # or yarn dev Open http://

Subham Roy 1 Jan 2, 2022
UI for Keploy platform that does API testing by dependency mocking without writing any test cases.

Welcome to Keploy UI ?? About Us Keploy is a no-code API testing platform. Keploy automatically generates unit test cases with dependency mocks from A

Keploy Inc 23 Dec 28, 2022
NetflixClone - Netflix clone with react , styled components and firebase with user authentication.........

Getting Started with Create React App This project was bootstrapped with Create React App. Available Scripts In the project directory, you can run: np

null 1 Jan 3, 2022
Boilerplate for a NextJS and Supabase Project. Including full authentication with sign up, login and password recovery.

NextJS x Supabase Boilerplate Getting Started Environment variables Create the enviroment variables with the following command cp .env.local.dist .env

Dominik Amrugiewicz 9 Jun 13, 2022
Build forms in React, without the tears 😭

Build forms in React, without the tears. Visit https://formik.org to get started with Formik. Organizations and projects using Formik List of organiza

Formium 31.7k Jan 5, 2023
Tina is an open source editor that brings visual editing into React websites. Tina empowers developers to give their teams a contextual and intuitive editing experience without sacrificing code quality.

Tina is an open-source toolkit for building content management directly into your website. Community Forum Getting Started Checkout the tutorial to ge

Tina 8.2k Jan 1, 2023
Based on pure JS scripts, without relying on native, no need for react-native link, Title / Header / Tabs / Sticky / Screen components can be flexibly configured, among which Tabs / Sticky can slide When it reaches the top, it will be topped.

react-native-scrollable-tabview English | įŽ€äŊ“中文 Based on pure JS scripts, without relying on native, no need for react-native link,Title / Header / Tab

null 136 Dec 30, 2022
Finished code and notes from EFA bonus class on building a React project without create-react-app

React From Scratch Completed Code This is the completed code for the EFA bonus class on building a React project from scratch. Included are also markd

Conor Broaders 3 Oct 11, 2021