Documentation ¶
Overview ¶
Package token_context contains the code that extract token manager from the context.
Index ¶
- func ContextWithSpaceAuthzService(ctx context.Context, s interface{}) context.Context
- func ContextWithTokenManager(ctx context.Context, tm interface{}) context.Context
- func ReadSpaceAuthzServiceFromContext(ctx context.Context) interface{}
- func ReadTokenManagerFromContext(ctx context.Context) interface{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContextWithSpaceAuthzService ¶
ContextWithSpaceAuthzService injects AuthzServiceManager in the context for every incoming request Accepts service.AuthzServiceManager in order to make sure that correct object is set in the context. Only other possible value is nil
func ContextWithTokenManager ¶
ContextWithTokenManager injects tokenManager in the context for every incoming request Accepts Token.Manager in order to make sure that correct object is set in the context. Only other possible value is nil
func ReadSpaceAuthzServiceFromContext ¶
ReadSpaceAuthzServiceFromContext returns an interface that encapsulates the AuthzServiceManager extracted from context. This interface can be safely converted to space.AuthzServiceManager. Must have been set by ContextWithSpaceAuthzService ONLY.
func ReadTokenManagerFromContext ¶
ReadTokenManagerFromContext returns an interface that encapsulates the tokenManager extracted from context. This interface can be safely converted. Must have been set by ContextWithTokenManager ONLY.
Types ¶
This section is empty.