Skip to content
This repository was archived by the owner on Mar 9, 2022. It is now read-only.
This repository was archived by the owner on Mar 9, 2022. It is now read-only.

Callback URL only uses http  #23

@bobber205

Description

@bobber205

Not 100% sure this is a issue specific to this project exactly but I am opening a PR to reference to if I submit a change to the README.md file.

/**
 * Starts Twitter sign-in process for adding a user subscription
 **/
app.get('/subscriptions/add', passport.authenticate('twitter', {
  callbackURL: '/callbacks/addsub'
}));

/**
 * Starts Twitter sign-in process for removing a user subscription
 **/
app.get('/subscriptions/remove', passport.authenticate('twitter', {
  callbackURL: '/callbacks/removesub'
}));

I deployed a forked unchanged version of this project pretty easily to heroku.
For argument's sake the url is https://webhook-manager.herokuapp.com

For some reason the callback url submitted in the code above doesn't specify https. So you have to add http://webhook-manager.herokuapp.com/callbacks/addsub (http) to your callback url set for everything to work (same with /removesub)

I'm happy to add this to the README.md unless I am missing something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions