Skip to content

Commit

Permalink
Disable RequireAuthenticatedUser if in OneBox mode
Browse files Browse the repository at this point in the history
  • Loading branch information
tylorhl-msft committed May 7, 2019
1 parent ee06bc4 commit 547f49b
Show file tree
Hide file tree
Showing 9 changed files with 59 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Services/DataX.Flow/Flow.ManagementService/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
}
},
"JwtBearerOptions": {
"Audience": "APPID",
"Authority": "APP AUTHORITY/JWT ISS"
"Audience": "6d4ee66c-3c1e-4693-86b1-2aff3e1cc47a",
"Authority": "https://login.windows.net/microsoft.com"
}
}
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,13 @@ private AuthorizationPolicyBuilder AddDataXRequirements<TDataXRequirement>(Autho
Settings = _settings
};

policy.RequireAuthenticatedUser();

if (!_settings.EnableOneBox)
{
policy.RequireAuthenticatedUser();
}


policy.AddRequirements(requirement);
_configurePolicy?.Invoke(policy);

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

using System;
using System.Reflection;

[assembly: System.Reflection.AssemblyCompanyAttribute("DataX.Utility.CodeSign")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
[assembly: System.Reflection.AssemblyProductAttribute("DataX.Utility.CodeSign")]
[assembly: System.Reflection.AssemblyTitleAttribute("DataX.Utility.CodeSign")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]

// Generated by the MSBuild WriteCodeFragment class.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ddf4dff5977667b2d8a961c06e96702ee468021d
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
c5d178742e491dcb97c2aa3ee47dfc87ae0c20ac
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

using System;
using System.Reflection;

[assembly: System.Reflection.AssemblyCompanyAttribute("DataX.Utility.CodeSign")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Release")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
[assembly: System.Reflection.AssemblyProductAttribute("DataX.Utility.CodeSign")]
[assembly: System.Reflection.AssemblyTitleAttribute("DataX.Utility.CodeSign")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]

// Generated by the MSBuild WriteCodeFragment class.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
5a0711eb30e039d6556a4c027224de09a19b31e8
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
157d3a35bbd4d6b3a6dd9359dd0b2e198fb61786

0 comments on commit 547f49b

Please sign in to comment.