Skip to content

Commit 13066bc

Browse files
committed
added fix for forced log-in to provide correct scopes for the code examples
1 parent 9a2a900 commit 13066bc

File tree

7 files changed

+36
-7
lines changed

7 files changed

+36
-7
lines changed

launcher-csharp/Admin/Controllers/CreateCLMESignUser.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,14 @@ protected override void InitializeInternal()
7070
[HttpGet]
7171
public override IActionResult Get()
7272
{
73+
IActionResult actionResult = base.Get();
74+
if (this.RequestItemsService.EgName == this.EgName)
75+
{
76+
return actionResult;
77+
}
78+
7379
try
7480
{
75-
base.Get();
7681
return this.View("aeg002", this);
7782
}
7883
catch (ApiException apiException)

launcher-csharp/Rooms/Controllers/AddingFormToRoom.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,11 @@ protected override void InitializeInternal()
4545
[HttpGet]
4646
public override IActionResult Get()
4747
{
48-
base.Get();
48+
IActionResult actionResult = base.Get();
49+
if (this.RequestItemsService.EgName == this.EgName)
50+
{
51+
return actionResult;
52+
}
4953

5054
// Obtain your OAuth token
5155
string accessToken = this.RequestItemsService.User.AccessToken; // Represents your {ACCESS_TOKEN}

launcher-csharp/Rooms/Controllers/AssignFormToFormGroups.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,11 @@ public AssignFormToFormGroups(
3737
[HttpGet]
3838
public override IActionResult Get()
3939
{
40-
base.Get();
40+
IActionResult actionResult = base.Get();
41+
if (this.RequestItemsService.EgName == this.EgName)
42+
{
43+
return actionResult;
44+
}
4145

4246
// Obtain your OAuth token
4347
string accessToken = this.RequestItemsService.User.AccessToken; // Represents your {ACCESS_TOKEN}

launcher-csharp/Rooms/Controllers/CreateExternalFormFillSession.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,11 @@ protected override void InitializeInternal()
4040
[HttpGet]
4141
public override IActionResult Get()
4242
{
43-
base.Get();
43+
IActionResult actionResult = base.Get();
44+
if (this.RequestItemsService.EgName == this.EgName)
45+
{
46+
return actionResult;
47+
}
4448

4549
// Obtain your OAuth token
4650
string accessToken = this.RequestItemsService.User.AccessToken; // Represents your {ACCESS_TOKEN}

launcher-csharp/Rooms/Controllers/CreateRoomFromTemplate.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,11 @@ public CreateRoomFromTemplate(
3636
[HttpGet]
3737
public override IActionResult Get()
3838
{
39-
base.Get();
39+
IActionResult actionResult = base.Get();
40+
if (this.RequestItemsService.EgName == this.EgName)
41+
{
42+
return actionResult;
43+
}
4044

4145
// Obtain your OAuth token
4246
var accessToken = this.RequestItemsService.User.AccessToken; // Represents your {ACCESS_TOKEN}

launcher-csharp/Rooms/Controllers/ExportDataFromRoom.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,11 @@ public ExportDataFromRoom(
3838
[HttpGet]
3939
public override IActionResult Get()
4040
{
41-
base.Get();
41+
IActionResult actionResult = base.Get();
42+
if (this.RequestItemsService.EgName == this.EgName)
43+
{
44+
return actionResult;
45+
}
4246

4347
// Obtain your OAuth token
4448
string accessToken = this.RequestItemsService.User.AccessToken; // Represents your {ACCESS_TOKEN}

launcher-csharp/Rooms/Controllers/GrantOfficeAccessToFormGroup.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,11 @@ public GrantOfficeAccessToFormGroup(
3636
[HttpGet]
3737
public override IActionResult Get()
3838
{
39-
base.Get();
39+
IActionResult actionResult = base.Get();
40+
if (this.RequestItemsService.EgName == this.EgName)
41+
{
42+
return actionResult;
43+
}
4044

4145
// Obtain your OAuth token
4246
string accessToken = this.RequestItemsService.User.AccessToken; // Represents your {ACCESS_TOKEN}

0 commit comments

Comments
 (0)