(path string)
| 59 | } |
| 60 | |
| 61 | func isAnonymousAuthPath(path string) bool { |
| 62 | switch path { |
| 63 | case "/api/v2/core/auth/captcha", |
| 64 | "/api/v2/core/auth/passkey/begin", |
| 65 | "/api/v2/core/auth/passkey/finish", |
| 66 | "/api/v2/core/auth/mfalogin", |
| 67 | "/api/v2/core/auth/login", |
| 68 | "/api/v2/core/auth/logout", |
| 69 | "/api/v2/core/auth/setting", |
| 70 | "/api/v2/core/auth/welcome": |
| 71 | return true |
| 72 | default: |
| 73 | return false |
| 74 | } |
| 75 | } |