Giter Club home page Giter Club logo

go-askme's People

Contributors

ahmagdy avatar arezk84 avatar bashmohandes avatar mohamedelsherif-okta avatar ruthadrineda-okta avatar worldleelavivat-okta avatar zeyadyasser avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

go-askme's Issues

login.gohtml and oktalogin.gohtml templates overlapping defines

The defines in the login.gohtml and oktalogin.gohtml templates overlap (Both use {{define "login.head"}} and {{define "login.body"}}) which causes the oktalogin to overshadow the normal login template.
I found this when switching to normal authentication, the login form disappeared completely and when I viewed the html source from the browser the oktalogin template was there.
I fixed it by simply changing the name of the define in the normal login
{{define "login.head"}} --> {{define "standardlogin.head"}}
{{define "login.body"}} --> {{define "standardlogin.body"}}
and using that name in the normal login route.
I will fix this as part of my CSRF mitigation attempt if that is okay.

Add user following functionality

User story

  1. A user may choose to follow another user
  2. A user's homepage should show a feed from all followed users
  3. Users will have a count of the number of followers on their profile pages.

Fix windows support with Docker

Windows was always supported, although during the hackathon a lot of things changed, and now testing Windows revealed few issues, with investigations I found it had to do with line endings
related to this

method (POST /login) is not registered

I am probably missing something here but this method seem to never get called.
When starting the application with docker compose the logs never show this route to be registered.

$ docker-compose up
Starting goaskme_db_1 ... done
Recreating goaskme_web_1   ... done
Starting goaskme_adminer_1 ... done
Attaching to goaskme_db_1, goaskme_adminer_1, goaskme_web_1
db_1       | 2018-12-27 16:16:14.957 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
db_1       | 2018-12-27 16:16:14.957 UTC [1] LOG:  listening on IPv6 address "::", port 5432
db_1       | 2018-12-27 16:16:15.452 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
db_1       | 2018-12-27 16:16:16.098 UTC [20] LOG:  database system was shut down at 2018-12-27 16:14:30 UTC
db_1       | 2018-12-27 16:16:16.288 UTC [1] LOG:  database system is ready to accept connections
web_1      | wait-for-it.sh: waiting 15 seconds for db:5432
web_1      | wait-for-it.sh: db:5432 is available after 1 seconds
web_1      | 2018/12/27 16:16:19 caller *framework.router, method GET, path /
web_1      | [DEPRECATED] github.com/gobuffalo/packr#Box.String has been deprecated.
web_1      |    Use github.com/gobuffalo/packr#Box.FindString instead.
web_1      | 2018/12/27 16:16:19 caller *framework.router, method GET, path /u/:email
web_1      | 2018/12/27 16:16:19 caller *framework.router, method GET, path /u/:email/questions
web_1      | 2018/12/27 16:16:19 caller *framework.router, method POST, path /u/:email/questions
web_1      | 2018/12/27 16:16:19 caller *framework.router, method POST, path /u/:email/answer/:questionId
web_1      | 2018/12/27 16:16:19 caller *framework.router, method GET, path /login
web_1      | 2018/12/27 16:16:19 caller *framework.router, method GET, path /authorization-code/callback
web_1      | 2018/12/27 16:16:19 caller *framework.router, method GET, path /logout
web_1      | 2018/12/27 16:16:19 Auto Migration Starting
web_1      | 2018/12/27 16:16:19 Auto Migration Ended
web_1      | Listening on port 8080

Even when adding test prints in the PerformLogin function and trying to login, It never prints.
I am probably missing something, but I don't know what.
I was just trying to test my CSRF mitigation on the (POST /login) method.

CSRF Mitigation

Currently there is no specific way to mitigate against CSRF, a design is needed to introduce this as a framework level feature with minimal application level changes.

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.