Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Initial Device Flow implementation#38

Merged
olivierdagenais merged 29 commits into
masterfrom
device_flow
Apr 14, 2016
Merged

Initial Device Flow implementation#38
olivierdagenais merged 29 commits into
masterfrom
device_flow

Conversation

@olivierdagenais
Copy link
Copy Markdown
Contributor

These changes implement the OAuth 2.0 Device Flow according to my interpretation of the draft-ietf-oauth-device-flow-01 specification.

Oli Dagenais added 29 commits April 13, 2016 22:06
These will be used to simulate a server and a proxy server,
respectively.
This will allow us to stub special cases without needing to add
helper methods every time.
This will allow us to write tests that can respond differently
to otherwise identical-looking POST requests, such as when the
client receives "authorization_pending" and tries again after
some interval.
http://wiremock.org/stateful-behaviour.html
We need readErrorToString() because when the response code indicates
an error, asking for the inputStream will throw an exception that
appears to originate from a call to getResponseCode().
I originally wrote this class for jenkinsci/tfs-plugin and
I need it pretty much as-is for this project, as well.
"The default value [for http.nonProxyHosts] excludes
all common variations of the loopback address."
Because the host name came back as example.local,
the proxy server would be bypassed and the test would fail.
This will allow subclasses thereof to augment some of the behaviour.
@olivierdagenais olivierdagenais merged commit 4bde59a into master Apr 14, 2016
@olivierdagenais olivierdagenais deleted the device_flow branch April 14, 2016 03:34
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants