The webfakes package comes with two fake apps that
allow to imitate the OAuth2.0 flow in your test cases.
(See Aaron Parecki's tutorial for a good introduction to OAuth2.0.)
One app (oauth2_resource_app()
) is the API server that serves both as the resource and provides authorization.
oauth2_third_party_app()
plays the role of the third-party app.
They are useful when testing or demonstrating code handling OAuth2.0 authorization, token caching, etc. in a package.
The apps can be used in your tests directly,
or you could adapt one or both of them to better mimic a particular OAuth2.0 flow.
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.