Giter VIP home page Giter VIP logo

events254-api-archive's Introduction

Hi there ๐Ÿ‘‹, Thank you for stopping by ๐Ÿ˜€

  • ๐Ÿ”ญ Iโ€™m currently working on Notes
  • ๐ŸŒฑ Iโ€™m currently learning how to take it easy.
  • ๐Ÿ‘ฏ Iโ€™m looking to collaborate on any Node/Vue project
  • ๐Ÿค” Iโ€™m looking for help with links to conferences I can give talks
  • ๐Ÿ’ฌ Ask me about Vue, Nuxt, Node, TS, SQL, Linux, Software archirecture, product design
  • ๐Ÿ“ซ How to reach me: Twitter @StanleyMasinde_
  • ๐Ÿ“ I write technical articals here
  • โšก Fun fact: "Nobody exists on purpose. Nobody belongs anywhere. Everybody's gonna die. Come watch TV write some code?โ€

events254-api-archive's People

Contributors

billthebuilder avatar cyrus43 avatar dependabot[bot] avatar stanleymasinde avatar w1lc0x avatar

Stargazers

 avatar

events254-api-archive's Issues

Error when using undefined token to get the auth user.

When getting the current authenticated user, an undefined parameter is passed to the database when the token is not available.

  • validate the token header before trying to get the user information from the database.

Chore: Email class

What is this men?

I'm using this as my todo because I'm always here

Okay but whats the problem?

Oooh yeah. The email sending methods are so spaghetti that they make me wanna carry tomato sauce.

What do you wanna do?

I'm I'm gonna refactor it to a reusable class for easy maintenance

Okay when?

Soon son. Soon

Implement JWT /app/auth/

Hi friends,

Problem?
We need more security in the authentication process and cross-domain access.

Solution?
we need to implement token authentication for API access (JWT).

Extra info

  1. Tokens a more secure than using usernames and passwords for authentication.
  2. We won't require session storage.
  3. In case we have another service on different ports, we won't need to keep logging in. We can easily use the tokens.

API auth

Problem

The current API auth is using an API key which is not so good because a smart guy can just copy from the browser and use it else where.

Plan

Use referrer header for web applications to check the legitimacy of the request.
Only allow requests from events254.co.ke domain and subdomains

This also fixes the below problem
image

Migrations

Update the migrations to match the files

Registration Blank page

Describe the bug
when new user is registered the app directs to a black page with

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'event254 website '
  2. Click on 'Register'
  3. Enter Credeitial click sign up
  4. See error

Expected behavior
to show all events or landing page

Desktop (please complete the following information):

  • OS: [Linux]
  • Browser [chrome]
  • Version [Version 88.0.4324.182 (Official Build) (64-bit)]

Wrong timezone in events time

Describe the bug
An event's datetime needs to include the timezone of the event for easy conversion. for now the default timezone is Africa/Nairobi so that when someone views the event in another timezone, they get the event time is their local timezone. The problem is that the server is storing the timezone as UTC.
So if you set an event for 6:45 AM the time you see on the client side us 9:45

To Reproduce
Steps to reproduce the behavior:

  1. Got to events.opensource254.co.ke/events/create
  2. Create an event
  3. View the time in the created event
  4. The time will be +3hrs

Expected behavior
If you are in Kenya/East Africa, You are supposed to see the exact time you set the event. eg 0945

Screenshots
N/a

Desktop (please complete the following information):
N/A
Smartphone (please complete the following information):
N/A

Additional context
N/A

Remove the use of api keys

The API key was meant to protect sensitive user data.
To remove this means we need to filter sensitive data from responses to clients and only share what's needed.

  • Add middleware to filter sensitive data
  • Remove the API key auth for clients

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.