google-oauth2 alternatives and similar packages
Based on the "Unclassified" category.
Alternatively, view google-oauth2 alternatives based on common mentions on social networks and blogs.
-
bit-stream
Lazy infinite compact streams with cache-friendly O(1) indexing and applications for memoization -
dependent-sum-template
DISCONTINUED. Template Haskell code to generate instances of classes in dependent-sum package -
argon2
Haskell bindings to libargon2 - the reference implementation of the Argon2 password-hashing function -
network-carbon
A Haskell implementation of the Carbon protocol (part of the Graphite monitoring tools)
CodeRabbit: AI Code Reviews for Developers
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of google-oauth2 or a related project?
README
Google OAuth2
Interactive Google OAuth2 token negotiation
Usage
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
module Main (main) where
import Data.Aeson
import Data.Semigroup ((<>))
import Network.Google.OAuth2
import Network.HTTP.Simple
import Network.OAuth.OAuth2
import Data.Text.Encoding (encodeUtf8)
main :: IO ()
main = do
OAuth2Token{..} <-
getAccessToken
"<CLIENT_ID>" -- Fill with real ID.
"<CLIENT_SECRET>" -- Fill with real code.
["https://www.googleapis.com/auth/drive"]
(Just "path/to/credentials.cache")
request <- parseRequest "https://www.googleapis.com/drive/v2/files"
response <- httpJSON $ authorize (atoken accessToken) request
print (getResponseBody response :: Value)
where
authorize token = setRequestHeaders
[ ("Authorization", encodeUtf8 $ "Bearer " <> token)
]
Prior Art
This module was inspired by handa-gdata which appears to be abandoned.
[CHANGELOG](./CHANGELOG.md) | [LICENSE](./LICENSE)
*Note that all licence references and agreements mentioned in the google-oauth2 README section above
are relevant to that project's source code only.