-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support auth0 ex #6
Conversation
lib/graphql.ex
Outdated
@@ -49,6 +55,15 @@ defmodule BridgeEx.Graphql do | |||
else | |||
defp format_response({ret, response}), do: {ret, response} | |||
end | |||
|
|||
defp with_authorization_headers(headers, nil), do: {:ok, headers} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Visto che sei in una macro non vale la pena di compilare direttamete la funzione come fa sopra?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Grazie ❤️
Se ho capito bene il punto, dovrebbe essere risolto con 105a71f
6abdfba
to
105a71f
Compare
a377227
to
82c37b9
Compare
This PR adds support for authentication of machine to machine communication via
auth0_ex
.To use this feature, clients need to set
audience: "target-service"
as an option when theyuse
the bridge.For the moment we approached testing with a black-box approach, in order to limit the changes to the previous implementation.
The build on drone is currently broken, as
auth0_ex
is a private repository and drone cannot reach it - until we fix it.NOTE: This PR also fixes a typo in the configuration of the bridge, from
max_attemps
tomax_attempts
: we need to make sure that current users are not using the "typoed" configuration before updating this library for them.