Skip to content

Commit

Permalink
Auto format Select_and_Set_MFA_In_Config (#291)
Browse files Browse the repository at this point in the history
Auto format Select_and_Set_MFA_In_Config

Co-authored-by: DotNet Format Bot <dotnet-format-bot@github.d2l>
Co-authored-by: DannyDaoBoYang <34634047+DannyDaoBoYang@users.noreply.github.com>
  • Loading branch information
3 people authored May 18, 2023
1 parent 3ea530c commit ea5de90
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/D2L.Bmx/Authenticate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,11 @@ private static List<OktaSessionCache> ReadOktaSessionCacheFile() {
var currTime = DateTimeOffset.Now;
return sourceCache.Where( session => session.ExpiresAt > currTime ).ToList();
}
private static int MatchdefaultMfaoption( MfaOption[] mfaOptions,
string defaultMfaProvider, string defaultMfamethod ) {

private static int MatchdefaultMfaoption(
MfaOption[] mfaOptions,
string defaultMfaProvider,
string defaultMfamethod ) {
return Array.IndexOf( mfaOptions,
Array.Find( mfaOptions, option =>
option.Provider == defaultMfaProvider && option.Name == defaultMfamethod
Expand Down

0 comments on commit ea5de90

Please sign in to comment.