MCPcopy Create free account
hub / github.com/authlib/authlib / create_temporary_credential

Function create_temporary_credential

authlib/integrations/flask_oauth1/cache.py:14–21  ·  view source on GitHub ↗
(token, client_id, redirect_uri)

Source from the content-addressed store, hash-verified

12 """
13
14 def create_temporary_credential(token, client_id, redirect_uri):
15 key = key_prefix + token["oauth_token"]
16 token["client_id"] = client_id
17 if redirect_uri:
18 token["oauth_callback"] = redirect_uri
19
20 cache.set(key, token, timeout=86400) # cache for one day
21 return TemporaryCredential(token)
22
23 def get_temporary_credential(oauth_token):
24 if not oauth_token:

Callers

nothing calls this directly

Calls 2

TemporaryCredentialClass · 0.90
setMethod · 0.45

Tested by

no test coverage detected