This is an automated email from the ASF dual-hosted git repository.

zrhoffman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git


The following commit(s) were added to refs/heads/master by this push:
     new 79219bf6ac Add Scope Parameter to Oauth Login (#7609)
79219bf6ac is described below

commit 79219bf6ac378ce3e6a9fd71e72d02043c59b377
Author: Dylan Souza <[email protected]>
AuthorDate: Wed Jul 5 14:18:28 2023 -0700

    Add Scope Parameter to Oauth Login (#7609)
    
    Co-authored-by: dsouza550 <dsouza550>
---
 CHANGELOG.md                                                   | 1 +
 traffic_portal/app/src/modules/public/login/LoginController.js | 1 +
 2 files changed, 2 insertions(+)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 843149f7eb..98871c886a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,7 @@ The format is based on [Keep a 
Changelog](http://keepachangelog.com/en/1.0.0/).
 
 ## [unreleased]
 ### Added
+- [#7609](https://github.com/apache/trafficcontrol/pull/7609) *Traffic Portal* 
Added Scope Query Param to SSO login. 
 - [#7450](https://github.com/apache/trafficcontrol/pull/7450) *Traffic Ops* 
Removed hypnotoad section and added listen field to traffic_ops_golang section 
in order to simplify cdn config.
 - [#7290](https://github.com/apache/trafficcontrol/pull/7302) *Traffic 
Monitor* Update TM results with hostname from via header, syncronize health on 
caches with same service address
 - [#7291](https://github.com/apache/trafficcontrol/pull/7291) *Traffic Ops* 
Extended Layered Profile feature to aggregate parameters for all server 
profiles.
diff --git a/traffic_portal/app/src/modules/public/login/LoginController.js 
b/traffic_portal/app/src/modules/public/login/LoginController.js
index 9936cc8c7b..ba4f24ded1 100644
--- a/traffic_portal/app/src/modules/public/login/LoginController.js
+++ b/traffic_portal/app/src/modules/public/login/LoginController.js
@@ -62,6 +62,7 @@ var LoginController = function($scope, $log, $uibModal, 
$location, authService,
         continueURL.searchParams.append(redirectUriParamKey, redirectUriParam);
         continueURL.searchParams.append('client_id', 
propertiesModel.properties.oAuth.clientId);
         continueURL.searchParams.append('response_type', 'code');
+        continueURL.searchParams.append('scope', 'openid profile email');
 
         localStorage.setItem('redirectUri', redirectUriParam.toString());
         localStorage.setItem('redirectParam', redirectParam);

Reply via email to