asteroid icon indicating copy to clipboard operation
asteroid copied to clipboard

oauth.tools for demo app and redirect url

Open jschoch opened this issue 6 years ago • 3 comments

It looks like you need to add the oauth.tool redirect url to lib/asteroid/application.ex to get it working.

jschoch avatar Aug 31 '19 19:08 jschoch

Which branch are you talking about?

The redirect URIs a present on the demo_auth_workflow_gigalixir branch (https://github.com/tanguilp/asteroid/blob/demo_auth_workflow_gigalixir/lib/asteroid/application.ex#L75).

On the demo_auth_workflow_gigalixir it is not, because 1) the discovery document is not reachable from oauth2.tools (which is NOT a full-javascript app, the backend does the heavy work) and 2) as far as I remember oauth2.tools doesn't want to redirect to localhost (but not 100% sure about it, would worth checking again)

tanguilp avatar Sep 01 '19 14:09 tanguilp

I was referring to the demo_auth_workflow branch. discovery does not work but you can input the values and send requests after you add the callback.

jschoch avatar Sep 02 '19 00:09 jschoch

Indeed, but the documentation doesn't refer to oauth.tools in the "Run locally" section. And at that point, I guess the developer would have enough knowledge to add the callbacks himself?

Still considering adding it or not.

tanguilp avatar Sep 03 '19 11:09 tanguilp