-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
basic functionality of replay log working #62
base: main
Are you sure you want to change the base?
Conversation
public string Url; | ||
public string Claims; | ||
|
||
private Regex scpRegex = new Regex(@"scp=([^\;]+)", RegexOptions.Compiled); |
Check notice
Code scanning / CodeQL
Missed 'readonly' opportunity Note
public string Claims; | ||
|
||
private Regex scpRegex = new Regex(@"scp=([^\;]+)", RegexOptions.Compiled); | ||
private Regex rolesRegex = new Regex(@"roles=([^\;]+)", RegexOptions.Compiled); |
Check notice
Code scanning / CodeQL
Missed 'readonly' opportunity Note
|
||
private Regex scpRegex = new Regex(@"scp=([^\;]+)", RegexOptions.Compiled); | ||
private Regex rolesRegex = new Regex(@"roles=([^\;]+)", RegexOptions.Compiled); | ||
private Regex roleRegex = new Regex("\"(.*?)\"", RegexOptions.Compiled); |
Check notice
Code scanning / CodeQL
Missed 'readonly' opportunity Note
} catch (Exception e) { | ||
Console.WriteLine("Failed to add resource to tree: " + resource.Key + " " + e.Message); | ||
} |
Check notice
Code scanning / CodeQL
Generic catch clause Note
[Fact] | ||
public void ParseLog() | ||
{ | ||
var logstream = new FileStream(@"C:\Users\darrmi\src\github\microsoftgraph\kibali\graphlog.json", FileMode.Open); |
Check warning
Code scanning / CodeQL
Missing Dispose call on local IDisposable Warning test
|
||
if (failReason == null ) | ||
{ | ||
acceptablePermissions = acceptableClaims.Select(c => c.Permission).ToList(); |
Check warning
Code scanning / CodeQL
Dereferenced variable may be null Warning
acceptableClaims
this
failReason = "No matching method"; | ||
} | ||
|
||
if (failReason == null && !supportedSchemes.TryGetValue(entry.Scheme, out acceptableClaims)) |
Check warning
Code scanning / CodeQL
Dereferenced variable may be null Warning
This change as the
replaylog
command to the KibaliToolUsing a logfile as described in the logentry.cs file, this command will compare the permissions required by the model vs permissions used by requests recorded in the log.
Microsoft Reviewers: Open in CodeFlow