Skip to content

Commit 6f576bd

Browse files
committed
Updated documentation.
1 parent f978ad1 commit 6f576bd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/security/oauth2/auth/granter.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ type TokenGranter interface {
3131
Grant(ctx context.Context, request *TokenRequest) (oauth2.AccessToken, error)
3232
}
3333

34+
// AuthorizationServiceInjector
35+
// By implementing this interface, a component can ask the framework to call its Inject method
36+
// to get a reference to the AuthorizationService.
37+
// Currently only component that also implements TokenGranter interface will have its Inject method be called.
3438
type AuthorizationServiceInjector interface {
3539
Inject(authService AuthorizationService)
3640
}

0 commit comments

Comments
 (0)