refactor(backend): use explicit types instead of var by default
This commit is contained in:
parent
bc7fd6d804
commit
649988db25
52 changed files with 506 additions and 420 deletions
|
@ -69,8 +69,8 @@ public static class AuthUtils
|
|||
|
||||
public static bool ValidateScopes(Application application, string[] scopes)
|
||||
{
|
||||
var expandedScopes = scopes.ExpandScopes();
|
||||
var appScopes = application.Scopes.ExpandAppScopes();
|
||||
string[] expandedScopes = scopes.ExpandScopes();
|
||||
string[] appScopes = application.Scopes.ExpandAppScopes();
|
||||
return !expandedScopes.Except(appScopes).Any();
|
||||
}
|
||||
|
||||
|
@ -78,7 +78,7 @@ public static class AuthUtils
|
|||
{
|
||||
try
|
||||
{
|
||||
var scheme = new Uri(uri).Scheme;
|
||||
string scheme = new Uri(uri).Scheme;
|
||||
return !ForbiddenSchemes.Contains(scheme);
|
||||
}
|
||||
catch
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue