Port remaining login.spec.ts & soft_logout.spec.ts tests from Cypress to Playwright (#11917)
Co-authored-by: R Midhun Suresh <hi@midhun.dev>
This commit is contained in:
parent
8dcd13eb6d
commit
a6705304aa
16 changed files with 465 additions and 386 deletions
|
@ -1,24 +0,0 @@
|
|||
# oauth_server
|
||||
|
||||
A very simple OAuth identity provider server.
|
||||
|
||||
The following endpoints are exposed:
|
||||
|
||||
- `/oauth/auth.html`: An OAuth2 [authorization endpoint](https://openid.net/specs/openid-connect-core-1_0.html#AuthorizationEndpoint).
|
||||
In a proper OAuth2 system, this would prompt the user to log in; we just give a big "Submit" button (and an
|
||||
auth code that can be changed if we want the next step to fail). It redirects back to the calling application
|
||||
with a "code".
|
||||
|
||||
- `/oauth/token`: An OAuth2 [token endpoint](https://openid.net/specs/openid-connect-core-1_0.html#TokenEndpoint).
|
||||
Receives the code issued by "auth.html" and, if it is valid, exchanges it for an OAuth2 access token.
|
||||
|
||||
- `/oauth/userinfo`: An OAuth2 [userinfo endpoint](https://openid.net/specs/openid-connect-core-1_0.html#UserInfo).
|
||||
Returns details about the owner of the offered access token.
|
||||
|
||||
To start the server, do:
|
||||
|
||||
```javascript
|
||||
cy.task("startOAuthServer").then((port) => {
|
||||
// now we can configure Synapse or Element to talk to the OAuth2 server.
|
||||
});
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue