You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am new to Pode development and am finding the framework really useful, however I have an issue around root I don't seem to be able to over come when using 'Use-PodeWebTemplates' and authenticating against Azure AD. When I run the PowerShell I get the following error:-
Exception: C:\Users\803100105\OneDrive - BT Plc\Documents\PowerShell\Modules\Pode\2.11.1\Private\Routes.ps1:521:9
Line |
521 | throw ($PodeLocale.methodPathAlreadyDefinedExceptionMessage - …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| [Get] /: Already defined.
I assume that root is already being referenced by "Use-PodeWebTemplates" and '/' as commenting out the template command works fine when authenticating against AAD, display "Authenticated". Has anybody got a solution as I want to re-use the default template with the sidebar and use 'Add-PodeWebPage' and 'New-PodeWebForm' commands instead of html pages as most of what I want to display from the template are forms? My code is below:-
`# Import Pode and Pode.Web modules
Import-Module Pode
Import-Module Pode.Web
I am new to Pode development and am finding the framework really useful, however I have an issue around root I don't seem to be able to over come when using 'Use-PodeWebTemplates' and authenticating against Azure AD. When I run the PowerShell I get the following error:-
Exception: C:\Users\803100105\OneDrive - BT Plc\Documents\PowerShell\Modules\Pode\2.11.1\Private\Routes.ps1:521:9
Line |
521 | throw ($PodeLocale.methodPathAlreadyDefinedExceptionMessage - …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| [Get] /: Already defined.
I assume that root is already being referenced by "Use-PodeWebTemplates" and '/' as commenting out the template command works fine when authenticating against AAD, display "Authenticated". Has anybody got a solution as I want to re-use the default template with the sidebar and use 'Add-PodeWebPage' and 'New-PodeWebForm' commands instead of html pages as most of what I want to display from the template are forms? My code is below:-
`# Import Pode and Pode.Web modules
Import-Module Pode
Import-Module Pode.Web
Define the Azure AD Authentication settings
$ClientId = 'xxxxxxxxxxxxxxxxxxxxxx'
$TenantId = 'xxxxxxxxxxxxxxxxxxxxxx'
$ClientSecret = 'xxxxxxxxxxxxxxxxxxxxxxxx'
Start the Pode server
Start-PodeServer {
Add-PodeEndpoint -Address localhost -Port 8080 -Protocol Http
}`
Any help would be very much appreciated!
The text was updated successfully, but these errors were encountered: