Skip to content

Commit eeafc19

Browse files
committed
Merge pull request #457 from glaubinix/t/scope-google-classroom
Add google classroom scopes
2 parents 8a97b77 + 1547a0c commit eeafc19

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/OAuth/OAuth2/Service/Google.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,14 @@ class Google extends AbstractService
118118
// Android Publisher
119119
const SCOPE_ANDROID_PUBLISHER = 'https://www.googleapis.com/auth/androidpublisher';
120120

121+
// Google Classroom
122+
const SCOPE_CLASSROOM_COURSES = 'https://www.googleapis.com/auth/classroom.courses';
123+
const SCOPE_CLASSROOM_COURSES_READONLY = 'https://www.googleapis.com/auth/classroom.courses.readonly';
124+
const SCOPE_CLASSROOM_PROFILE_EMAILS = 'https://www.googleapis.com/auth/classroom.profile.emails';
125+
const SCOPE_CLASSROOM_PROFILE_PHOTOS = 'https://www.googleapis.com/auth/classroom.profile.photos';
126+
const SCOPE_CLASSROOM_ROSTERS = 'https://www.googleapis.com/auth/classroom.rosters';
127+
const SCOPE_CLASSROOM_ROSTERS_READONLY = 'https://www.googleapis.com/auth/classroom.rosters.readonly';
128+
121129
protected $accessType = 'online';
122130

123131
public function __construct(

0 commit comments

Comments
 (0)