1
0
mirror of https://github.com/vector-im/element-web.git synced 2025-04-19 03:42:23 +03:00
Michael Telatynski ff1da50dd9
Move a bunch of shared playwright code into @element-hq/element-web-playwright-common (#29477)
* Move a bunch of shared playwright code into @element-hq/element-web-playwright-common

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Remove stale devDep

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Iterate

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Update playwright-common

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Iterate

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Update screenshot

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Fix testcontainers version

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2025-03-17 09:16:45 +00:00
..
2024-09-09 13:57:16 +00:00

oauth_server

A very simple OAuth identity provider server.

The following endpoints are exposed:

  • /oauth/auth.html: An OAuth2 authorization endpoint. 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. 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. Returns details about the owner of the offered access token.

To start the server, do:

cy.task("startOAuthServer").then((port) => {
    // now we can configure Synapse or Element to talk to the OAuth2 server.
});