diff --git a/Yavsc/Interfaces/IIdentified.cs b/Yavsc.Api/Interfaces/IIdentified.cs
similarity index 100%
rename from Yavsc/Interfaces/IIdentified.cs
rename to Yavsc.Api/Interfaces/IIdentified.cs
diff --git a/Yavsc/Interfaces/IPerformerSpecified.cs b/Yavsc.Api/Interfaces/IPerformerSpecified.cs
similarity index 100%
rename from Yavsc/Interfaces/IPerformerSpecified.cs
rename to Yavsc.Api/Interfaces/IPerformerSpecified.cs
diff --git a/Yavsc/Interfaces/IRating.cs b/Yavsc.Api/Interfaces/IRating.cs
similarity index 100%
rename from Yavsc/Interfaces/IRating.cs
rename to Yavsc.Api/Interfaces/IRating.cs
diff --git a/Yavsc/Interfaces/ITitle.cs b/Yavsc.Api/Interfaces/ITitle.cs
similarity index 100%
rename from Yavsc/Interfaces/ITitle.cs
rename to Yavsc.Api/Interfaces/ITitle.cs
diff --git a/Yavsc/Model/Access/Publishing.cs b/Yavsc.Api/Model/Access/Publishing.cs
similarity index 97%
rename from Yavsc/Model/Access/Publishing.cs
rename to Yavsc.Api/Model/Access/Publishing.cs
index 7dc1bf1e..a47c69ef 100644
--- a/Yavsc/Model/Access/Publishing.cs
+++ b/Yavsc.Api/Model/Access/Publishing.cs
@@ -21,7 +21,7 @@
-namespace Yavsc.Models
+namespace Yavsc.Models.Access
{
///
diff --git a/Yavsc/Model/Auth/ApplicationTypes.cs b/Yavsc.Api/Model/Auth/ApplicationTypes.cs
similarity index 100%
rename from Yavsc/Model/Auth/ApplicationTypes.cs
rename to Yavsc.Api/Model/Auth/ApplicationTypes.cs
diff --git a/Yavsc/Model/Auth/Client.cs b/Yavsc.Api/Model/Auth/Client.cs
similarity index 100%
rename from Yavsc/Model/Auth/Client.cs
rename to Yavsc.Api/Model/Auth/Client.cs
diff --git a/Yavsc/Model/Auth/ExternalViewModel.cs b/Yavsc.Api/Model/Auth/ExternalViewModel.cs
similarity index 100%
rename from Yavsc/Model/Auth/ExternalViewModel.cs
rename to Yavsc.Api/Model/Auth/ExternalViewModel.cs
diff --git a/Yavsc/Model/Auth/OAuth2Tokens.cs b/Yavsc.Api/Model/Auth/OAuth2Tokens.cs
similarity index 100%
rename from Yavsc/Model/Auth/OAuth2Tokens.cs
rename to Yavsc.Api/Model/Auth/OAuth2Tokens.cs
diff --git a/Yavsc/Model/Auth/RefreshToken.cs b/Yavsc.Api/Model/Auth/RefreshToken.cs
similarity index 100%
rename from Yavsc/Model/Auth/RefreshToken.cs
rename to Yavsc.Api/Model/Auth/RefreshToken.cs
diff --git a/Yavsc/Model/Auth/Scope.cs b/Yavsc.Api/Model/Auth/Scope.cs
similarity index 100%
rename from Yavsc/Model/Auth/Scope.cs
rename to Yavsc.Api/Model/Auth/Scope.cs
diff --git a/Yavsc/Model/Auth/UserCredentials.cs b/Yavsc.Api/Model/Auth/UserCredentials.cs
similarity index 100%
rename from Yavsc/Model/Auth/UserCredentials.cs
rename to Yavsc.Api/Model/Auth/UserCredentials.cs
diff --git a/Yavsc/Model/Bank/AccountBalance.cs b/Yavsc.Api/Model/Bank/AccountBalance.cs
similarity index 100%
rename from Yavsc/Model/Bank/AccountBalance.cs
rename to Yavsc.Api/Model/Bank/AccountBalance.cs
diff --git a/Yavsc/Model/Bank/BalanceImpact.cs b/Yavsc.Api/Model/Bank/BalanceImpact.cs
similarity index 100%
rename from Yavsc/Model/Bank/BalanceImpact.cs
rename to Yavsc.Api/Model/Bank/BalanceImpact.cs
diff --git a/Yavsc/Model/Billing/Command.cs b/Yavsc.Api/Model/Billing/Command.cs
similarity index 100%
rename from Yavsc/Model/Billing/Command.cs
rename to Yavsc.Api/Model/Billing/Command.cs
diff --git a/Yavsc/Model/Billing/CommandLine.cs b/Yavsc.Api/Model/Billing/CommandLine.cs
similarity index 100%
rename from Yavsc/Model/Billing/CommandLine.cs
rename to Yavsc.Api/Model/Billing/CommandLine.cs
diff --git a/Yavsc/Model/Billing/Estimate.cs b/Yavsc.Api/Model/Billing/Estimate.cs
similarity index 100%
rename from Yavsc/Model/Billing/Estimate.cs
rename to Yavsc.Api/Model/Billing/Estimate.cs
diff --git a/Yavsc/Model/Billing/EstimateAgreement.cs b/Yavsc.Api/Model/Billing/EstimateAgreement.cs
similarity index 100%
rename from Yavsc/Model/Billing/EstimateAgreement.cs
rename to Yavsc.Api/Model/Billing/EstimateAgreement.cs
diff --git a/Yavsc/Model/Billing/NominatvieCommande.cs b/Yavsc.Api/Model/Billing/NominatvieCommande.cs
similarity index 100%
rename from Yavsc/Model/Billing/NominatvieCommande.cs
rename to Yavsc.Api/Model/Billing/NominatvieCommande.cs
diff --git a/Yavsc/Model/Billing/Service/ChatBilling.cs b/Yavsc.Api/Model/Billing/Service/ChatBilling.cs
similarity index 100%
rename from Yavsc/Model/Billing/Service/ChatBilling.cs
rename to Yavsc.Api/Model/Billing/Service/ChatBilling.cs
diff --git a/Yavsc/Model/Billing/histoestim.cs b/Yavsc.Api/Model/Billing/histoestim.cs
similarity index 100%
rename from Yavsc/Model/Billing/histoestim.cs
rename to Yavsc.Api/Model/Billing/histoestim.cs
diff --git a/Yavsc/Model/Billing/satisfaction.cs b/Yavsc.Api/Model/Billing/satisfaction.cs
similarity index 100%
rename from Yavsc/Model/Billing/satisfaction.cs
rename to Yavsc.Api/Model/Billing/satisfaction.cs
diff --git a/Yavsc/Model/Billing/writtings.cs b/Yavsc.Api/Model/Billing/writtings.cs
similarity index 100%
rename from Yavsc/Model/Billing/writtings.cs
rename to Yavsc.Api/Model/Billing/writtings.cs
diff --git a/Yavsc/Model/Billing/wrtags.cs b/Yavsc.Api/Model/Billing/wrtags.cs
similarity index 100%
rename from Yavsc/Model/Billing/wrtags.cs
rename to Yavsc.Api/Model/Billing/wrtags.cs
diff --git a/Yavsc/Model/Blog/Blog.cs b/Yavsc.Api/Model/Blog/Blog.cs
similarity index 100%
rename from Yavsc/Model/Blog/Blog.cs
rename to Yavsc.Api/Model/Blog/Blog.cs
diff --git a/Yavsc/Model/Blog/BlogAccess.cs b/Yavsc.Api/Model/Blog/BlogAccess.cs
similarity index 100%
rename from Yavsc/Model/Blog/BlogAccess.cs
rename to Yavsc.Api/Model/Blog/BlogAccess.cs
diff --git a/Yavsc/Model/Blog/IBlogspotRepository.cs b/Yavsc.Api/Model/Blog/IBlogspotRepository.cs
similarity index 100%
rename from Yavsc/Model/Blog/IBlogspotRepository.cs
rename to Yavsc.Api/Model/Blog/IBlogspotRepository.cs
diff --git a/Yavsc/Model/Blog/comment.cs b/Yavsc.Api/Model/Blog/comment.cs
similarity index 100%
rename from Yavsc/Model/Blog/comment.cs
rename to Yavsc.Api/Model/Blog/comment.cs
diff --git a/Yavsc/Model/Booking/BookQuery.cs b/Yavsc.Api/Model/Booking/BookQuery.cs
similarity index 100%
rename from Yavsc/Model/Booking/BookQuery.cs
rename to Yavsc.Api/Model/Booking/BookQuery.cs
diff --git a/Yavsc/Model/Booking/RendezVous.cs b/Yavsc.Api/Model/Booking/RendezVous.cs
similarity index 100%
rename from Yavsc/Model/Booking/RendezVous.cs
rename to Yavsc.Api/Model/Booking/RendezVous.cs
diff --git a/Yavsc/Model/Calendar/ICalendarManager.cs b/Yavsc.Api/Model/Calendar/ICalendarManager.cs
similarity index 100%
rename from Yavsc/Model/Calendar/ICalendarManager.cs
rename to Yavsc.Api/Model/Calendar/ICalendarManager.cs
diff --git a/Yavsc/Model/Calendar/IFreeDateSet.cs b/Yavsc.Api/Model/Calendar/IFreeDateSet.cs
similarity index 100%
rename from Yavsc/Model/Calendar/IFreeDateSet.cs
rename to Yavsc.Api/Model/Calendar/IFreeDateSet.cs
diff --git a/Yavsc/Model/Calendar/OpenDay.cs b/Yavsc.Api/Model/Calendar/OpenDay.cs
similarity index 100%
rename from Yavsc/Model/Calendar/OpenDay.cs
rename to Yavsc.Api/Model/Calendar/OpenDay.cs
diff --git a/Yavsc/Model/Calendar/Period.cs b/Yavsc.Api/Model/Calendar/Period.cs
similarity index 100%
rename from Yavsc/Model/Calendar/Period.cs
rename to Yavsc.Api/Model/Calendar/Period.cs
diff --git a/Yavsc/Model/Calendar/Periodicity.cs b/Yavsc.Api/Model/Calendar/Periodicity.cs
similarity index 100%
rename from Yavsc/Model/Calendar/Periodicity.cs
rename to Yavsc.Api/Model/Calendar/Periodicity.cs
diff --git a/Yavsc/Model/Calendar/PositionAndKeyphrase.cs b/Yavsc.Api/Model/Calendar/PositionAndKeyphrase.cs
similarity index 100%
rename from Yavsc/Model/Calendar/PositionAndKeyphrase.cs
rename to Yavsc.Api/Model/Calendar/PositionAndKeyphrase.cs
diff --git a/Yavsc/Model/Calendar/ProvidedEvent.cs b/Yavsc.Api/Model/Calendar/ProvidedEvent.cs
similarity index 97%
rename from Yavsc/Model/Calendar/ProvidedEvent.cs
rename to Yavsc.Api/Model/Calendar/ProvidedEvent.cs
index b51f6fa7..837bdf50 100644
--- a/Yavsc/Model/Calendar/ProvidedEvent.cs
+++ b/Yavsc.Api/Model/Calendar/ProvidedEvent.cs
@@ -21,6 +21,7 @@
using System.ComponentModel.DataAnnotations;
using Yavsc.Models.Messaging;
+using Yavsc.Models.Access;
namespace Yavsc.Models.Calendar
{
diff --git a/Yavsc/Model/Calendar/Schedule.cs b/Yavsc.Api/Model/Calendar/Schedule.cs
similarity index 100%
rename from Yavsc/Model/Calendar/Schedule.cs
rename to Yavsc.Api/Model/Calendar/Schedule.cs
diff --git a/Yavsc/Model/Calendar/WeekDay.cs b/Yavsc.Api/Model/Calendar/WeekDay.cs
similarity index 100%
rename from Yavsc/Model/Calendar/WeekDay.cs
rename to Yavsc.Api/Model/Calendar/WeekDay.cs
diff --git a/Yavsc/Model/Edition/IDocument.cs b/Yavsc.Api/Model/Edition/IDocument.cs
similarity index 100%
rename from Yavsc/Model/Edition/IDocument.cs
rename to Yavsc.Api/Model/Edition/IDocument.cs
diff --git a/Yavsc/Model/Google/AuthToken.cs b/Yavsc.Api/Model/Google/AuthToken.cs
similarity index 100%
rename from Yavsc/Model/Google/AuthToken.cs
rename to Yavsc.Api/Model/Google/AuthToken.cs
diff --git a/Yavsc/Model/Google/Calendar/CalendarEventList.cs b/Yavsc.Api/Model/Google/Calendar/CalendarEventList.cs
similarity index 100%
rename from Yavsc/Model/Google/Calendar/CalendarEventList.cs
rename to Yavsc.Api/Model/Google/Calendar/CalendarEventList.cs
diff --git a/Yavsc/Model/Google/Calendar/CalendarList.cs b/Yavsc.Api/Model/Google/Calendar/CalendarList.cs
similarity index 100%
rename from Yavsc/Model/Google/Calendar/CalendarList.cs
rename to Yavsc.Api/Model/Google/Calendar/CalendarList.cs
diff --git a/Yavsc/Model/Google/Calendar/CalendarListEntry.cs b/Yavsc.Api/Model/Google/Calendar/CalendarListEntry.cs
similarity index 100%
rename from Yavsc/Model/Google/Calendar/CalendarListEntry.cs
rename to Yavsc.Api/Model/Google/Calendar/CalendarListEntry.cs
diff --git a/Yavsc/Model/Google/GDate.cs b/Yavsc.Api/Model/Google/GDate.cs
similarity index 100%
rename from Yavsc/Model/Google/GDate.cs
rename to Yavsc.Api/Model/Google/GDate.cs
diff --git a/Yavsc/Model/Google/Messaging/GCMRegisterModel.cs b/Yavsc.Api/Model/Google/Messaging/GCMRegisterModel.cs
similarity index 100%
rename from Yavsc/Model/Google/Messaging/GCMRegisterModel.cs
rename to Yavsc.Api/Model/Google/Messaging/GCMRegisterModel.cs
diff --git a/Yavsc/Model/Google/Messaging/MessageWithPayLoad.cs b/Yavsc.Api/Model/Google/Messaging/MessageWithPayLoad.cs
similarity index 100%
rename from Yavsc/Model/Google/Messaging/MessageWithPayLoad.cs
rename to Yavsc.Api/Model/Google/Messaging/MessageWithPayLoad.cs
diff --git a/Yavsc/Model/Google/Messaging/MessageWithPayloadResponse.cs b/Yavsc.Api/Model/Google/Messaging/MessageWithPayloadResponse.cs
similarity index 100%
rename from Yavsc/Model/Google/Messaging/MessageWithPayloadResponse.cs
rename to Yavsc.Api/Model/Google/Messaging/MessageWithPayloadResponse.cs
diff --git a/Yavsc/Model/Google/People/People.cs b/Yavsc.Api/Model/Google/People/People.cs
similarity index 100%
rename from Yavsc/Model/Google/People/People.cs
rename to Yavsc.Api/Model/Google/People/People.cs
diff --git a/Yavsc/Model/Google/Resource.cs b/Yavsc.Api/Model/Google/Resource.cs
similarity index 100%
rename from Yavsc/Model/Google/Resource.cs
rename to Yavsc.Api/Model/Google/Resource.cs
diff --git a/Yavsc/Model/Google/Tracks/Entity.cs b/Yavsc.Api/Model/Google/Tracks/Entity.cs
similarity index 100%
rename from Yavsc/Model/Google/Tracks/Entity.cs
rename to Yavsc.Api/Model/Google/Tracks/Entity.cs
diff --git a/Yavsc/Model/Google/Tracks/EntityQuery.cs b/Yavsc.Api/Model/Google/Tracks/EntityQuery.cs
similarity index 100%
rename from Yavsc/Model/Google/Tracks/EntityQuery.cs
rename to Yavsc.Api/Model/Google/Tracks/EntityQuery.cs
diff --git a/Yavsc/Model/Identity/ApplicationUser.cs b/Yavsc.Api/Model/Identity/ApplicationUser.cs
similarity index 89%
rename from Yavsc/Model/Identity/ApplicationUser.cs
rename to Yavsc.Api/Model/Identity/ApplicationUser.cs
index d34e8a7b..bb3ded1a 100644
--- a/Yavsc/Model/Identity/ApplicationUser.cs
+++ b/Yavsc.Api/Model/Identity/ApplicationUser.cs
@@ -7,7 +7,6 @@ using System.ComponentModel.DataAnnotations.Schema;
namespace Yavsc.Models
{
- // Add profile data for application users by adding properties to the ApplicationUser class
public class ApplicationUser : IdentityUser
{
diff --git a/Yavsc/Model/Identity/MobileAppDeclaration.cs b/Yavsc.Api/Model/Identity/MobileAppDeclaration.cs
similarity index 100%
rename from Yavsc/Model/Identity/MobileAppDeclaration.cs
rename to Yavsc.Api/Model/Identity/MobileAppDeclaration.cs
diff --git a/Yavsc/Model/Identity/passwrecovery.cs b/Yavsc.Api/Model/Identity/passwrecovery.cs
similarity index 100%
rename from Yavsc/Model/Identity/passwrecovery.cs
rename to Yavsc.Api/Model/Identity/passwrecovery.cs
diff --git a/Yavsc/Model/Market/BaseProduct.cs b/Yavsc.Api/Model/Market/BaseProduct.cs
similarity index 100%
rename from Yavsc/Model/Market/BaseProduct.cs
rename to Yavsc.Api/Model/Market/BaseProduct.cs
diff --git a/Yavsc/Model/Market/Catalog.cs b/Yavsc.Api/Model/Market/Catalog.cs
similarity index 100%
rename from Yavsc/Model/Market/Catalog.cs
rename to Yavsc.Api/Model/Market/Catalog.cs
diff --git a/Yavsc/Model/Market/Product.cs b/Yavsc.Api/Model/Market/Product.cs
similarity index 100%
rename from Yavsc/Model/Market/Product.cs
rename to Yavsc.Api/Model/Market/Product.cs
diff --git a/Yavsc/Model/Market/Service.cs b/Yavsc.Api/Model/Market/Service.cs
similarity index 100%
rename from Yavsc/Model/Market/Service.cs
rename to Yavsc.Api/Model/Market/Service.cs
diff --git a/Yavsc/Model/Messaging/BaseEvent.cs b/Yavsc.Api/Model/Messaging/BaseEvent.cs
similarity index 100%
rename from Yavsc/Model/Messaging/BaseEvent.cs
rename to Yavsc.Api/Model/Messaging/BaseEvent.cs
diff --git a/Yavsc/Model/Messaging/BookQueryEvent.cs b/Yavsc.Api/Model/Messaging/BookQueryEvent.cs
similarity index 100%
rename from Yavsc/Model/Messaging/BookQueryEvent.cs
rename to Yavsc.Api/Model/Messaging/BookQueryEvent.cs
diff --git a/Yavsc/Model/Messaging/CircleEvent.cs b/Yavsc.Api/Model/Messaging/CircleEvent.cs
similarity index 100%
rename from Yavsc/Model/Messaging/CircleEvent.cs
rename to Yavsc.Api/Model/Messaging/CircleEvent.cs
diff --git a/Yavsc/Model/Messaging/Notification.cs b/Yavsc.Api/Model/Messaging/Notification.cs
similarity index 100%
rename from Yavsc/Model/Messaging/Notification.cs
rename to Yavsc.Api/Model/Messaging/Notification.cs
diff --git a/Yavsc/Model/Messaging/YaEvent.cs b/Yavsc.Api/Model/Messaging/YaEvent.cs
similarity index 95%
rename from Yavsc/Model/Messaging/YaEvent.cs
rename to Yavsc.Api/Model/Messaging/YaEvent.cs
index f4d3b89a..f70b8e86 100644
--- a/Yavsc/Model/Messaging/YaEvent.cs
+++ b/Yavsc.Api/Model/Messaging/YaEvent.cs
@@ -32,7 +32,7 @@ namespace Yavsc.Models.Messaging
/// The name of the NF provider.
///
[Display(Name="ProviderName")]
- public string ProviderName { get; set; } = Constants.ApplicationName;
+ public string ProviderName { get; set; }
///
/// The NF provider identifier.
///
diff --git a/Yavsc/Model/Relationship/Circle.cs b/Yavsc.Api/Model/Relationship/Circle.cs
similarity index 100%
rename from Yavsc/Model/Relationship/Circle.cs
rename to Yavsc.Api/Model/Relationship/Circle.cs
diff --git a/Yavsc/Model/Relationship/CircleMember.cs b/Yavsc.Api/Model/Relationship/CircleMember.cs
similarity index 100%
rename from Yavsc/Model/Relationship/CircleMember.cs
rename to Yavsc.Api/Model/Relationship/CircleMember.cs
diff --git a/Yavsc/Model/Relationship/Contact.cs b/Yavsc.Api/Model/Relationship/Contact.cs
similarity index 100%
rename from Yavsc/Model/Relationship/Contact.cs
rename to Yavsc.Api/Model/Relationship/Contact.cs
diff --git a/Yavsc/Model/Relationship/Location.cs b/Yavsc.Api/Model/Relationship/Location.cs
similarity index 100%
rename from Yavsc/Model/Relationship/Location.cs
rename to Yavsc.Api/Model/Relationship/Location.cs
diff --git a/Yavsc/Model/Relationship/Tag.cs b/Yavsc.Api/Model/Relationship/Tag.cs
similarity index 100%
rename from Yavsc/Model/Relationship/Tag.cs
rename to Yavsc.Api/Model/Relationship/Tag.cs
diff --git a/Yavsc/Model/Relationship/Tagged.cs b/Yavsc.Api/Model/Relationship/Tagged.cs
similarity index 100%
rename from Yavsc/Model/Relationship/Tagged.cs
rename to Yavsc.Api/Model/Relationship/Tagged.cs
diff --git a/Yavsc/Model/Workflow/Activity.cs b/Yavsc.Api/Model/Workflow/Activity.cs
similarity index 100%
rename from Yavsc/Model/Workflow/Activity.cs
rename to Yavsc.Api/Model/Workflow/Activity.cs
diff --git a/Yavsc/Model/Workflow/IRequisition.cs b/Yavsc.Api/Model/Workflow/IRequisition.cs
similarity index 100%
rename from Yavsc/Model/Workflow/IRequisition.cs
rename to Yavsc.Api/Model/Workflow/IRequisition.cs
diff --git a/Yavsc/Model/Workflow/PerformerProfile.cs b/Yavsc.Api/Model/Workflow/PerformerProfile.cs
similarity index 100%
rename from Yavsc/Model/Workflow/PerformerProfile.cs
rename to Yavsc.Api/Model/Workflow/PerformerProfile.cs
diff --git a/Yavsc/Model/Workflow/Process/Action.cs b/Yavsc.Api/Model/Workflow/Process/Action.cs
similarity index 100%
rename from Yavsc/Model/Workflow/Process/Action.cs
rename to Yavsc.Api/Model/Workflow/Process/Action.cs
diff --git a/Yavsc/Model/Workflow/Process/Conjonction.cs b/Yavsc.Api/Model/Workflow/Process/Conjonction.cs
similarity index 100%
rename from Yavsc/Model/Workflow/Process/Conjonction.cs
rename to Yavsc.Api/Model/Workflow/Process/Conjonction.cs
diff --git a/Yavsc/Model/Workflow/Process/Disjonction.cs b/Yavsc.Api/Model/Workflow/Process/Disjonction.cs
similarity index 100%
rename from Yavsc/Model/Workflow/Process/Disjonction.cs
rename to Yavsc.Api/Model/Workflow/Process/Disjonction.cs
diff --git a/Yavsc/Model/Workflow/Process/InputValue.cs b/Yavsc.Api/Model/Workflow/Process/InputValue.cs
similarity index 100%
rename from Yavsc/Model/Workflow/Process/InputValue.cs
rename to Yavsc.Api/Model/Workflow/Process/InputValue.cs
diff --git a/Yavsc/Model/Workflow/Process/NamedRequisition.cs b/Yavsc.Api/Model/Workflow/Process/NamedRequisition.cs
similarity index 100%
rename from Yavsc/Model/Workflow/Process/NamedRequisition.cs
rename to Yavsc.Api/Model/Workflow/Process/NamedRequisition.cs
diff --git a/Yavsc/Model/Workflow/Process/Negation.cs b/Yavsc.Api/Model/Workflow/Process/Negation.cs
similarity index 100%
rename from Yavsc/Model/Workflow/Process/Negation.cs
rename to Yavsc.Api/Model/Workflow/Process/Negation.cs
diff --git a/Yavsc/Model/Workflow/Process/Rule.cs b/Yavsc.Api/Model/Workflow/Process/Rule.cs
similarity index 100%
rename from Yavsc/Model/Workflow/Process/Rule.cs
rename to Yavsc.Api/Model/Workflow/Process/Rule.cs
diff --git a/Yavsc/Model/Workflow/Projet.cs b/Yavsc.Api/Model/Workflow/Projet.cs
similarity index 100%
rename from Yavsc/Model/Workflow/Projet.cs
rename to Yavsc.Api/Model/Workflow/Projet.cs
diff --git a/Yavsc/Model/Workflow/Skill.cs b/Yavsc.Api/Model/Workflow/Skill.cs
similarity index 100%
rename from Yavsc/Model/Workflow/Skill.cs
rename to Yavsc.Api/Model/Workflow/Skill.cs
diff --git a/Yavsc/Model/Workflow/UserSkills.cs b/Yavsc.Api/Model/Workflow/UserSkills.cs
similarity index 100%
rename from Yavsc/Model/Workflow/UserSkills.cs
rename to Yavsc.Api/Model/Workflow/UserSkills.cs
diff --git a/Yavsc/Model/Workflow/hr.cs b/Yavsc.Api/Model/Workflow/hr.cs
similarity index 100%
rename from Yavsc/Model/Workflow/hr.cs
rename to Yavsc.Api/Model/Workflow/hr.cs
diff --git a/Yavsc/Model/Workflow/taskdeps.cs b/Yavsc.Api/Model/Workflow/taskdeps.cs
similarity index 100%
rename from Yavsc/Model/Workflow/taskdeps.cs
rename to Yavsc.Api/Model/Workflow/taskdeps.cs
diff --git a/Yavsc/Model/Workflow/tasks.cs b/Yavsc.Api/Model/Workflow/tasks.cs
similarity index 100%
rename from Yavsc/Model/Workflow/tasks.cs
rename to Yavsc.Api/Model/Workflow/tasks.cs
diff --git a/Yavsc/Model/Workflow/wrfiles.cs b/Yavsc.Api/Model/Workflow/wrfiles.cs
similarity index 100%
rename from Yavsc/Model/Workflow/wrfiles.cs
rename to Yavsc.Api/Model/Workflow/wrfiles.cs
diff --git a/Yavsc/Model/societe.com/CompanyInfo.cs b/Yavsc.Api/Model/societe.com/CompanyInfo.cs
similarity index 100%
rename from Yavsc/Model/societe.com/CompanyInfo.cs
rename to Yavsc.Api/Model/societe.com/CompanyInfo.cs
diff --git a/Yavsc.Api/package.json b/Yavsc.Api/package.json
new file mode 100644
index 00000000..e43a2b3f
--- /dev/null
+++ b/Yavsc.Api/package.json
@@ -0,0 +1,7 @@
+{
+ "name": "Yavsc.Api",
+ "version": "0.0.0",
+ "devDependencies": {
+ "gulp": "^3.9.0"
+ }
+}
diff --git a/Yavsc.Api/project.json b/Yavsc.Api/project.json
new file mode 100644
index 00000000..aaebb831
--- /dev/null
+++ b/Yavsc.Api/project.json
@@ -0,0 +1,23 @@
+{
+ "version": "1.0.0-*",
+ "description": "Api Class Library",
+ "authors": [ "Class Library template" ],
+ "tags": [""],
+ "projectUrl": "",
+ "licenseUrl": "",
+ "tooling": {
+ "defaultNamespace": "Yavsc"
+ },
+ "dependencies": {
+ "EntityFramework.Commands": "7.0.0-rc1-*",
+ "EntityFramework.Core": "7.0.0-rc1-*",
+ "EntityFramework.MicrosoftSqlServer": "7.0.0-rc1-*",
+ "EntityFramework.Relational": "7.0.0-rc1-*",
+ "EntityFramework7.Npgsql": "3.1.0-*",
+ "EntityFramework7.Npgsql.Design": "3.1.0-*",
+ "Microsoft.AspNet.Identity.EntityFramework": "3.0.0-rc1-*"
+ },
+ "frameworks": {
+ "net451": { }
+ }
+}
diff --git a/Yavsc/ApiController/AccountController.cs b/Yavsc/ApiController/AccountController.cs
index 150ad33f..2f6e281f 100644
--- a/Yavsc/ApiController/AccountController.cs
+++ b/Yavsc/ApiController/AccountController.cs
@@ -119,7 +119,7 @@ namespace Yavsc.WebApi.Controllers
base.Dispose(disposing);
}
- [HttpGet("~/api/me"),Produces("application/json")]
+ [HttpGet("~/api/me")]
public async Task Me ()
{
if (User==null)
diff --git a/Yavsc/Auth/AuthServer/OAuthValidateClientAuthenticationContext.cs b/Yavsc/Auth/AuthServer/OAuthValidateClientAuthenticationContext.cs
index 22ecf269..7685889d 100644
--- a/Yavsc/Auth/AuthServer/OAuthValidateClientAuthenticationContext.cs
+++ b/Yavsc/Auth/AuthServer/OAuthValidateClientAuthenticationContext.cs
@@ -90,6 +90,7 @@ namespace OAuth.AspNet.AuthServer
public bool TryGetFormCredentials(out string clientId, out string clientSecret)
{
clientId = Parameters[Constants.Parameters.ClientId];
+
if (!string.IsNullOrEmpty(clientId))
{
clientSecret = Parameters[Constants.Parameters.ClientSecret];
diff --git a/Yavsc/Controllers/AccountController.cs b/Yavsc/Controllers/AccountController.cs
index 1ee2e02f..269334b2 100644
--- a/Yavsc/Controllers/AccountController.cs
+++ b/Yavsc/Controllers/AccountController.cs
@@ -99,6 +99,7 @@ namespace Yavsc.Controllers
else
{
ModelState.AddModelError(string.Empty, "Invalid login attempt.");
+ model.ExternalProviders = HttpContext.GetExternalProviders();
return View(model);
}
}
diff --git a/Yavsc/Interfaces/IDataStore.cs b/Yavsc/Interfaces/IDataStore.cs
deleted file mode 100644
index 234e0fdc..00000000
--- a/Yavsc/Interfaces/IDataStore.cs
+++ /dev/null
@@ -1,16 +0,0 @@
-using System.Threading.Tasks;
-
-namespace Yavsc.Interfaces {
-
- public interface IDataStore {
-
- Task StoreAsync (string key, T value);
-
- Task DeleteAsync (string key);
-
- Task GetAsync (string key);
-
- Task ClearAsync ();
-
- }
-}
\ No newline at end of file
diff --git a/Yavsc/Model/Access/PerformerIM.cs b/Yavsc/Model/Access/PerformerIM.cs
deleted file mode 100644
index 0519ecba..00000000
--- a/Yavsc/Model/Access/PerformerIM.cs
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/Yavsc/Startup/Startup.OAuthHelpers.cs b/Yavsc/Startup/Startup.OAuthHelpers.cs
index 4ab5c680..91dcb5e5 100644
--- a/Yavsc/Startup/Startup.OAuthHelpers.cs
+++ b/Yavsc/Startup/Startup.OAuthHelpers.cs
@@ -38,9 +38,11 @@ namespace Yavsc
private Task ValidateClientAuthentication(OAuthValidateClientAuthenticationContext context)
{
string clientId, clientSecret;
+
if (context.TryGetBasicCredentials(out clientId, out clientSecret) ||
context.TryGetFormCredentials(out clientId, out clientSecret))
{
+ logger.LogInformation($"ValidateClientAuthentication: Got id&secret: ({clientId} {clientSecret})");
var client = GetApplication(clientId);
if (client.Type == ApplicationTypes.NativeConfidential)
{
@@ -51,7 +53,9 @@ namespace Yavsc
}
else
{
- if (client.Secret != Helper.GetHash(clientSecret))
+ // if (client.Secret != Helper.GetHash(clientSecret))
+ // TODO store a hash in db, not the pass
+ if (client.Secret != clientSecret)
{
context.SetError("invalid_clientId", "Client secret is invalid.");
return Task.FromResult