mirror of
https://github.com/datahub-project/datahub.git
synced 2025-07-06 16:49:03 +00:00
15 lines
396 B
Python
15 lines
396 B
Python
![]() |
import logging
|
||
|
from typing import Any, Tuple
|
||
|
|
||
|
logger = logging.getLogger(__name__)
|
||
|
|
||
|
MESSAGE: str = "OAuth token `create_token` callback"
|
||
|
|
||
|
|
||
|
def create_token(*args: Any, **kwargs: Any) -> Tuple[str, int]:
|
||
|
logger.warning(MESSAGE)
|
||
|
return (
|
||
|
"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJjbGllbnRfaWQiOiJrYWZrYV9jbGllbnQiLCJleHAiOjE2OTg3NjYwMDB9.dummy_sig_abcdef123456",
|
||
|
3600,
|
||
|
)
|