Add discovery

This commit is contained in:
Nirvana
2026-03-08 13:40:45 +01:00
parent 701d692c4b
commit 0d234ed13a
2 changed files with 7 additions and 3 deletions
@@ -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"