Last active
March 4, 2018 07:53
-
-
Save mczachurski/fea02c0b063fd4596fa3df94c7344439 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
public protocol AuthorizationHandlerProtocol { | |
var requirementType: AuthorizationRequirementProtocol.Type { get } | |
var resourceType: EntityProtocol.Type { get } | |
func handle(user: UserCredentials, resource: EntityProtocol, requirement: AuthorizationRequirementProtocol) throws -> Bool | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment