Skip to content

Instantly share code, notes, and snippets.

@rwehresmann
Created August 25, 2019 14:26
Show Gist options
  • Select an option

  • Save rwehresmann/0e63c7b92dab486b3d51301c44f02345 to your computer and use it in GitHub Desktop.

Select an option

Save rwehresmann/0e63c7b92dab486b3d51301c44f02345 to your computer and use it in GitHub Desktop.
class Auth0Controller < ApplicationController
def authentication
redirect_to(
"https://#{ENV.fetch('AUTH0_DOMAIN')}/authorize?" +
"client_id=#{ENV.fetch('AUTH0_CLIENT_ID')}&" +
"response_type=code&" +
"redirect_uri=#{URI.encode(auth_callback_url)}"
)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment