
 auth_stackoverflow.pl -- Enable login with stackexchange
auth_stackoverflow.pl -- Enable login with stackexchange
This module allows for configures _login with Stack exchange. To enable
this module:
- Follow these steps to
register your application on Stack Apps. Get the following info:
- The client ID
- The client secret
- The key
- Register a redirect url. To test from localhost, this should be
http://localhost:3050/oauth2/stackexchange/reply
 
- COPY this file to config-enabled
- EDIT the server attributes
 oauth2:server_attribute(?ServerID, ?Attribute, ?Value)[multifile] oauth2:server_attribute(?ServerID, ?Attribute, ?Value)[multifile]
- Declare properties of an oauth2 identity provider. The values below
are for StackExchange server.
EDIT: 
- url: base URL of the stackexchange authentication server
- api_endpoint: Stack Apps API endpoint
- redirect_uri: our location
- client_id: Client Id from Stack Apps
- client_secret: Client Secret from Stack Apps
- key: Key from Stack Apps to access their API (/me)
- site: Stack exchange site for which to ask info
 
- See also
- - swish(lib/oauth2) for a description of the attributes.
 
 swish_config:user_info(+Request, ?Server, -Info:dict) is semidet[multifile] swish_config:user_info(+Request, ?Server, -Info:dict) is semidet[multifile]
- True if Info represents describes the currently logged in user.