Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OATS-CADC
ac
Commits
09fc6d35
Commit
09fc6d35
authored
Feb 01, 2016
by
Dustin Jenkins
Browse files
Story 1869: Code clean up.
parent
22bc2eb9
Changes
1
Hide whitespace changes
Inline
Side-by-side
cadcAccessControl-Server/src/ca/nrc/cadc/ac/server/ACScopeValidator.java
View file @
09fc6d35
...
...
@@ -87,22 +87,14 @@ public class ACScopeValidator extends DelegationToken.ScopeValidator
public
ACScopeValidator
()
{
}
@Override
public
void
verifyScope
(
URI
scope
,
String
requestURI
)
public
void
verifyScope
(
URI
scope
,
String
requestURI
)
throws
InvalidDelegationTokenException
{
try
if
(!
requestURI
.
endsWith
(
RESET_PASSWORD_SCOPE
)
&&
!
scope
.
toASCIIString
().
equals
(
RESET_PASSWORD_SCOPE
))
{
// validate service endpoint
if
((
requestURI
.
endsWith
(
RESET_PASSWORD_SCOPE
))
&&
(
scope
.
toASCIIString
().
equals
(
RESET_PASSWORD_SCOPE
)))
{
return
;
// OK
}
throw
new
InvalidDelegationTokenException
(
"invalid scope: "
+
scope
);
}
catch
(
Exception
ignore
)
{
}
throw
new
InvalidDelegationTokenException
(
"invalid scope: "
+
scope
);
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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