kratos
kratos copied to clipboard
fix: check OIDC setting method via flow.MethodEnabledAndAllowed
OIDC setting will produce faulty "endpoint disabled" when setting request from another method, because it does not check if request method is matched with OIDC. Use flow.MethodEnabledAndAllowed could fix this problem.
Related issue(s)
Checklist
- [x] I have read the contributing guidelines.
- [ ] I have referenced an issue containing the design document if my change introduces a new feature.
- [x] I am following the contributing code guidelines.
- [x] I have read the security policy.
- [x] I confirm that this pull request does not address a security vulnerability. If this pull request addresses a security vulnerability, I confirm that I got the approval (please contact [email protected]) from the maintainers to push the changes.
- [ ] I have added tests that prove my fix is effective or that my feature works.
- [ ] I have added or changed the documentation.