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

Cannot change redirect uri relative path #897

Open
gonziesc opened this issue Aug 14, 2020 · 0 comments
Open

Cannot change redirect uri relative path #897

gonziesc opened this issue Aug 14, 2020 · 0 comments
Labels
type: question Request for information or clarification. Not an issue.

Comments

@gonziesc
Copy link

gonziesc commented Aug 14, 2020

Hello!

I was trying to change the redirect_uri from the Google calendar API. I can change the base url but I think it is impossible to change the relative path ouath2callback. Inspecting the code I found:

authorizer = Google::Auth::UserAuthorizer.new(client_id, scope, token_store)

And in the user authorization class:

      def initialize client_id, scope, token_store, callback_uri = nil
        raise NIL_CLIENT_ID_ERROR if client_id.nil?
        raise NIL_SCOPE_ERROR if scope.nil?

        @client_id = client_id
        @scope = Array(scope)
        @token_store = token_store
        @callback_uri = callback_uri || "/oauth2callback"
      end

So the callback uri is default to that value and I can not modify it using this library.

Is this the expected behaviour? Should I always use ouath2callback for the callback path?

Thanks in advance.

@yoshi-automation yoshi-automation added the triage me I really want to be triaged. label Aug 15, 2020
@gonziesc gonziesc changed the title Cannot change Cannot change redirect uri relative path Aug 17, 2020
@yoshi-automation yoshi-automation added the 🚨 This issue needs some love. label Aug 19, 2020
@danoscarmike danoscarmike added type: question Request for information or clarification. Not an issue. and removed 🚨 This issue needs some love. triage me I really want to be triaged. labels Aug 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: question Request for information or clarification. Not an issue.
Projects
None yet
Development

No branches or pull requests

3 participants