Skip to content

a single token provider suffices - #24677

Merged
PVince81 merged 1 commit into
masterfrom
single-token-provider
May 18, 2016
Merged

PVince81 merged 1 commit into
masterfrom
single-token-provider

Conversation

@ChristophWurst

@ChristophWurst ChristophWurst commented May 17, 2016 •

Copy link
Copy Markdown
Contributor

When implementing pluggable auth I thought we need it, but now I realized this makes things more complex as we won't need multiple providers.

@LukasReschke objections?

@MorrisJobke @PVince81 @rullzer review please

*
* @return string
*/
public function getPassword() {

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.

Why add this if you are only calling the parent?

@ChristophWurst ChristophWurst May 18, 2016 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Because it's part of the IToken interface and if I remember correctly it doesn't work with the magic method of the Entity class. The parent method is a magic getter.

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.

Correct. I also noticed this :(

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.

aaah yes crappy magic functions...

@rullzer

rullzer commented May 18, 2016 •

Copy link
Copy Markdown
Contributor

Yes things like that happen during development!

Also... intergration tests are failing

@ChristophWurst

Copy link
Copy Markdown
Contributor Author

Also... intergration tests are failing

fixed. Thanks for the quick review \o/

@PVince81

Copy link
Copy Markdown
Contributor

👍 as discussed

However I'm surprised that going from multi to single require all these interface additions ? Are they related or is that bonus content ?

@ChristophWurst

Copy link
Copy Markdown
Contributor Author

However I'm surprised that going from multi to single require all these interface additions ? Are they related or is that bonus content ?

Those changes enforce the 'program to an interface, not an implementation' principle. Before the DefaultTokenProvider and DefaultToken classes were used explicitly and those changes make it more generic by using the interface instead.

@PVince81

Copy link
Copy Markdown
Contributor

Sounds good!

@ChristophWurst ChristophWurst mentioned this pull request May 18, 2016
6 tasks done
@MorrisJobke

Copy link
Copy Markdown
Contributor

Code makes sense and it still works 👍

@PVince81
PVince81 merged commit 6231b72 into master May 18, 2016
@PVince81
PVince81 deleted the single-token-provider branch May 18, 2016 14:31
@lock

lock Bot commented Aug 5, 2019

Copy link
Copy Markdown

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock Bot locked as resolved and limited conversation to collaborators Aug 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants