summaryrefslogtreecommitdiff
path: root/lib/Travelynx/Controller
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Travelynx/Controller')
-rw-r--r--lib/Travelynx/Controller/Traewelling.pm7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/Travelynx/Controller/Traewelling.pm b/lib/Travelynx/Controller/Traewelling.pm
index e14872d..f1f24e7 100644
--- a/lib/Travelynx/Controller/Traewelling.pm
+++ b/lib/Travelynx/Controller/Traewelling.pm
@@ -25,7 +25,12 @@ sub oauth {
my $oa = $self->config->{traewelling}{oauth};
return $self->oauth2->get_token_p(
- traewelling => { scope => 'read-statuses write-statuses' } )->then(
+ traewelling => {
+ redirect_uri => $self->base_url_for('/oauth/traewelling')
+ ->to_abs->scheme('https')->to_string,
+ scope => 'read-statuses write-statuses'
+ }
+ )->then(
sub {
my ($provider) = @_;
if ( not defined $provider ) {