OAuth stepic authorization, connector refactoring
authorEkaterina Tuzova <Ekaterina.Tuzova@jetbrains.com>
Thu, 15 Sep 2016 16:19:18 +0000 (19:19 +0300)
committerEkaterina Tuzova <Ekaterina.Tuzova@jetbrains.com>
Mon, 19 Sep 2016 10:58:41 +0000 (13:58 +0300)
commit738c9eaa7da209061a5d06609b05392f013373b8
treedb633c89e6c3987212c0ba5be6c7ca224464cfc9
parent565912c269c8a8b85952b38494c93e990575e6c8
OAuth stepic authorization, connector refactoring

extracted and separated unauthorized and authorized http client for stepic so one can be confident about user login state
removed enrolled course ids (todo: discuss with Valentina)
added refresh/access tokens to the user information (todo: should be updated properly because it expires in 10 hours)
15 files changed:
python/educational-core/course-creator/src/com/jetbrains/edu/coursecreator/actions/CCPushCourse.java
python/educational-core/course-creator/src/com/jetbrains/edu/coursecreator/actions/CCPushLesson.java
python/educational-core/student/src/com/jetbrains/edu/learning/checker/StudyCheckTask.java
python/educational-core/student/src/com/jetbrains/edu/learning/courseGeneration/StudyProjectGenerator.java
python/educational-core/student/src/com/jetbrains/edu/learning/stepic/EduAdaptiveStepicConnector.java
python/educational-core/student/src/com/jetbrains/edu/learning/stepic/EduStepicAuthorizedClient.java [new file with mode: 0644]
python/educational-core/student/src/com/jetbrains/edu/learning/stepic/EduStepicClient.java [new file with mode: 0644]
python/educational-core/student/src/com/jetbrains/edu/learning/stepic/EduStepicConnector.java
python/educational-core/student/src/com/jetbrains/edu/learning/stepic/EduStepicNames.java
python/educational-core/student/src/com/jetbrains/edu/learning/stepic/LoginDialog.java
python/educational-core/student/src/com/jetbrains/edu/learning/stepic/StepicStudyOptions.java
python/educational-core/student/src/com/jetbrains/edu/learning/stepic/StepicUser.java
python/educational-core/student/src/com/jetbrains/edu/learning/stepic/StepicWrappers.java
python/educational-core/student/src/com/jetbrains/edu/learning/ui/StudyNewProjectPanel.java
python/educational-python/student-python/src/com/jetbrains/edu/learning/PyStudyDirectoryProjectGenerator.java