/
Config.java
45 lines (36 loc) · 1.6 KB
/
Config.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// ----------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
// ----------------------------------------------------------------------------
package com.encryptcredentialsample.encryptcredential.config;
/**
* Configuration class
*/
public abstract class Config {
// Set this to true, to show debug statements in console
public static final boolean DEBUG = false;
// Two possible Authentication methods:
// - For authentication with master user credential choose MasterUser as
// AuthenticationType.
// - For authentication with app secret choose ServicePrincipal as
// AuthenticationType.
// More details here: https://aka.ms/EmbedServicePrincipal
public static final String authenticationType = "ServicePrincipal";
// Common configuration properties for both authentication types
// Enter Application Id
public static final String clientId = "";
// Enter MasterUser credentials
public static final String pbiUsername = "";
public static final String pbiPassword = "";
// Enter ServicePrincipal credentials
public static final String tenantId = "";
public static final String clientSecret = "";
// DO NOT CHANGE
public static final String authorityUrl = "https://login.microsoftonline.com/";
public static final String powerBiApiUrl = "https://api.powerbi.com/";
public static final String scopeBase = "https://analysis.windows.net/powerbi/api/.default";
private Config() {
// Private Constructor will prevent the instantiation of this class directly
throw new IllegalStateException("Config class");
}
}