mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-21 21:29:41 +08:00
Remove unused code
This commit is contained in:
parent
5761d28f7f
commit
1bee201cfd
@ -24,14 +24,6 @@ class AuthorizationHelpers:
|
|||||||
def settings(self) -> "OAuth2Settings":
|
def settings(self) -> "OAuth2Settings":
|
||||||
return self._settings
|
return self._settings
|
||||||
|
|
||||||
# Gets a dictionary with data that need to be used for any HTTP authorization request.
|
|
||||||
def getCommonRequestDataDict(self) -> Dict[str, str]:
|
|
||||||
data_dict = {"client_id": self._settings.CLIENT_ID if self._settings.CLIENT_ID is not None else "",
|
|
||||||
"redirect_uri": self._settings.CALLBACK_URL if self._settings.CALLBACK_URL is not None else "",
|
|
||||||
"scope": self._settings.CLIENT_SCOPES if self._settings.CLIENT_SCOPES is not None else "",
|
|
||||||
}
|
|
||||||
return data_dict
|
|
||||||
|
|
||||||
# Request the access token from the authorization server.
|
# Request the access token from the authorization server.
|
||||||
# \param authorization_code: The authorization code from the 1st step.
|
# \param authorization_code: The authorization code from the 1st step.
|
||||||
# \param verification_code: The verification code needed for the PKCE extension.
|
# \param verification_code: The verification code needed for the PKCE extension.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user