<commit_before><?php

/*
 * eduVPN - End-user friendly VPN.
 *
 * Copyright: 2016-2018, The Commons Conservancy eduVPN Programme
 * SPDX-License-Identifier: AGPL-3.0+
 */

namespace SURFnet\VPN\Portal;

use fkooman\OAuth\Server\ClientInfo;

class OAuthClientInfo
{
    /**
     * @param string $clientId
     *
     * @return false|\fkooman\OAuth\Server\ClientInfo
     */
    public static function getClient($clientId)
    {
        $clientInfo = [
            // Windows
            'org.eduvpn.app.windows' => [
                'redirect_uri_list' => [
                    'http://127.0.0.1:{PORT}/callback',
                    'http://[::1]:{PORT}/callback',
                ],
                'display_name' => 'eduVPN for Windows',
                'require_approval' => true,
            ],
            // Windows (LC)
            'org.letsconnect-vpn.app.windows' => [
                'redirect_uri_list' => [
                    'http://127.0.0.1:{PORT}/callback',
                    'http://[::1]:{PORT}/callback',
                ],
                'display_name' => 'Let\'s Connect! for Windows',
                'require_approval' => true,
            ],
            // Android
            'org.eduvpn.app.android' => [
                'redirect_uri_list' => [
                    'org.eduvpn.app:/api/callback',
                    'https://android.app.eduvpn.org/api/callback',  // Android >= 6
                ],
                'display_name' => 'eduVPN for Android',
                'require_approval' => true,
            ],
            // Android (LC)
            'org.letsconnect-vpn.app.android' => [
                'redirect_uri_list' => [
                    'org.letsconnect-vpn.app:/api/callback',
                    'https://android.app.letsconnect-vpn.org/api/callback',  // Android >= 6
                ],
                'display_name' => 'Let\'s Connect! for Android',
                'require_approval' => true,
            ],
            // iOS
            'org.eduvpn.app.ios' => [
                'redirect_uri_list' => [
                    'https://ios.app.eduvpn.org/auth/app/redirect/',
                    'https://ios.app.eduvpn.org/auth/app/redirect/development/',
                ],
                'display_name' => 'eduVPN for iOS',
                'require_approval' => false,
            ],
            // iOS (LC)
            'org.letsconnect-vpn.app.ios' => [
                'redirect_uri_list' => [
                    'https://ios.app.letsconnect-vpn.org/auth/app/redirect/',
                    'https://ios.app.letsconnect-vpn.org/auth/app/redirect/development/',
                ],
                'display_name' => 'Let\'s Connect! for iOS',
                'require_approval' => false,
            ],
            // macOS
            'org.eduvpn.app.macos' => [
                'redirect_uri_list' => [
                    'org.eduvpn.app:/api/callback',
                    'http://127.0.0.1:{PORT}/callback',
                    'http://[::1]:{PORT}/callback',
                ],
                'display_name' => 'eduVPN for macOS',
                'require_approval' => true,
            ],
            // macOS (LC)
            'org.letsconnect-vpn.app.macos' => [
                'redirect_uri_list' => [
                    'org.letsconnect-vpn.app:/api/callback',
                    'http://127.0.0.1:{PORT}/callback',
                    'http://[::1]:{PORT}/callback',
                ],
                'display_name' => 'Let\'s Connect! for macOS',
                'require_approval' => true,
            ],
            // Linux
            'org.eduvpn.app.linux' => [
                'redirect_uri_list' => [
                    'org.eduvpn.app:/api/callback',
                    'http://127.0.0.1:{PORT}/callback',<commit_msg>add custom scheme for iOS apps<commit_after><?php

/*
 * eduVPN - End-user friendly VPN.
 *
 * Copyright: 2016-2018, The Commons Conservancy eduVPN Programme
 * SPDX-License-Identifier: AGPL-3.0+
 */

namespace SURFnet\VPN\Portal;

use fkooman\OAuth\Server\ClientInfo;

class OAuthClientInfo
{
    /**
     * @param string $clientId
     *
     * @return false|\fkooman\OAuth\Server\ClientInfo
     */
    public static function getClient($clientId)
    {
        $clientInfo = [
            // Windows
            'org.eduvpn.app.windows' => [
                'redirect_uri_list' => [
                    'http://127.0.0.1:{PORT}/callback',
                    'http://[::1]:{PORT}/callback',
                ],
                'display_name' => 'eduVPN for Windows',
                'require_approval' => true,
            ],
            // Windows (LC)
            'org.letsconnect-vpn.app.windows' => [
                'redirect_uri_list' => [
                    'http://127.0.0.1:{PORT}/callback',
                    'http://[::1]:{PORT}/callback',
                ],
                'display_name' => 'Let\'s Connect! for Windows',
                'require_approval' => true,
            ],
            // Android
            'org.eduvpn.app.android' => [
                'redirect_uri_list' => [
                    'org.eduvpn.app:/api/callback',
                    'https://android.app.eduvpn.org/api/callback',  // Android >= 6
                ],
                'display_name' => 'eduVPN for Android',
                'require_approval' => true,
            ],
            // Android (LC)
            'org.letsconnect-vpn.app.android' => [
                'redirect_uri_list' => [
                    'org.letsconnect-vpn.app:/api/callback',
                    'https://android.app.letsconnect-vpn.org/api/callback',  // Android >= 6
                ],
                'display_name' => 'Let\'s Connect! for Android',
                'require_approval' => true,
            ],
            // iOS
            'org.eduvpn.app.ios' => [
                'redirect_uri_list' => [
                    'org.eduvpn.app.ios:/api/callback',
                    'https://ios.app.eduvpn.org/auth/app/redirect/',
                    'https://ios.app.eduvpn.org/auth/app/redirect/development/',
                ],
                'display_name' => 'eduVPN for iOS',
                'require_approval' => true,
            ],
            // iOS (LC)
            'org.letsconnect-vpn.app.ios' => [
                'redirect_uri_list' => [
                    'org.letsconnect-vpn.app.ios:/api/callback',
                    'https://ios.app.letsconnect-vpn.org/auth/app/redirect/',
                    'https://ios.app.letsconnect-vpn.org/auth/app/redirect/development/',
                ],
                'display_name' => 'Let\'s Connect! for iOS',
                'require_approval' => true,
            ],
            // macOS
            'org.eduvpn.app.macos' => [
                'redirect_uri_list' => [
                    'org.eduvpn.app:/api/callback',
                    'http://127.0.0.1:{PORT}/callback',
                    'http://[::1]:{PORT}/callback',
                ],
                'display_name' => 'eduVPN for macOS',
                'require_approval' => true,
            ],
            // macOS (LC)
            'org.letsconnect-vpn.app.macos' => [
                'redirect_uri_list' => [
                    'org.letsconnect-vpn.app:/api/callback',
                    'http://127.0.0.1:{PORT}/callback',
                    'http://[::1]:{PORT}/callback',
                ],
                'display_name' => 'Let\'s Connect! for macOS',
                'require_approval' => true,
            ],
            // Linux
            'org.eduvpn.app.linux' => [
                'redirect_uri_list' => [
                    'org.eduvpn.app:/api/callback',
                    'http://127.0.0.1:{PORT}/callback',
{'fraction_non_alphanumeric': 0.15564453629553088, 'fraction_numerical': 0.01188323430638078, 'mean_word_length': 1.2116538131962296, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 75, 'https://': 12, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 10, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3792885', 'n_tokens_mistral': 2374, 'n_tokens_neox': 2223, 'n_words': 280}