You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
--| 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`.
typeProtect=Header"Authorization"Authorization
One option is to use a different combinator altogether.
Another option is to update servant to at least version 0.13. It changed the type of headers. If we specify that it's a Header' '[Strict] "Authorization" Authorization, it ought to make it required for the API.
The text was updated successfully, but these errors were encountered:
servant-oidc/src/OAuth2/Protect.hs
Lines 14 to 19 in 5766f51
One option is to use a different combinator altogether.
Another option is to update
servant
to at least version 0.13. It changed the type of headers. If we specify that it's aHeader' '[Strict] "Authorization" Authorization
, it ought to make it required for the API.The text was updated successfully, but these errors were encountered: