stackoverflow authentication
Closed this issue · 3 comments
friguzzi commented
On https://swish.swi-prolog.org/ trying to authenticate with stackoverflow I get
url `'https://stackexchange.com/.well-known/openid-configuration''
does not exist (status(404,Not Found))
SWI-Prolog httpd at swish
I tried to add stackoverflow authentication to cplint.eu but I get the same error
friguzzi commented
By adding
oauth2:server_attribute(stackexchange, discovery_endpoint,
'https://stackoverflow.com/oauth').
I get
Internal server error
https://stackoverflow.com/users/login?returnurl=
https%3a%2f%2fstackoverflow.com%2foauth:1:2: Syntax error: json(illegal_json)
SWI-Prolog httpd at fabrizios-mbp.station
friguzzi commented
I use this conf
oauth2:server_attribute(stackexchange, url,
'https://stackoverflow.com').
oauth2:server_attribute(stackexchange, redirect_uri,
'http://localhost:3050/oauth2/stackexchange/reply').
oauth2:server_attribute(stackexchange, authorization_endpoint,
'/oauth').
oauth2:server_attribute(stackexchange, token_endpoint,
'/oauth/access_token').
oauth2:server_attribute(stackexchange, api_endpoint,
'https://api.stackexchange.com').
oauth2:server_attribute(stackexchange, discovery_endpoint,
'https://stackoverflow.com/oauth').
oauth2:server_attribute(stackexchange, api_endpoint,
'https://api.stackexchange.com').
JanWielemaker commented
Should be fixed with the latest version.