Terminology confusion: provider vs strategy

10 views
Skip to first unread message

Alan Savage

unread,
Oct 20, 2022, 8:44:28 PM10/20/22
to omniauth
I'm a little confused about the difference between a "provider" and a "strategy". The method we call to add a new strategy is called "provider". The docs refer to providers in the urls like this "To use OmniAuth, you need only to redirect users to /auth/:provider, where :provider is the name of the strategy".

Is there a real meaning to "provider" or is it just another term for "strategy"?

Would the "provider" method be better named "strategy_provider" or just "add_strategy" or "register_strategy" or something? Is it just around for legacy reasons?

Which term should I prefer in my code? E.g. OmniAuthStrategy::GOOGLE = 'google' or OmniAuthProvider::GOOGLE = 'google' ?
Reply all
Reply to author
Forward
0 new messages