Giter Site home page Giter Site logo

Service Account about hoauth2 HOT 11 CLOSED

freizl avatar freizl commented on August 25, 2024
Service Account

from hoauth2.

Comments (11)

MichelBoucey avatar MichelBoucey commented on August 25, 2024

Hi,

I have just released few days ago a package called google-oauth2-jwt that create the signed JWT needed to access Google APIs with Service Accounts.

BTW: your issue #16 also need it.

Best regards,
Michel.

from hoauth2.

freizl avatar freizl commented on August 25, 2024

@MichelBoucey nice! will take an look.

from hoauth2.

freizl avatar freizl commented on August 25, 2024

@MichelBoucey just be curious that are you able to build http://hackage.haskell.org/package/google-oauth2-jwt on latest mac?
Gets linking error

Undefined symbols for architecture x86_64:
  "_DHparams_dup", referenced from:
      _HsOpenSSL_DHparams_dup in libHSHsOpenSSL-0.11.1.1-42cQLUu6Nm37qCxYZlRnxo.a(HsOpenSSL.o)
     (maybe you meant: _HsOpenSSL_DHparams_dup)
  "_X509_CRL_get0_by_serial", referenced from:
      _cZGG_info in libHSHsOpenSSL-0.11.1.1-42cQLUu6Nm37qCxYZlRnxo.a(Revocation.o)
  "_X509_STORE_CTX_get0_current_crl", referenced from:
      _HsOpenSSL_X509_STORE_CTX_get0_current_crl in libHSHsOpenSSL-0.11.1.1-42cQLUu6Nm37qCxYZlRnxo.a(HsOpenSSL.o)
     (maybe you meant: _HsOpenSSL_X509_STORE_CTX_get0_current_crl)
  "_X509_STORE_CTX_get0_current_issuer", referenced from:
      _HsOpenSSL_X509_STORE_CTX_get0_current_issuer in libHSHsOpenSSL-0.11.1.1-42cQLUu6Nm37qCxYZlRnxo.a(HsOpenSSL.o)
     (maybe you meant: _HsOpenSSL_X509_STORE_CTX_get0_current_issuer)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
`gcc' failed in phase `Linker'. (Exit code: 1)

from hoauth2.

MichelBoucey avatar MichelBoucey commented on August 25, 2024

I have no Mac. I work on Linux x86_64. I never have had this issue and the build on travis CI is also Okay... Do you build the package with Stack? Have you OpenSSL sources installed? There is an ongoing issue about building HsOpenSSL on Mac OS X.

from hoauth2.

freizl avatar freizl commented on August 25, 2024

@MichelBoucey thanks your feedback. I did find that link which help to me to install the HsOpenSSL but I got error at linking.
Turns out it's specific issue in Mac and I'm running it in CentOS now.

from hoauth2.

MichelBoucey avatar MichelBoucey commented on August 25, 2024

@freizl RedHat/CentOS are very LTS distros, so they use very old versions of libraries and softwares. A successful build should be easer to get on a current Debian(-like) distro or ArchLinux.

from hoauth2.

freizl avatar freizl commented on August 25, 2024

thoughts:
maybe put it in an separated repo?

from hoauth2.

MichelBoucey avatar MichelBoucey commented on August 25, 2024

Can't you develop the service account branch in a debian/archlinux docker container?

from hoauth2.

freizl avatar freizl commented on August 25, 2024

I'm not yet an fan of docker container but I have bootstrapped an linux vm.
It's still in progress in very low pace if you are interested: https://github.com/freizl/hoauth2/compare/branch/service-account?expand=1

And I'm wondering all those changes shall live in its own repo given it seems special to google implementation.

from hoauth2.

MichelBoucey avatar MichelBoucey commented on August 25, 2024

I have built branch/service-account without any troubles on ArchLinux x86_64 (discarding all examples test searching for "Keys").

And yes it seems to me also that a specific package is a bit better outside an only generic implementation package, at least, in an obviously specific module Network.OAuth.OAuth2.Google .

from hoauth2.

freizl avatar freizl commented on August 25, 2024

Network.OAuth.OAuth2.Google seems an good name. Thanks!

from hoauth2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.