Skip to content

Latest commit

 

History

History

auth

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Wikimedia Enterprise Authentication API example

Simple piece of code that shows a really basic way to login, revoke token and refresh token with WME Authentication API.

Getting started

  1. First just export environment variables:

    export WME_USERNAME="superuser";
    export WME_PASSWORD="secret";
  2. Then you should be able to just run:

    go run main.go
  3. Note that if you are running this from the root use this command:

    go run example/auth/main.go