(self)
| 96 | self.callback_calls = [] |
| 97 | |
| 98 | def start_oauth(self): |
| 99 | self.start_calls += 1 |
| 100 | return OAuthStart( |
| 101 | auth_url=f"https://auth.example.test/flow/{self.start_calls}", |
| 102 | state=f"state-{self.start_calls}", |
| 103 | code_verifier=f"verifier-{self.start_calls}", |
| 104 | redirect_uri="http://localhost:1455/auth/callback", |
| 105 | ) |
| 106 | |
| 107 | def handle_callback(self, callback_url, expected_state, code_verifier): |
| 108 | self.callback_calls.append({ |