11 lines
354 B
Python
11 lines
354 B
Python
from srht.config import cfg
|
|
from srht.oauth import AbstractOAuthService
|
|
from pastesrht.types import User
|
|
|
|
client_id = cfg("paste.sr.ht", "oauth-client-id")
|
|
client_secret = cfg("paste.sr.ht", "oauth-client-secret")
|
|
|
|
class PasteOAuthService(AbstractOAuthService):
|
|
def __init__(self):
|
|
super().__init__(client_id, client_secret, user_class=User)
|