File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed
Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change 1+ <?php
2+ declare (strict_types=1 );
3+
4+ /**
5+ * Copyright 2010 - 2025, Cake Development Corporation (https://www.cakedc.com)
6+ *
7+ * Licensed under The MIT License
8+ * Redistributions of files must retain the above copyright notice.
9+ *
10+ * @copyright Copyright 2010 - 2025, Cake Development Corporation (https://www.cakedc.com)
11+ * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
12+ */
13+
14+ namespace CakeDC \Auth \Social \Mapper ;
15+
16+ use Cake \Utility \Hash ;
17+
18+ /**
19+ * Github Mapper
20+ */
21+ class Github extends AbstractMapper
22+ {
23+ /**
24+ * Map for provider fields
25+ *
26+ * @var array
27+ */
28+ protected array $ _mapFields = [
29+ 'username ' => 'login ' ,
30+ 'full_name ' => 'name ' ,
31+ 'avatar ' => 'avatar_url ' ,
32+ 'link ' => 'html_url ' ,
33+ 'locale ' => 'location ' ,
34+ ];
35+ }
You can’t perform that action at this time.
0 commit comments