Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
atlas
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dataplatform
atlas
Commits
b919d3d0
Commit
b919d3d0
authored
6 years ago
by
Madhan Neethiraj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-2986: updated AtlasClient to skip doAs query parameter when username is…
ATLAS-2986: updated AtlasClient to skip doAs query parameter when username is same as the logged in user
parent
e4921452
master
No related merge requests found
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
SecureClientUtils.java
...ain/java/org/apache/atlas/security/SecureClientUtils.java
+3
-2
No files found.
client/common/src/main/java/org/apache/atlas/security/SecureClientUtils.java
View file @
b919d3d0
...
...
@@ -80,9 +80,10 @@ public class SecureClientUtils {
(
ugiToUse
.
getAuthenticationMethod
()
==
UserGroupInformation
.
AuthenticationMethod
.
PROXY
)
?
ugiToUse
.
getRealUser
()
:
ugiToUse
;
LOG
.
info
(
"Real User: {}, is from ticket cache? {}"
,
actualUgi
,
actualUgi
.
isLoginTicketBased
());
if
(
StringUtils
.
isEmpty
(
doAsUser
))
{
doAsUser
=
actualUgi
.
getShortUserName
()
;
if
(
StringUtils
.
isEmpty
(
doAsUser
)
||
StringUtils
.
equals
(
doAsUser
,
actualUgi
.
getShortUserName
())
)
{
doAsUser
=
null
;
}
LOG
.
info
(
"doAsUser: {}"
,
doAsUser
);
final
String
finalDoAsUser
=
doAsUser
;
httpURLConnectionFactory
=
new
HttpURLConnectionFactory
()
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment