|Chteufleur a330e7df29 Fix FR message that missed a part of the message.||3 months ago|
|http||6 months ago|
|packaging||3 months ago|
|scripts||3 months ago|
|xmpp||3 months ago|
|.gitignore||9 months ago|
|LICENSE||8 months ago|
|README.md||3 months ago|
|httpAuth.conf||5 months ago|
|main.go||3 months ago|
|messages.lang||3 months ago|
Provide an HTTP authentication over XMPP. Implementation of XEP-0070.
Can be run as a XMPP client or XMPP component.
You must first install go environment on your system. Then, go into your $GOPATH directory and go get the source code.
go get git.kingpenguin.tk/chteufleur/HTTPAuthentificationOverXMPP.git
First, you need to go into directory
Then, you can run the project directly by using command
go run main.go.
Or, in order to build the project you can run the command
go build main.go.
It will generate a binary that you can run as any binary file.
Configure the gateway by editing the
httpAuth.conf file in order to give all XMPP and HTTP server informations. This configuration file has to be placed following the XDG specification (example
An example of the config file can be found in the repos.
Bold config are mandatory.
http_bind_address_ipv4 is set to
0.0.0.0, it will bind all address on IPv4 AND IPv6.
To ask authorization, just send an HTTP request to the path
/auth with parameters:
Bold parameters are mandatory.
GET /auth?jid=user%40host%2fresource;domain=example.org;method=POST;transaction_id=WhatEverYouWant;timeout=120 HTTP/1.1
This will send a request to the given JID, then return HTTP code depending on what appended.
If the provided JID contain a resource, it will try to send an
If the answer to this
iq is a
it will automatically send a
message stanza. Unfortunately, if a
message stanza is used,
their is probably no way to get the error if the JID does not exist or is unreachable.
A demo version can be found at auth.xmpp.kingpenguin.tk for test purpose only.