mirror of
https://github.com/nirvana-7777/script.service.ultimate.git
synced 2026-10-17 05:12:42 +02:00
Add discovery
This commit is contained in:
@@ -64,7 +64,7 @@ class RTLPlusAuthenticator(BaseOAuth2Authenticator):
|
||||
|
||||
@property
|
||||
def oauth_scope(self) -> str:
|
||||
return "openid email"
|
||||
return "openid email profile"
|
||||
|
||||
@property
|
||||
def oauth_redirect_uri(self) -> str:
|
||||
@@ -186,12 +186,16 @@ class RTLPlusAuthenticator(BaseOAuth2Authenticator):
|
||||
RTL+ specific OAuth2 authorization code flow with PKCE
|
||||
Uses base class generic form login
|
||||
"""
|
||||
import uuid
|
||||
return self._perform_generic_form_login(
|
||||
username=username,
|
||||
password=password,
|
||||
form_selector_pattern=r'<form id="rtlplus-form-login" action="([^"]*)"',
|
||||
login_fields={"username": "username", "password": "password"},
|
||||
extra_params={"prompt": "login"},
|
||||
extra_params={
|
||||
"prompt": "login",
|
||||
"nonce": str(uuid.uuid4()),
|
||||
},
|
||||
additional_form_data={"credentialId": "", "rememberMe": "on"},
|
||||
)
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ class RTLPlusDefaults:
|
||||
# Client and version information
|
||||
CLIENT_VERSION = "2025.6.26.0"
|
||||
CHROME_VERSION = "121.0.0.0"
|
||||
CLIENT_ID = "rci:rtlplus:web"
|
||||
CLIENT_ID = "rtlplus-web"
|
||||
|
||||
# Device information
|
||||
DEVICE_ID = "8c3f37cc-13a3-4141-bd0f-e4b3673fe5e4"
|
||||
|
||||
Reference in New Issue
Block a user