-
Notifications
You must be signed in to change notification settings - Fork 107
polestar auth change: update resume path #2352
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
|
||
| # auth step 3: get token | ||
| def get_auth_token(self) -> Optional[str]: | ||
| def get_auth_token(self) -> str or None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| def get_auth_token(self) -> str or None: | |
| def get_auth_token(self) -> Optional[str]: |
Die Schreibweise folgt dem Python Style Guide.
|
|
||
| # auth step 2: get code | ||
| def _get_auth_code(self) -> Optional[str]: | ||
| def _get_auth_code(self) -> str or None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| def _get_auth_code(self) -> str or None: | |
| def _get_auth_code(self) -> Optional[str]: |
|
|
||
| # auth step 1: get resumePath | ||
| def _get_auth_resumePath(self) -> Optional[str]: | ||
| def _get_auth_resumePath(self) -> str or None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| def _get_auth_resumePath(self) -> str or None: | |
| def _get_auth_resumePath(self) -> Optional[str]: |
| try: | ||
| result = self.client_session.post( | ||
| BASE_URL+f"/as/{self.resume_path}/resume/as/authorization.ping", | ||
| BASE_URL + f"{self.resume_path}", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| BASE_URL + f"{self.resume_path}", | |
| f"{BASE_URL}{self.resume_path}", |
Hier vermischt Du zwei Darstellungsweisen eines Strings.
Oder die ältere Variante:
| BASE_URL + f"{self.resume_path}", | |
| BASE_URL + self.resume_path, |
| data = {"pf.submit": True, "subject": uid} | ||
| result = self.client_session.post( | ||
| BASE_URL+f"/as/{self.resume_path}/resume/as/authorization.ping", | ||
| BASE_URL + f"{self.resume_path}", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| BASE_URL + f"{self.resume_path}", | |
| f"{BASE_URL}{self.resume_path}", |
|
Das war wohl ein Schnellschuss... |
Wieder mal eine Änderung der Authentifizierung: der resume_path muss anders geholt werden