<?php

return [
    /* 
    | [github.com]
    | -------------------------------------------------------
    | Constants used for oauth2 communication with github.com
    | -------------------------------------------------------
    |
    | Once you edit this file, you must move it to the directory defined by
    | app_data_dir in your config/app.php file. No need to re-run the
    | config_gen.php script.
    | 
    | SECURITY ALERT ! MAKE SURE THAT THIS FILE IS NOT ACCESSIBLE BY THE BROWSER !
    */
    'github' => [
        'client_id'     => env('GITHUB_CLIENT_ID', ''),
        'client_secret' => env('GITHUB_CLIENT_SECRET', ''),
        'redirect_uri'  => env('GITHUB_REDIRECT_URI', ''),
        'auth_url'      => env('GITHUB_AUTH_URL', 'https://github.com/login/oauth/authorize'),
        'token_url'     => env('GITHUB_TOKEN_URL', 'https://github.com/login/oauth/access_token'),
    ],
    
    /* 
    | -------------------------------------------------
    | Constants used for oauth2 authentication over IMAP
    | -------------------------------------------------
    |
    | Once you edit this file, you must move it to the directory defined by
    | app_data_dir in your config/app.php file. No need to re-run the
    | config_gen.php script.
    | 
    | SECURITY ALERT ! MAKE SURE THAT THIS FILE IS NOT ACCESSIBLE BY THE BROWSER !
    | 
    | Currently there are only two popular E-mail providers supporting IMAP/oauth2,
    | Outlook and Gmail. In order to use oauth2 you must create a web application
    | that generates a client id, client secret and a redirect URI, then define them
    | in this file.
    | 
    | Outlook.com https://account.live.com/developers/applications/
    | Gmail: https://console.developers.google.com/project
    | 
    */

    //[gmail]
    'gmail' => [
        'client_id'      => env('GMAIL_CLIENT_ID', ''),
        'client_secret'  => env('GMAIL_CLIENT_SECRET', ''),
        'client_uri'     => env('GMAIL_CLIENT_URI', ''),
        'auth_uri'       => env('GMAIL_AUTH_URI', 'https://accounts.google.com/o/oauth2/auth'),
        'token_uri'      => env('GMAIL_TOKEN_URI', 'https://www.googleapis.com/oauth2/v3/token'),
        'refresh_uri'    => env('GMAIL_REFRESH_URI', 'https://www.googleapis.com/oauth2/v3/token')
    ],

    //[outlook]
    'outlook' => [
        'client_id'      => env('OUTLOOK_CLIENT_ID', ''),
        'client_secret'  => env('OUTLOOK_CLIENT_SECRET', ''),
        'client_uri'     => env('OUTLOOK_CLIENT_URI', ''),
        'auth_uri'       => env('OUTLOOK_AUTH_URI', 'https://login.live.com/oauth20_authorize.srf'),
        'token_uri'      => env('OUTLOOK_TOKEN_URI', 'https://login.live.com/oauth20_token.srf'),
        'refresh_uri'    => env('OUTLOOK_REFRESH_URI', 'https://login.live.com/oauth20_token.srf')
    ],

    /* 
    | [wordpress.com]
    | ----------------------------------------------------------
    | Constants used for oauth2 communication with WordPress.com
    | ----------------------------------------------------------
    |
    | Once you edit this file, you must move it to the directory defined by
    | app_data_dir in your config/app.php file. No need to re-run the
    | config_gen.php script.
    | 
    | SECURITY ALERT ! MAKE SURE THAT THIS FILE IS NOT ACCESSIBLE BY THE BROWSER ! 
    */

    //[wordpress]
    'wordpress' => [
        'client_id'      => env('WORDPRESS_CLIENT_ID', ''),
        'client_secret'  => env('WORDPRESS_CLIENT_SECRET', ''),
        'client_uri'     => env('WORDPRESS_CLIENT_URI', '')
    ],
];
