1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2013 The Android Open Source Project 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15--> 16 17 <!-- 18 This file contains configuration information for OAuth providers this app 19 is registered with. 20 21 ==== FORMAT OF ENTRIES ==== 22 23 This file is used to specify parameters to be used when attempting 24 to authenticate using OAuth. 25 26 Here is an example entry: 27 28 <provider id="google" 29 label="Google" 30 auth_endpoint="https://accounts.google.com/o/oauth2/auth" 31 token_endpoint="https://accounts.google.com/o/oauth2/token" 32 refresh_endpoint="https://accounts.google.com/o/oauth2/token" 33 response_type="code" 34 redirect_uri="https://localhost/" 35 scope="https://mail.google.com" 36 state="state" 37 client_id=[REDACTED] 38 client_secret=[REDACTED]> 39 </provider> 40 41 id: An identifier that is unique within this file. It can be referenced from providers.xml 42 if a email provider is known to allow OAuth authentication. 43 label: The text that will be displayed to the user when selecting a provider to access 44 for OAuth authentication. 45 46 The rest of these values are determined when registering your app with a provider. 47 auth_endpoint: The uri to access when making the authentication request. 48 token_endpoint: The uri to access when getting the initial access and refresh tokens. 49 refresh_endpoint: The uri to access when refreshing the access token. 50 response_type: Value sent as "response_type" when making the authentication request. 51 redirect_uri: Value sent as "redirect_uri" when making the authentication request. 52 scope: Value(s) sent as "scope" when making the authentication request. 53 state: Value sent as "state" when making the authentication request. 54 client_id: Value sent as "client_id" when making the authentication request, and when 55 getting and refreshing the access token. 56 client_secret: Value sent as "client_secret" when getting and refreshing the access token. 57 --> 58 59<oauth> 60 61</oauth> 62