Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Login Endpoints #618

Open
2 tasks
DietBepis1 opened this issue Oct 17, 2023 · 3 comments · May be fixed by #862
Open
2 tasks

Create Login Endpoints #618

DietBepis1 opened this issue Oct 17, 2023 · 3 comments · May be fixed by #862
Assignees
Labels
API ⚙️ Back-end Back-end related issues.

Comments

@DietBepis1
Copy link
Collaborator

DietBepis1 commented Oct 17, 2023

Description

Now that we have the ability to do CRUD on campaigns and admins and can make a user session, we need to be able to actually create that session from our front end. This issue implements those endpoints for the v1 schema.

Dependencies

Spec

We need to create:

  • POST /v1/auth/login; sends credentials as JSON to the server for authentication. Returns a session cookie and a 302 status.
  • POST /v1/auth/logout; deletes a session and returns a 302 status.

Each of these endpoints should also have appropriate testing!

Copilot Prompts

How can I group Express endpoints together?
How do I add new headers to the server's response?
Help me write a(n) <insert http verb> endpoint using ExpressJS.

Target Date: 11/30/23 📆

@DietBepis1 DietBepis1 added ⚙️ Back-end Back-end related issues. API labels Oct 17, 2023
@DietBepis1 DietBepis1 moved this to Todo in App Development Oct 17, 2023
@danchan020
Copy link
Collaborator

@danchan020 I'll try this out

@DietBepis1
Copy link
Collaborator Author

@danchan020, you may want to work on an admin or campaign route first. I forgot to add dependencies here, but these endpoints will require the session authentication stuff to be built out. If you look here, I have ordered things roughly how they need to be created.

@ktrudickm ktrudickm self-assigned this Oct 27, 2023
@DietBepis1 DietBepis1 moved this from Todo to In Development in App Development Oct 29, 2023
@chappdev2019
Copy link
Collaborator

@DietBepis1 Hi Glenn, I'll be working on implementing the logout endpoint for this issue

@ktrudickm ktrudickm linked a pull request Dec 18, 2023 that will close this issue
@manishapriya94 manishapriya94 moved this from In Development to In Testing in App Development Feb 6, 2024
@manishapriya94 manishapriya94 moved this from In Testing to In Development in App Development Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API ⚙️ Back-end Back-end related issues.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants