1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-11-20 12:02:22 +03:00

storage: add a method to create an OAuth 2.0 session for a client credentials grant

This commit is contained in:
Quentin Gliech
2023-09-04 18:30:51 +02:00
parent 8658a3400d
commit 00fe5f902b
9 changed files with 120 additions and 18 deletions

View File

@@ -506,7 +506,7 @@ mod tests {
let session = repo
.oauth2_session()
.add(
.add_from_browser_session(
&mut state.rng(),
&state.clock,
&client,
@@ -606,7 +606,7 @@ mod tests {
let session = repo
.oauth2_session()
.add(
.add_from_browser_session(
&mut state.rng(),
&state.clock,
&client,
@@ -691,7 +691,7 @@ mod tests {
// Get a token pair
let session = repo
.oauth2_session()
.add(
.add_from_browser_session(
&mut state.rng(),
&state.clock,
&client,