-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat:add Microsoft AzureAD login support in demo webapp.
- Loading branch information
1 parent
9cf8413
commit 4c681ca
Showing
13 changed files
with
158 additions
and
37 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
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,4 +1,4 @@ | ||
- name: Docs | ||
href: docs/ | ||
- name: API(v0.0.2.0-preview) | ||
href: dist/api/v0.0.2.0-preview/ | ||
- name: API(v0.0.2.2-preview) | ||
href: dist/api/v0.0.2.2-preview/ |
2 changes: 2 additions & 0 deletions
2
src/LLMServiceHub/Areas/MicrosoftIdentity/Pages/Account/SignedOut.cshtml
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
@page | ||
@model LLMServiceHub.Areas.MicrosoftIdentity.Pages.Account.SignedOutModel |
33 changes: 33 additions & 0 deletions
33
src/LLMServiceHub/Areas/MicrosoftIdentity/Pages/Account/SignedOut.cshtml.cs
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
using Microsoft.AspNetCore.Authorization; | ||
using Microsoft.AspNetCore.Mvc; | ||
using Microsoft.AspNetCore.Mvc.RazorPages; | ||
|
||
namespace LLMServiceHub.Areas.MicrosoftIdentity.Pages.Account | ||
{ | ||
/// <summary> | ||
/// Model for the SignOut page. | ||
/// </summary> | ||
[AllowAnonymous] | ||
public class SignedOutModel : PageModel | ||
{ | ||
/// <summary> | ||
/// Method handling the HTTP GET method. | ||
/// </summary> | ||
/// <returns>A Sign Out page or Home page.</returns> | ||
public IActionResult OnGet() | ||
{ | ||
if (User?.Identity?.IsAuthenticated ?? false) | ||
{ | ||
//return LocalRedirect("~/"); | ||
} | ||
|
||
//return Page(); | ||
var returnUrl = HttpContext.Request.Query["returnUrl"]; | ||
if(string.IsNullOrEmpty(returnUrl)) | ||
{ | ||
returnUrl = "~/"; | ||
} | ||
return LocalRedirect(returnUrl); | ||
} | ||
} | ||
} |
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
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
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