This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule Shopify.Oauth do | |
@moduledoc """ | |
An OAuth2 strategy for Shopify. | |
Based on the OAuth2 strategy for GitHub by Sonny Scroggin | |
in https://github.com/scrogson/oauth2_example | |
""" | |
use OAuth2.Strategy | |
alias OAuth2.Strategy.AuthCode | |
alias OAuth2.Request |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The Nginx configuration based on https://coderwall.com/p/rlguog | |
http { | |
ssl_certificate server.crt; | |
ssl_certificate_key server.key; | |
ssl_session_timeout 15m; | |
ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2; | |
ssl_prefer_server_ciphers on; | |
ssl_session_cache shared:SSL:10m; |