Skip to content

Authenticate - #19

Open
MrFjellstad wants to merge 12 commits into
FronterAS:masterfrom
MrFjellstad:authenticate
Open

MrFjellstad wants to merge 12 commits into
FronterAS:masterfrom
MrFjellstad:authenticate

Conversation

@MrFjellstad

Copy link
Copy Markdown
Contributor

This is more a RFC, so don't just wack it in!

It is lacking a good error response when you try to access resources you don't have access to in the frontend, but that is easy to fix.

It is blocking the wordcloud if you don't authenticate. This is by design, and meant as an example.

The backend needs more work on the user management. It needs to store the user and maybe give it an id so we can use it for something useful!

Comment thread service/routes.js Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

put a example secret in config.js.example and put the local secret in config.js

@plumpNation

Copy link
Copy Markdown
Contributor

How much do you think it will it take to get this finished?

@MrFjellstad

Copy link
Copy Markdown
Contributor Author

The splitting out in to separate authentication module is still missing!

Comment thread service/package.json

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove sage

@petteraas petteraas closed this Feb 28, 2014
@petteraas petteraas reopened this Feb 28, 2014
@petteraas

Copy link
Copy Markdown
Contributor

check this https://github.com/petteraas/retrospectacular/tree/MrFjellstad-authenticate_2

it's written on top of your code from this pr.

it adds a user type to the index template,

simple CRUD for user,

it creates a new user in ES ( or loads existing ) based on the Google authenticate (displayName is probably not the best field to check for, but it works for now).

it uses redis as session store.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants