Added PCRB controller for my task links
This commit is contained in:
parent
1b22ffa439
commit
77f45fabb1
22
Fab2ApprovalSystem/Controllers/PCRBController.cs
Normal file
22
Fab2ApprovalSystem/Controllers/PCRBController.cs
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
using System;
|
||||||
|
using System.Web.Mvc;
|
||||||
|
|
||||||
|
using Fab2ApprovalSystem.Misc;
|
||||||
|
|
||||||
|
namespace Fab2ApprovalSystem.Controllers;
|
||||||
|
|
||||||
|
[Authorize]
|
||||||
|
[SessionExpireFilter]
|
||||||
|
public class PCRBController : Controller {
|
||||||
|
public ActionResult Edit(int issueID) {
|
||||||
|
string jwt = Session["JWT"].ToString();
|
||||||
|
string encodedJwt = System.Net.WebUtility.UrlEncode(jwt);
|
||||||
|
string refreshToken = Session["RefreshToken"].ToString();
|
||||||
|
string encodedRefreshToken = System.Net.WebUtility.UrlEncode(refreshToken);
|
||||||
|
string wasmClientUrl = Environment.GetEnvironmentVariable("FabApprovalWasmClientUrl") ??
|
||||||
|
"https://localhost:7255";
|
||||||
|
string mrbUrl = $"{wasmClientUrl}/redirect?jwt={encodedJwt}&refreshToken={encodedRefreshToken}&redirectPath=/pcrb/{issueID}";
|
||||||
|
|
||||||
|
return Redirect(mrbUrl);
|
||||||
|
}
|
||||||
|
}
|
@ -179,7 +179,7 @@
|
|||||||
<LastGenOutput>FabApproval.Designer.cs</LastGenOutput>
|
<LastGenOutput>FabApproval.Designer.cs</LastGenOutput>
|
||||||
</EntityDeploy>
|
</EntityDeploy>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="Models\FabApproval.Context.cs">
|
<Compile Include="Models\FabApproval.Context.cs">
|
||||||
<AutoGen>True</AutoGen>
|
<AutoGen>True</AutoGen>
|
||||||
<DesignTime>True</DesignTime>
|
<DesignTime>True</DesignTime>
|
||||||
@ -255,6 +255,7 @@
|
|||||||
<Compile Include="Controllers\TrainingController.cs" />
|
<Compile Include="Controllers\TrainingController.cs" />
|
||||||
<Compile Include="Controllers\WebAPIController.cs" />
|
<Compile Include="Controllers\WebAPIController.cs" />
|
||||||
<Compile Include="Controllers\WorkflowController.cs" />
|
<Compile Include="Controllers\WorkflowController.cs" />
|
||||||
|
<Compile Include="Controllers\PCRBController.cs" />
|
||||||
<Compile Include="DMO\AccountDMO.cs" />
|
<Compile Include="DMO\AccountDMO.cs" />
|
||||||
<Compile Include="DMO\AdminDMO.cs" />
|
<Compile Include="DMO\AdminDMO.cs" />
|
||||||
<Compile Include="DMO\ApprovalLogDMO.cs" />
|
<Compile Include="DMO\ApprovalLogDMO.cs" />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user