mirror of https://git.sr.ht/~sircmpwn/hub.sr.ht
11 lines
362 B
Python
11 lines
362 B
Python
from srht.config import cfg
|
|
from srht.oauth import AbstractOAuthService, DelegatedScope
|
|
from hubsrht.types import User
|
|
|
|
client_id = cfg("hub.sr.ht", "oauth-client-id")
|
|
client_secret = cfg("hub.sr.ht", "oauth-client-secret")
|
|
|
|
class HubOAuthService(AbstractOAuthService):
|
|
def __init__(self):
|
|
super().__init__(client_id, client_secret, user_class=User)
|