Skip to content

Commit

Permalink
fix test app imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco Zocca committed Oct 31, 2023
1 parent 0cc7054 commit e126cdf
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

## Introduction

We provide separate libraries for authentication (`ms-auth`), Graph (`ms-graph-api`) and Azure (`ms-azure-api`) since they cater to different use cases; a typical use case will need to import `ms-auth` as well as the API binding they need.
We provide separate libraries for authentication (`ms-auth`), Graph (`ms-graph-api`) and Azure (`ms-azure-api`) since they cater to different use cases. Both the Graph and Azure SDKs import `ms-auth`.

## Examples

Expand Down
2 changes: 2 additions & 0 deletions ms-auth/src/Network/OAuth2/Provider/AzureAD.hs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ module Network.OAuth2.Provider.AzureAD (
, azureOAuthADApp
-- * Exceptions
, AzureADException(..)
-- * Types
, Idp(..), IdpApplication(..)
) where

-- import Data.String (IsString(..))
Expand Down
6 changes: 3 additions & 3 deletions ms-azure-api-test/app/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ import Data.Aeson.Encode.Pretty (encodePretty)
import qualified Data.ByteString.Lazy.Char8 as LBS8 (pack, unpack, putStrLn)
-- dotenv-micro
import DotEnv.Micro (loadDotEnv)
-- hoauth2
import Network.OAuth.OAuth2 (OAuth2Token(..), AccessToken)
import Network.OAuth2.Experiment (IdpApplication, GrantTypeFlow(..))
-- http-client
import Network.HTTP.Client (Manager)
-- http-types
import Network.HTTP.Types.Status (status200)
-- ms-auth
import MSAuth (OAuth2Token(..), AccessToken)
import Network.OAuth2.Provider.AzureAD (IdpApplication, GrantTypeFlow(..))
-- req
import Network.HTTP.Req (HttpConfig)
-- scotty
Expand Down
3 changes: 1 addition & 2 deletions ms-azure-api-test/ms-azure-api-test.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,11 @@ executable ms-azure-api-test
, bytestring
, directory >= 1.3.6.2
, dotenv-micro == 0.1.0.1
, hoauth2 == 2.6.0
, http-client
, http-client-tls >= 0.3
, http-types
, ms-azure-api-test
, ms-auth
, ms-auth >= 0.5
, ms-azure-api
, req
, scotty
Expand Down
3 changes: 1 addition & 2 deletions ms-graph-api-test/ms-graph-api-test.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,9 @@ executable ms-graph-api-test
, bytestring
, directory >= 1.3.6.2
, dotenv-micro == 0.1.0.1
, hoauth2 == 2.6.0
, http-client
, http-client-tls >= 0.3
, ms-auth >= 0.4
, ms-auth >= 0.5
, ms-graph-api
, ms-graph-api-test
, req
Expand Down

0 comments on commit e126cdf

Please sign in to comment.