Giter Club home page Giter Club logo

hsopenid's People

Contributors

elliottt avatar baguasquirrel avatar zouppen avatar snoyberg avatar yumike avatar

Stargazers

 avatar hussein-aitlahcen avatar  avatar Zac Sims avatar Angus H. avatar  avatar  avatar Sergey Lymar avatar cutsea110 avatar  avatar  avatar Jason Dagit avatar Aycan iRiCAN avatar nils avatar  avatar Reto Kramer avatar K. S. Ernest (iFire) Lee avatar  avatar Fernando Meyer avatar

Watchers

 avatar  avatar cutsea110 avatar James Cloos avatar  avatar  avatar  avatar

hsopenid's Issues

Library broken or not enough documentation

I am trying to use the test application. When trying to use Google OpenID, it says:

$ openid-test https://www.google.com/accounts/o8/id http://www.example.com
discover: Error "HTTP request error: ErrorMisc \"sslConnect failed\""

It doesn't seem to work with any other endpoint, either. I've tried Google, Yahoo and AOL. I'm running the version from your master branch (b321b85) inside cabal-dev environment. GHC version is 7.0.3, the one shipped with Ubuntu Oneiric.

Is there an issue with hsopenid or am I doing something wrong?

Fails to build on Debian testing due to OpenSSL version 1.1

Build error:

Preprocessing library openid-0.2.0.2...
DH.hsc: In function ‘main’:
DH.hsc:66:5: error: invalid use of incomplete typedef ‘DH {aka struct dh_st}’
DH.hsc:67:5: error: invalid use of incomplete typedef ‘DH {aka struct dh_st}’
DH.hsc:68:5: error: invalid use of incomplete typedef ‘DH {aka struct dh_st}’
DH.hsc:69:5: error: invalid use of incomplete typedef ‘DH {aka struct dh_st}’
DH.hsc:77:5: error: invalid use of incomplete typedef ‘DH {aka struct dh_st}’
DH.hsc:78:5: error: invalid use of incomplete typedef ‘DH {aka struct dh_st}’
DH.hsc:79:5: error: invalid use of incomplete typedef ‘DH {aka struct dh_st}’
DH.hsc:80:5: error: invalid use of incomplete typedef ‘DH {aka struct dh_st}’
DH.hsc:104:5: error: invalid use of incomplete typedef ‘DH {aka struct dh_st}’
DH.hsc:105:5: error: invalid use of incomplete typedef ‘DH {aka struct dh_st}’

This is similar to the issue I raise for HsOpenSSL here.

openid with ghc-7.6

Hi!
While trying to install openid with Cabal-1.16.0.3 (GHC-7.6) I'm getting a lot of wornings about libraries that have to be downgradet to make it work.

Is it possible to update this library to work with the newest libraries available?

$> cabal install openid 
Resolving dependencies...
In order, the following would be installed:
bytestring-0.9.1.10 (new version)
containers-0.3.0.0 (new version)
monadLib-3.6.2 (new package)
nano-hmac-0.2.0 (new package)
text-0.11.3.1 (reinstall) changes: bytestring-0.10.0.2 -> 0.9.1.10
parsec-3.1.3 (reinstall) changes: bytestring-0.10.0.2 -> 0.9.1.10
network-2.2.1.7 (new version)
HTTP-4000.0.7 (new version)
time-1.1.4 (new version)
HsOpenSSL-0.8.0.2 (new package)
xml-1.3.13 (reinstall) changes: bytestring-0.10.0.2 -> 0.9.1.10
openid-0.1.4.6 (new package)
cabal: The following packages are likely to be broken by the reinstalls:
texmath-0.6.1.5
pandoc-1.10.1
Graphalyze-0.14.0.1
wl-pprint-text-1.1.0.0
graphviz-2999.16.0.0
thrift-0.9.0
tagsoup-0.12.8
system-filepath-0.4.7
system-fileio-0.3.11
polyparse-1.8
path-pieces-0.1.2
regex-tdfa-1.1.8
network-2.4.1.2
simple-sendfile-0.2.11
hslogger-1.2.1
flowbox-utils-0.1
MissingH-1.2.0.0
citeproc-hs-0.3.8
cgi-3001.1.8.4
HTTP-4000.2.8
json-0.7
indents-0.3.3
highlighting-kate-0.5.4
HStringTemplate-0.7.1
lens-3.9.0.2
hexpat-0.20.3
hashable-1.2.0.10
void-0.6.1
unordered-containers-0.2.3.1
case-insensitive-1.0.0.2
fast-logger-0.3.1
blaze-markup-0.5.1.5
blaze-html-0.6.1.1
blaze-html-0.5.1.3
blaze-builder-0.3.1.1
attoparsec-0.10.4.0
Use --force-reinstalls if you want to install anyway.

Example program easy.hs issues "field not present: assoc_handle" error

$ runhaskell easy.hs mooism.livejournal.com http://sw16.vm.bytemark.co.uk
easy.hs: user error (Associate Error: Error "field not present: assoc_handle")
$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 6.12.1
$ for pkg in openid base bytestring containers HTTP monadLib nano-hmac network time xml HsOpenSSL ; do ghc-pkg list $pkg ; done
/var/lib/ghc-6.12.1/package.conf.d
   openid-0.1.4.6
/var/lib/ghc-6.12.1/package.conf.d
   base-3.0.3.2
   base-4.2.0.0
/var/lib/ghc-6.12.1/package.conf.d
   bytestring-0.9.1.5
/var/lib/ghc-6.12.1/package.conf.d
   containers-0.3.0.0
/var/lib/ghc-6.12.1/package.conf.d
   HTTP-4000.0.9
/var/lib/ghc-6.12.1/package.conf.d
   monadLib-3.6.1
/var/lib/ghc-6.12.1/package.conf.d
   nano-hmac-0.2.0
/var/lib/ghc-6.12.1/package.conf.d
   network-2.2.1.7
/var/lib/ghc-6.12.1/package.conf.d
   time-1.1.4
/var/lib/ghc-6.12.1/package.conf.d
   xml-1.3.7
/var/lib/ghc-6.12.1/package.conf.d
   HsOpenSSL-0.8

This is on Ubuntu 10.04, Linux 2.6.32.

Replace nano-hmac

As HsOpenSSL is already required, the nano-hmac dependency seems redundant.

More relaxed version number limits

The library is very picky about its build-dependencies. This makes it hard to use as a part of bigger project. I'd like to see the upper bounds of version requirements to be relaxed or removed completely.

Switch to http-client

It would be great to move away from the HTTP library, and use http-client instead, as it allows for much simpler SSL integration.

Build errors Network.URI and unsafePerformIO

Hi,

I have tried to build openid and got to build problems:

src/Network/OpenID/Authentication.hs:35:8:
Could not find module ‘Network.URI’
It is a member of the hidden package ‘network-uri-2.6.0.3’.
Perhaps you need to add ‘network-uri’ to the build-depends in your .cabal file.
Use -v to see a list of the files searched for.

[11 of 17] Compiling Data.Digest.OpenSSL.SHA ( src/Data/Digest/OpenSSL/SHA.hs, dist/build/Data/Digest/OpenSSL/SHA.o )

src/Data/Digest/OpenSSL/SHA.hs:26:8:
Not in scope: ‘unsafePerformIO’

src/Data/Digest/OpenSSL/SHA.hs:32:10:
Not in scope: ‘unsafePerformIO’

I have tried to fix both problems:

https://gist.github.com/promi/596ce61dd824f27a28d9

Better sha/sha256

The current list of bytes implementation isn't great. Working over bytestrings would be a big improvement.

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.