Skip to content

HermanShpryhau/mock-auth-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Mock Authentication API

The API accepts requests containing email and password and checks them against in-memory list of users' credentials.

Sample Request

GET /auth?email=user1@mail.com&password=user1

Responses

{
    "authenticated": "true"
}

on successfull authentication.

{
    "authenticated": "false"
}

if there is no user with such credentials.

Valid User Credentials

Email Password
user1@mail.com user1
user2@mail.com user2
user3@mail.com user3

Starting the Server Locally

To run the server locally jsut run this command in your terminal:

$ uvicorn mock_auth_api:app

Note! You need to have Python 3.9 or higenr installed as well as Fast API and Uvicor python modules. You can istall them with pip:

$ pip install fastapi uvicorn

About

Mock authentication API that acceccpts email and password and returns authentication result.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages