(token, client_id, redirect_uri)
| 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: |
nothing calls this directly
no test coverage detected