File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 22
22
use League \OAuth2 \Server \Storage \SessionInterface ;
23
23
use LucaDegasperi \OAuth2Server \Middleware \CheckAuthCodeRequestMiddleware ;
24
24
use LucaDegasperi \OAuth2Server \Middleware \OAuthMiddleware ;
25
- use LucaDegasperi \OAuth2Server \Middleware \OAuthOwnerMiddleware ;
25
+ use LucaDegasperi \OAuth2Server \Middleware \OAuthClientOwnerMiddleware ;
26
+ use LucaDegasperi \OAuth2Server \Middleware \OAuthUserOwnerMiddleware ;
26
27
27
28
/**
28
29
* This is the oauth2 server service provider class.
@@ -156,8 +157,12 @@ public function registerMiddlewareBindings()
156
157
return new OAuthMiddleware ($ app ['oauth2-server.authorizer ' ], $ httpHeadersOnly );
157
158
});
158
159
159
- $ this ->app ->bindShared (OAuthOwnerMiddleware::class, function ($ app ) {
160
- return new OAuthOwnerMiddleware ($ app ['oauth2-server.authorizer ' ]);
160
+ $ this ->app ->bindShared (OAuthClientOwnerMiddleware::class, function ($ app ) {
161
+ return new OAuthClientOwnerMiddleware ($ app ['oauth2-server.authorizer ' ]);
162
+ });
163
+
164
+ $ this ->app ->bindShared (OAuthUserOwnerMiddleware::class, function ($ app ) {
165
+ return new OAuthUserOwnerMiddleware ($ app ['oauth2-server.authorizer ' ]);
161
166
});
162
167
}
163
168
You can’t perform that action at this time.
0 commit comments