-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ce168c0
commit 53ebf02
Showing
4 changed files
with
28 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,11 @@ | |
from . import crypto | ||
from . import util | ||
from .appview_proxy import service_proxy | ||
from .auth_bearer import auth_required, build_service_auth_token, auth_middleware | ||
from .auth_bearer import ( | ||
auth_required, | ||
build_service_auth_token, | ||
auth_middleware, | ||
) | ||
from .app_util import * | ||
from .did import DIDResolver | ||
|
||
|
@@ -209,7 +213,7 @@ def session_info(request: web.Request) -> dict: | |
"did": request["authed_did"], | ||
# we specify a fake email and claim it's verified, because otherwise | ||
# bsky.app would nag us to verify it | ||
#"email": "[email protected]", | ||
# "email": "[email protected]", | ||
"emailConfirmed": True, | ||
# "didDoc": {}, # iiuc this is only used for entryway usecase? | ||
} | ||
|
@@ -330,9 +334,7 @@ async def server_get_service_auth(request: web.Request): | |
# TODO: strict validation of aud and lxm? | ||
|
||
return web.json_response( | ||
{ | ||
"token": build_service_auth_token(request, aud, lxm, duration) | ||
} | ||
{"token": build_service_auth_token(request, aud, lxm, duration)} | ||
) | ||
|
||
|
||
|