From 5d3a4eda0b219e9229867b3bfa1565eac695f1f4 Mon Sep 17 00:00:00 2001 From: Jose Lezama Gonzalez Date: Thu, 7 Apr 2016 07:55:36 -0430 Subject: [PATCH] Added external token to can access Exteranl APIs --- app/controllers/devise_token_auth/sessions_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/devise_token_auth/sessions_controller.rb b/app/controllers/devise_token_auth/sessions_controller.rb index 1da523e0b..2f1cb99e6 100644 --- a/app/controllers/devise_token_auth/sessions_controller.rb +++ b/app/controllers/devise_token_auth/sessions_controller.rb @@ -68,8 +68,8 @@ def create profile:{ include: { functionalities:{} } - } - }) + } + }).merge("external_token" => {client:@client_id, token: @external_token }) } else render json: {