elliottt / hsopenid Goto Github PK
View Code? Open in Web Editor NEWA Haskell implementation of the OpenID 2.0 spec
License: Other
A Haskell implementation of the OpenID 2.0 spec
License: Other
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?
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.
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.
$ 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.
As HsOpenSSL is already required, the nano-hmac dependency seems redundant.
This is still broken with OpenSSL 1.1 (see #14)
Build log: https://nix-cache.s3.amazonaws.com/log/53wzs6pj41iywnw55b7z01fz22ljhp1i-openid-0.2.1.0.drv
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.
It would be great to move away from the HTTP library, and use http-client instead, as it allows for much simpler SSL integration.
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:
The current list of bytes implementation isn't great. Working over bytestrings would be a big improvement.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.