Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Let password auth providers handle arbitrary login types #2620

Merged
merged 1 commit into from
Nov 1, 2017

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Nov 1, 2017

Provide a hook where password auth providers can say they know about other
login types, and get passed the relevant parameters

Copy link
Member

@dbkr dbkr left a comment

Choose a reason for hiding this comment

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

I wonder if a nicer thing would be to make the local password check just another auth provider. lgtm though apart from backticks

the login type, and a dictionary of login secrets passed by the client.

The method should return a Twisted ``Deferred`` object, which resolves to
the canonical `@localpart:domain`` user id if authentication is successful,
Copy link
Member

Choose a reason for hiding this comment

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

Mismatched backticks here?

Copy link
Member Author

Choose a reason for hiding this comment

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

ja thx

@dbkr dbkr assigned richvdh and unassigned dbkr Nov 1, 2017
Provide a hook where password auth providers can say they know about other
login types, and get passed the relevant parameters
@richvdh richvdh force-pushed the rav/auth_non_password branch from b2f9b2d to 3cd6b22 Compare November 1, 2017 16:44
@richvdh
Copy link
Member Author

richvdh commented Nov 1, 2017

I wonder if a nicer thing would be to make the local password check just another auth provider

Yes, yes it would. When I first started this code that didn't work because of reasons to do with canonicalisation of user_ids, but it's now evolved to the point when that would be fine. Ho hum, another time.

@richvdh richvdh merged commit 846a94f into develop Nov 1, 2017
@richvdh richvdh deleted the rav/auth_non_password branch November 1, 2017 16:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants