

Wikipedia Open source OAuth MediaWiki Digital library. complete ( request_token, response_qs ) print ( str ( access_token )) # Step 4: Identify - (optional) get identifying information about the user identity = handshaker. developing web applications in open development frameworks (such as Drupal, Angular, Embe. initiate () # Step 2: Authorize - send user to MediaWiki to confirm authorization print ( "Point your browser to: %s " % redirect ) # response_qs = input ( "Response query string: " ) # Step 3: Complete - obtain authorized key/secret for "resource owner" access_token = handshaker. Click on OAuth applications from the side menu.
#Mediawiki oauth code#
consumer_secret ) # Construct handshaker with wiki URI and consumer handshaker = Handshaker ( "", consumer_token ) # Step 1: Initialize - ask MediaWiki for a temporary key/secret for user redirect, request_token = handshaker. it is not closely integrated with Sharepoint or mediawiki based reporting or knowledge management. RFC 6750 The OAuth 2.0 Authorization Framework: Bearer Token Usage RFC 7636 Proof Key for Code Exchange by OAuth Public Clients (PKCE), example RFC 7009 OAuth 2.0 Token Revocation, example RFC 8628 OAuth 2.0 Device Authorization Grant example RFC 5849 The OAuth 1.0 Protocol, example Supports all (50+) major 1.0a and 2.0 OAuth APIs out-of. Wikimedia has an OpenID-like extension on top of OAuth (referred to as /identify in later slides) which can do authentication. Not a big difference, but you have to use different libraries/methods.
#Mediawiki oauth software#
Personas: Developer - a software developer that uses the MediaWiki REST API on their own behalf or on behalf of users. Note: 'client ID' is another word for 'API key'. Usage from mwoauth import ConsumerToken, Handshaker from six.moves import input # For compatibility between python 2 and 3 # Construct a "consumer" from the key/secret provided by MediaWiki import config consumer_token = ConsumerToken ( config. () Wikimedia uses OAuth 1.0a most sites these days use OAuth 2.0. In this stage, we will use OAuth 2.0 as an authorization mechanism for the MediaWiki REST API and the primary one for Wikimedia sites.
