From 3060b3b7aa6a0fc3c0adc6da1197c782cee9274e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Jos=C3=A9=20V=C3=A1zquez?= Date: Wed, 20 Dec 2017 09:57:16 +0100 Subject: [PATCH] wip gitlab: oauth and private tokens (I) --- core/src/main/scala/Config.scala | 2 +- etc/development/http/http.dev.cfg | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/scala/Config.scala b/core/src/main/scala/Config.scala index c7287dc5..6d8f55a0 100644 --- a/core/src/main/scala/Config.scala +++ b/core/src/main/scala/Config.scala @@ -140,7 +140,7 @@ object ScmConfig { s"$oauth/token" val loginEndpoint: String = - s"$oauth/login/oauth/authorize?client_id=$clientId&redirect_uri=${encodeURI(redirectUri)}&scope=$scope" + s"$oauth/authorize?client_id=$clientId&redirect_uri=${encodeURI(redirectUri)}&response_type=code" val userEndpoint: String = s"$api/user" diff --git a/etc/development/http/http.dev.cfg b/etc/development/http/http.dev.cfg index eff73432..7cfeafaa 100644 --- a/etc/development/http/http.dev.cfg +++ b/etc/development/http/http.dev.cfg @@ -39,7 +39,7 @@ nelson { # with github. when set to `true` this will force the system to "auto-auth" # the system based on local environment variables. This really is for # development use only! - use-environment-session = true + use-environment-session = false # These provide out-of-box values for development, and mean that # all development environments can decrypt and verify tokens