Class: Doorkeeper::OAuth::NonStandard

Inherits:
Object
  • Object
show all
Defined in:
lib/doorkeeper/oauth/nonstandard.rb

Constant Summary collapse

IETF_WG_OAUTH2_OOB =

When you use this value, your application can then detect that the page has loaded, and can read the title of the HTML page to obtain the authorization code. It is then up to your application to close the browser window if you want to ensure that the user never sees the page that contains the authorization code. The mechanism for doing this varies from platform to platform.

If your platform doesn't allow you to detect that the page has loaded or read the title of the page, you can have the user paste the code back to your application, as prompted by the text in the confirmation page that the OAuth 2.0 server generates.

"urn:ietf:wg:oauth:2.0:oob"
IETF_WG_OAUTH2_OOB_AUTO =

This is identical to urn:ietf:wg:oauth:2.0:oob, but the text in the confirmation page that the OAuth 2.0 server generates won't instruct the user to copy the authorization code, but instead will simply ask the user to close the window.

This is useful when your application reads the title of the HTML page (by checking window titles on the desktop, for example) to obtain the authorization code, but can't close the page on its own.

"urn:ietf:wg:oauth:2.0:oob:auto"
IETF_WG_OAUTH2_OOB_METHODS =
[IETF_WG_OAUTH2_OOB, IETF_WG_OAUTH2_OOB_AUTO].freeze