//  Copyright (c) Microsoft Corporation.
//  All rights reserved.
//
//  This code is licensed under the MIT License.
//
//  Permission is hereby granted, free of charge, to any person obtaining a copy
//  of this software and associated documentation files(the "Software"), to deal
//  in the Software without restriction, including without limitation the rights
//  to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
//  copies of the Software, and to permit persons to whom the Software is
//  furnished to do so, subject to the following conditions :
//
//  The above copyright notice and this permission notice shall be included in
//  all copies or substantial portions of the Software.
//
//  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
//  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
//  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
//  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
//  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
//  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
//  THE SOFTWARE.

package com.microsoft.aad.adal.example.userappwithbroker;

/**
 * Constants file.
 */

public class Constants {
    enum AuthorityType {
        AAD_COMMON("https://login.microsoftonline.com/common"),
        AAD_MSDEVEX("https://login.microsoftonline.com/msdevex.onmicrosoft.com"),
        AAD_GUEST("https://login.microsoftonline.com/nomfaad.onmicrosoft.com");

        private final String text;
        AuthorityType(String s) {
            text = s;
        }
        public String getText() {
            return text;
        }
    }

    enum DataProfile {
        SHAREPOINT("https://msdevex-my.sharepoint.com"),
        GRAPH("https://graph.windows.net"),
        OFFICE_ONEDRIVE("https://api.office.com/discovery"),
        SIMPLE("00000002-0000-0000-c000-000000000000");

        private final String text;
        DataProfile(String s) {
            text = s;
        }
        public String getText() {
            return text;
        }
    }


    enum ClientId {
        MSDEVEX("b92e0ba5-f86e-4411-8e18-6b5f928d968a"),
        ONEDRIVE("af124e86-4e96-495a-b70a-90f90ab96707"),
        OFFICE("d3590ed6-52b3-4102-aeff-aad2292ab01c"),
        APPCHECK2_BF("f5d01c1c-abe6-4207-ae2d-5bc9af251724"),
        GUESTCLIENT("ea5c8087-2476-489c-ae03-ad44a2ac399d");

        private final String text;
        ClientId(String s) {
            text = s;
        }
        public String getText() {
            return text;
        }
    }

    enum RedirectUri {
        Regular("msauth://com.microsoft.aad.adal.userappwithbroker/IcB5PxIyvbLkbFVtBI%2FitkW%2Fejk%3D"),
        Broker("urn:ietf:wg:oauth:2.0:oob");

        private final String text;
        RedirectUri(String s) {
            text = s;
        }
        public String getText() {
            return text;
        }
    }

}

@@ -1267,36 +1267,8 @@
 r;%0A%0A
-/**%0A * Constants file.%0A */%0A%0A
 publ
@@ -1537,16 +1537,77 @@
 ft.com%22)
+,%0A        AAD_WINDOWS_NET(%22https://login.windows.net/common%22)
 ;%0A%0A     
@@ -2016,24 +2016,25 @@
 0000000%22);%0A%0A
+%0A
         priv
@@ -2509,16 +2509,242 @@
 ac399d%22)
+,%0A        ADFSV4(%221b345377-6ae2-4a23-9c3d-efc35ef04eb9%22),%0A        ADFSV3(%22a43f9949-a199-40e9-b342-2ac5596c84f2%22),%0A        PING(%226b748729-d940-4482-8724-5eb87a817a10%22),%0A        SHIBBOLETH(%22d518483c-c15b-4a00-9f59-cff3ffc1077b%22)
 ;%0A%0A     
@@ -3004,39 +3004,37 @@
 ker/
-IcB5PxIyvbLkbFVtBI%252FitkW%252Fejk
+L8kGVGYgNOaxbhn9Y7vR%252F6LIEG8
 %253D%22
@@ -3079,16 +3079,116 @@
 .0:oob%22)
+,%0A        LABS(%22msauth://com.microsoft.aad.adal.userappwithbroker/2%252BQqCWt1ilKg0IrfKT6CkdMpPqk%253D%22)
 ;%0A%0A     
@@ -3356,11 +3356,10 @@
 %7D%0A    %7D%0A
-%0A
 %7D%0A

update the Constants.java configuration file for the Fancy app (#1131)