From a81db6f9ea4928f9fa4bc7fbe1c13cdb91b836a4 Mon Sep 17 00:00:00 2001 From: Hardy Jones Date: Tue, 17 Jul 2018 09:13:56 -0700 Subject: [PATCH] Remove TODO It's been codified as issue #4: https://github.com/NoRedInk/servant-oidc/issues/4. --- src/OAuth2/Protect.hs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/OAuth2/Protect.hs b/src/OAuth2/Protect.hs index 28d8669..eecf5b0 100644 --- a/src/OAuth2/Protect.hs +++ b/src/OAuth2/Protect.hs @@ -12,10 +12,6 @@ import "servant" Servant.API import qualified "text" Data.Text as T -- | A combinator for marking an endpoint as requiring OAuth2 authorization. --- --- TODO: Because this combinator uses `Header` directly, clients using it will --- have to pass a `Maybe Authorization`. We should see if we can make a custom --- combinator that just takes an `Authorization`. type Protect = Header "Authorization" Authorization -- | The authorization data passed in requests to OAuth2 protected endpoints.