Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gestioCOF
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 76
    • Issues 76
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 16
    • Merge requests 16
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Klub Dev ENSKlub Dev ENS
  • gestioCOF
  • Merge requests
  • !256

Nettoyage de l'authentification K-Fêt

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged Aurélien Delobelle requested to merge aureplop/kfet-auth_backends into aureplop/kfet-auth Sep 25, 2017
  • Overview 0
  • Commits 4
  • Pipelines 0
  • Changes 24
  • Nettoyage du code relatif à l'utilisateur kfet générique
  • Nettoyage du code relatif au mot de passe du modèle Account ET [Reproduction du message du commit principal]

AccountBackend

  • Should now work if used in AUTHENTICATION_BACKENDS settings.
  • It does not retrieve itself the password, as it should not be used this way.

GenericBackend

  • Delete useless 'username' arg of its 'authenticate()' method.
  • Now delete the token in DB.

TemporaryAuthMiddleware

  • New name of the middleware is more meaningful.
  • Is now responsible to retrieve the password from the request, instead of the AccountBackend.

GenericTeamToken model

  • Add a manager' method to create token, avoiding possible error due to unicity constraint.

GenericLoginView (authentication with the kfet generic user)

  • Replace obscure system with a 100% HTTP handling.
  • See comments for more information.

Misc

  • More docstrings!
  • More tests!
  • Add some i18n.
  • Add kfet/confirm_form.html template: Ask user to confirm sth via a form (which will send a POST request). Context variables: * title: the page title * confirm_url: action attribute for * text: displayed confirmation text
  • kfet.js : Add functions allowing to emit POST request from tag.
  • Non-link nav items from kfet navbar also get a 'title'.
  • A utility has been found for the 'sunglasses' glyphicon!
Edited Sep 25, 2017 by Aurélien Delobelle
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: aureplop/kfet-auth_backends