hwi / HWIOAuthBundle

OAuth client integration for Symfony. Supports both OAuth1.0a and OAuth2.
MIT License
2.27k stars 799 forks source link

OAuthToken::getProviderKey #795

Closed clubdesarrolladores closed 3 months ago

clubdesarrolladores commented 9 years ago

Hi,

It is posible get the provider key from an OAuthToken like does UsernamePasswordToken?

I need to know the name of the current matched firewall through the OAuthToken

Piquinikis commented 9 years ago

+1

DanielMaq commented 9 years ago

+1

soullivaneuh commented 9 years ago

@clubdesarrolladores Nice idea. I will see if it's possible later.

Feel free to make a PR if you want to get it quicker! :+1:

MartinLyne commented 7 years ago

This seems to break FOSUser Registration page rendering, as it looks for getProviderToken method. Just for any other googlers who had same issue: Attempted to call an undefined method named "getProviderKey" of class "HWI\Bundle\OAuthBundle\Security\Core\Authentication\Token\OAuthToken

lukepass commented 6 years ago

Any news on this issue? I am experiencing the same error. Thanks.

elvismdev commented 5 years ago

@MartinLyne I'm having the same error as you, see #1451

Did you figure it out to resolve it?

peter-gribanov commented 5 years ago

I have the same error

Error: Call to undefined method HWI\Bundle\OAuthBundle\Security\Core\Authentication\Token\OAuthToken::getProviderKey()
#5 vendor/friendsofsymfony/user-bundle/Controller/RegistrationController.php(184): getTargetUrlFromSession
#4 vendor/friendsofsymfony/user-bundle/Controller/RegistrationController.php(175): confirmedAction
#3 vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php(151): handleRaw
#2 vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php(68): handle
#1 vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php(200): handle
#0 web/app.php(71): null
$ composer show --latest 'hwi/*'
hwi/oauth-bundle 0.6.3 0.6.3 Support for authenticating users using both OAuth1.0a and OAuth2 in Symfony2.
$ composer show --latest 'friendsofsymfony/*'
friendsofsymfony/user-bundle v2.1.2 v2.1.2 Symfony FOSUserBundle
github-actions[bot] commented 8 months ago

Message to comment on stale issues. If none provided, will not mark issues stale

github-actions[bot] commented 8 months ago

This issue was closed because it has been stalled for 5 days with no activity.

github-actions[bot] commented 3 months ago

Message to comment on stale issues. If none provided, will not mark issues stale

github-actions[bot] commented 3 months ago

This issue was closed because it has been stalled for 5 days with no activity.