This is an alternative site for discovering Elm packages. You may be looking for the official Elm package site instead.
OAuth client
version 3.0.0
license MIT
native-modules False
elm-version 0.18.0 <= v < 0.19.0
Tag 3.0.0
Committed At 2017-01-17 17:36:59 UTC
elm-lang/navigation 2.0.1 <= v < 3.0.0 2.1.0
elm-lang/http 1.0.0 <= v < 2.0.0 1.0.0
elm-lang/core 5.0.0 <= v < 6.0.0 5.1.1



An OAuth client for elm.


  • Only Implicit OAuth 2.0 web-based flow (no client secret) is supported.
  • Refreshing tokens is not supported (this is only available in the Authorization Code flow, which requires the cooperation of a server and cannot be implemented purely client-side).
  • Tokens normally expire after one hour (actual length depends on the provider used).
  • Authenticating requires navigating to a URL on a different domain, and that is only possible by letting the user click on a plain HTML link (<a href="...">); this means that the browser will navigate to a different page and the current state of the application will be lost.
  • Passing a state (or nonce) to the authentication request in order to prevent request forgery attacks is not supported (this is because it is not possible to keep such generated state in memory and verify it after the authentication callback, since the application is restarted in the meanwhile and all its state is lost).

See also: