PerlDancer / PerlDancer/Dancer2-Plugin-Auth-Extensible

Additional parameters for authenticate_user

Open
#61 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement question
Dominant language
Perl
Stars
10
Forks
21
PR merge metrics
No merged PRs in 30d

Description

Unfortunately we restrict the parameters passed to authenticate_user to username and password.

https://github.com/PerlDancer/Dancer2-Plugin-Auth-Extensible/blob/master/lib/Dancer2/Plugin/Auth/Extensible/Provider/Config.pm#L75

It would be very useful to have additional parameters, especially if you want to authenticate
to a database selected by the user (as with a database admin interface).

This just came up again in a discussion on #ledgersmb.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in lib/Dancer2/Plugin/Auth/Extensible/Provider/Config.pm around line 75 and trace how authenticate_user receives and forwards credentials. Clarify the supported shape and handling of additional parameters, especially the user-selected database case; the work is done when those parameters can be supplied without breaking username/password authentication.

Written by the indexing model from the issue text.

Assessment

Tech stack
perl
Domain
authentication, backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.