A simple Taxis Login look-alike (which also returns data in XML format) for testing purposes
1.4K
A simple Taxis Login look-alike (which also returns data in XML format) for testing purposes. Docker image based on nodeJS
docker compose builddocker compose up -d
4099PORT=4099ADDRESS=0.0.0.0USERID=gunetdemoTAXID=012345678LASTNAME=ΔΟΚΙΜΑΣΤΙΚΟΣ200 MBAuthorize: curl http://localhost:4099/authorize?redirect_uri=<url>
Token: curl -X POST http://localhost:4099/token
{
"access_token": "blabla",
"token_type": "example",
"expires_in": "1000",
"refresh_token": "bla",
"example_parameter": "ignored??",
"scope": "test"
}
Note
The `/userinfo` endpoint dynamically returns the user data entered during the /authorize flow (which sends a POST request to `/setuserinfo`). When the user submits the User, AFM, and Last Name fields in the authorization form, these values are stored and later reflected in the /userinfo response. If the form is left blank, the endpoint falls back to the default environment variable values:
Userinfo (GET): curl http://localhost:4099/userinfo
<root><userinfo userid="gunetdemo" taxid="012345678" lastname="ΔΟΚΙΜΑΣΤΙΚΟΣ" firstname="ΕΥΤΥΧΙΑ" fathername="ΕΜΜΑΝΟΥΗΛ" mothername="ΑΝΝΑ" birthyear="1950"/></root>
Userinfo (POST): curl -X POST http://localhost:4099/userinfo
{
"root": {
"userinfo": {
"taxid": "068933130",
"userid": "User068933130",
"lastname": "βαβουλα",
"firstname": "ΕΥΤΥΧΙΑ",
"fathername": "ΕΜΜΑΝΟΥΗΛ",
"mothername": "ΑΝΝΑ",
"birthyear": "1950"
}
}
}
Content type
Image
Digest
sha256:42c355c6b…
Size
69.8 MB
Last updated
10 months ago
docker pull gunet/dummy-gsis