Skip to content

Commit

Permalink
graph: move out hoauth2 in favor of ms-auth
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco Zocca committed Oct 30, 2023
1 parent da6f48b commit c9d22ed
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
5 changes: 4 additions & 1 deletion ms-azure-api/src/MSAzureAPI/Internal/Common.hs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ import qualified Data.ByteString.Lazy as LBS (ByteString)
import qualified Data.ByteString.Lazy.Char8 as LBS8 (pack, unpack, putStrLn)
-- http-client
import Network.HTTP.Client (Manager)
import qualified Network.HTTP.Client as L (RequestBody(..))
import qualified Network.HTTP.Client as L (RequestBody(..), Response(..))
-- http-client-tls
import Network.HTTP.Client.TLS (newTlsManager)
-- modern-uri
Expand All @@ -67,10 +67,13 @@ import MSAuth (OAuth2Token(..), AccessToken(..), ExchangeToken(..), RefreshToken
import Network.HTTP.Req (Req, runReq, HttpBody(..), HttpConfig(..), HttpException(..), defaultHttpConfig, req, Option, (=:), GET(..), POST(..), PUT(..), DELETE(..), Url, Scheme(..), urlQ, useHttpsURI, https, (/:), ReqBodyJson(..), NoReqBody(..), oAuth2Bearer, HttpResponse(..), jsonResponse, JsonResponse, lbsResponse, LbsResponse, bsResponse, BsResponse, responseBody, responseHeader)
-- text
import Data.Text (Text, pack, unpack)
-- transformers
import Control.Monad.Trans.Reader (ReaderT)
-- unliftio
import UnliftIO (MonadUnliftIO(..))
import UnliftIO.Exception (try)


-- | URL parameters
(==:) :: Text -- ^ key
-> Text -- ^ value
Expand Down
2 changes: 2 additions & 0 deletions ms-graph-api/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ and this project adheres to the

## Unreleased

- get rid of `hoauth` in favor of `ms-auth`

## 0.11.0.0

.Users.Group
Expand Down
4 changes: 2 additions & 2 deletions ms-graph-api/ms-graph-api.cabal
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: ms-graph-api
version: 0.11.0.0
version: 0.12.0.0
synopsis: Microsoft Graph API
description: Bindings to the Microsoft Graph API
homepage: https://github.com/unfoldml/ms-graph-api
Expand Down Expand Up @@ -31,11 +31,11 @@ library
, base >= 4.7 && < 5
, bytestring
, containers
, hoauth2 == 2.6.0
, http-client >= 0.7.13.1
, http-client-tls >= 0.3
, http-types
, modern-uri
, ms-auth
, req
, scientific
, text
Expand Down
3 changes: 3 additions & 0 deletions ms-graph-api/stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,14 @@ resolver:
# - wai
packages:
- .
- ../ms-auth

# Dependency packages to be pulled from upstream that are not in the resolver.
# These entries can reference officially published versions as well as
# forks / in-progress versions pinned to a git hash. For extra:
#
extra-deps:
- dotenv-micro-0.1.0.1@sha256:7cc4d8ad8452b2b8fd1e4c0b1d3ee69ceebb73c98f1697d1dd647a1e820afdf5,1520
- validation-micro-1.0.0.0
- selective-0.6

Expand Down

0 comments on commit c9d22ed

Please sign in to comment.