SWI-Prolog/swish

stackoverflow authentication

Closed this issue · 3 comments

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

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

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').

Should be fixed with the latest version.