Skip to content
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

ueberauth customize token_url #116

Open
spinettaro opened this issue Apr 6, 2020 · 0 comments
Open

ueberauth customize token_url #116

spinettaro opened this issue Apr 6, 2020 · 0 comments

Comments

@spinettaro
Copy link

Hi guys,
I’m using ueberauth framework with auth0 Strategy ( Authorization Code Flow to be specific). Do you know if there is a way to customise token_url? I mean looking at configuration is not possible to have token url on a different domain…

domain = get_config_value(configs[:domain])
    client_id = get_config_value(configs[:client_id])
    client_secret = get_config_value(configs[:client_secret])
    

    serializers = %{
      "application/json" => Ueberauth.json_library(otp_app)
    }

    opts = [
      strategy: __MODULE__,
      site: "https://#{domain}",
      authorize_url: "https://#{domain}/authorize",
      token_url: "https://#{domain}/oauth/token",
      userinfo_url: "https://#{domain}/userinfo",
      client_id: client_id,
      client_secret: client_secret,
      serializers: serializers
    ]

what about if I have it on a different domain? is it wrong? Because looks like is not difficult to implement a way to customize it, but the fact that there isn’t make me doubtful

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant