This is an alternative site for discovering Elm packages. You may be looking for the official Elm package site instead.
README OAuth

OAuth.Config

This library contains several ready-made server configs for various OAuth 2.0 providers

google : OAuth.ServerConfig

Base configuration for Google endpoints.

Based on https://developers.google.com/identity/protocols/OAuth2UserAgent .

facebook : OAuth.ServerConfig

Base configuration for Facebook endpoints.

Based on https://developers.facebook.com/docs/facebook-login/manually-build-a-login-flow .

digitalOcean : OAuth.ServerConfig

Base configuration for DigitalOcean endpoints.

Based on https://developers.digitalocean.com/documentation/oauth/#client-application-flow

Note: Verification does not seem to be provided by this endpoint.

gitHub : OAuth.ServerConfig

Base configuration for GitHub endpoints.

Based on https://developer.github.com/v3/oauth/ .

Note: Does not currently work. It seems that GitHub does not currently support web-only flow.

stackExchange : OAuth.ServerConfig

Base configuration for StackExchange endpoints.

Based on https://api.stackexchange.com/docs/authentication .

Note: Verification does not seem to be provided by this endpoint.

module OAuth.Config exposing (..)

{-| This library contains several ready-made server configs for various OAuth 2.0 providers

@docs google, facebook, digitalOcean, gitHub, stackExchange

-}

import OAuth


{-| Base configuration for Google endpoints.

Based on https://developers.google.com/identity/protocols/OAuth2UserAgent .
-}
google : OAuth.ServerConfig
google =
    { authorizeUrl = "https://accounts.google.com/o/oauth2/v2/auth"
    , tokenUrl = ""
    , validateUrl = "https://www.googleapis.com/oauth2/v3/tokeninfo"
    }


{-| Base configuration for Facebook endpoints.

Based on https://developers.facebook.com/docs/facebook-login/manually-build-a-login-flow .
-}
facebook : OAuth.ServerConfig
facebook =
    { authorizeUrl = "https://www.facebook.com/dialog/oauth"
    , tokenUrl = ""
    , validateUrl = "https://graph.facebook.com/debug_token"
    }


{-| Base configuration for DigitalOcean endpoints.

Based on https://developers.digitalocean.com/documentation/oauth/#client-application-flow

Note: Verification does not seem to be provided by this endpoint.
-}
digitalOcean : OAuth.ServerConfig
digitalOcean =
    { authorizeUrl = "https://cloud.digitalocean.com/v1/oauth/authorize"
    , tokenUrl = ""
    , validateUrl = ""
    }


{-| Base configuration for GitHub endpoints.

Based on https://developer.github.com/v3/oauth/ .

Note: Does not currently work. It seems that GitHub does not currently support web-only flow.
-}
gitHub : OAuth.ServerConfig
gitHub =
    { authorizeUrl = "https://github.com/login/oauth/authorize"
    , tokenUrl = ""
    , validateUrl = ""
    }


{-| Base configuration for StackExchange endpoints.

Based on https://api.stackexchange.com/docs/authentication .

Note: Verification does not seem to be provided by this endpoint.
-}
stackExchange : OAuth.ServerConfig
stackExchange =
    { authorizeUrl = "https://stackexchange.com/oauth/dialog"
    , tokenUrl = ""
    , validateUrl = ""
    }