youthweb / php-youthweb-api

🔌 PHP Youthweb API is an object-oriented wrapper for PHP of the Youthweb API.
GNU General Public License v3.0
3 stars 1 forks source link

Oauth2-Funktionalität in Authenticator auslagern #13

Closed Art4 closed 7 years ago

Art4 commented 7 years ago

Das Auslagern in einen Authenticator erlaubt später das einfachere Austauschen der Oauth2-Provider, solange es da kein Interface für gibt. Außerdem vereinfacht das die Unit-Tests.

AuthenticatorInterface
- __construct(Youthweb\OAuth2\Client\Provider\Youthweb $oauth2_provider)
- getAuthorizationUrl($options)
- getState()
- authorizeWithAuthCode($code)
- authorizeWithRefreshToken($refresh_token) // für das zukünftige Refresh Token Grant
Art4 commented 7 years ago

Erledigt.