Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert the Middleware functions into PowerShell functions #306

Closed
Badgerati opened this issue Jul 10, 2019 · 0 comments · Fixed by #313
Closed

Convert the Middleware functions into PowerShell functions #306

Badgerati opened this issue Jul 10, 2019 · 0 comments · Fixed by #313

Comments

@Badgerati
Copy link
Owner

The following Middleware functions should be converted into PowerShell functions. Each of these functions should be exported in pode.psd1.

Old Function New Function Returns
Session Get-PodeSessionMiddleware scriptblock
Csrf (check) Get-PodeCsrfVerifyMiddleware scriptblock
Csrf (middleware) Get-PodeCsrfMiddleware scriptblock
Csrf (setup) Initialize-PodeCsrf void
Csrf (token) New-PodeCsrfToken string
Access Add-PodeIPAccessRule void
Limit Add-PodeIPLimitRule void
@Badgerati Badgerati added this to the 1.0.0 milestone Jul 10, 2019
@Badgerati Badgerati added this to To do in Function Syntax Refactor via automation Jul 10, 2019
@Badgerati Badgerati moved this from To do to In progress in Function Syntax Refactor Jul 22, 2019
@Badgerati Badgerati self-assigned this Jul 22, 2019
Function Syntax Refactor automation moved this from In progress to Done Jul 25, 2019
Badgerati added a commit that referenced this issue Jul 25, 2019
#306: Migrate Access, Limit, Session, and CSRF Middleware to PowerShell syntax
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

1 participant