WikiMovimentoBrasil / quickstatements3

Repository for the development of a new version of QuickStatements
MIT License
1 stars 0 forks source link

Basic login with developer access token #10

Closed arcstur closed 3 weeks ago

arcstur commented 3 weeks ago

Basic login implemented with developer access token. To obtain one, you need to follow the steps in the README.

The login verifies the access token by connecting to the Wikimedia REST API (but we should move that logic into the api app!) and saving the access token and the username in the user's session.

I don't know if it's a good idea to create an user in the database, I don't think we need to do that and it saves a lot of overhead! I think other WMB apps also don't save users and just save the information in a session.

arcstur commented 3 weeks ago

Here are some pics:

Logging in

image

Logged in

image

Invalid access token

image