-
-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
617 changed files
with
27,798 additions
and
28,412 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,16 @@ | ||
using Wino.Core.Domain.Enums; | ||
using Wino.Core.Domain.Interfaces; | ||
|
||
namespace Wino.Authentication | ||
namespace Wino.Authentication; | ||
|
||
public abstract class BaseAuthenticator | ||
{ | ||
public abstract class BaseAuthenticator | ||
{ | ||
public abstract MailProviderType ProviderType { get; } | ||
protected IAuthenticatorConfig AuthenticatorConfig { get; } | ||
public abstract MailProviderType ProviderType { get; } | ||
protected IAuthenticatorConfig AuthenticatorConfig { get; } | ||
|
||
protected BaseAuthenticator(IAuthenticatorConfig authenticatorConfig) | ||
{ | ||
protected BaseAuthenticator(IAuthenticatorConfig authenticatorConfig) | ||
{ | ||
|
||
AuthenticatorConfig = authenticatorConfig; | ||
} | ||
AuthenticatorConfig = authenticatorConfig; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,32 @@ | ||
using Wino.Core.Domain.Interfaces; | ||
|
||
namespace Wino.Calendar.Services | ||
namespace Wino.Calendar.Services; | ||
|
||
public class CalendarAuthenticatorConfig : IAuthenticatorConfig | ||
{ | ||
public class CalendarAuthenticatorConfig : IAuthenticatorConfig | ||
{ | ||
public string OutlookAuthenticatorClientId => "b19c2035-d740-49ff-b297-de6ec561b208"; | ||
public string OutlookAuthenticatorClientId => "b19c2035-d740-49ff-b297-de6ec561b208"; | ||
|
||
public string[] OutlookScope => new string[] | ||
{ | ||
"Calendars.Read", | ||
"Calendars.Read.Shared", | ||
"offline_access", | ||
"Calendars.ReadBasic", | ||
"Calendars.ReadWrite", | ||
"Calendars.ReadWrite.Shared", | ||
"User.Read" | ||
}; | ||
public string[] OutlookScope => new string[] | ||
{ | ||
"Calendars.Read", | ||
"Calendars.Read.Shared", | ||
"offline_access", | ||
"Calendars.ReadBasic", | ||
"Calendars.ReadWrite", | ||
"Calendars.ReadWrite.Shared", | ||
"User.Read" | ||
}; | ||
|
||
public string GmailAuthenticatorClientId => "973025879644-s7b4ur9p3rlgop6a22u7iuptdc0brnrn.apps.googleusercontent.com"; | ||
public string GmailAuthenticatorClientId => "973025879644-s7b4ur9p3rlgop6a22u7iuptdc0brnrn.apps.googleusercontent.com"; | ||
|
||
public string[] GmailScope => new string[] | ||
{ | ||
"https://www.googleapis.com/auth/calendar", | ||
"https://www.googleapis.com/auth/calendar.events", | ||
"https://www.googleapis.com/auth/calendar.settings.readonly", | ||
"https://www.googleapis.com/auth/userinfo.profile", | ||
"https://www.googleapis.com/auth/userinfo.email" | ||
}; | ||
public string[] GmailScope => new string[] | ||
{ | ||
"https://www.googleapis.com/auth/calendar", | ||
"https://www.googleapis.com/auth/calendar.events", | ||
"https://www.googleapis.com/auth/calendar.settings.readonly", | ||
"https://www.googleapis.com/auth/userinfo.profile", | ||
"https://www.googleapis.com/auth/userinfo.email" | ||
}; | ||
|
||
public string GmailTokenStoreIdentifier => "WinoCalendarGmailTokenStore"; | ||
} | ||
public string GmailTokenStoreIdentifier => "WinoCalendarGmailTokenStore"; | ||
} |
Oops, something went wrong.