Skip to content

Commit ef7cc25

Browse files
davidcoutadeurrouazana
authored andcommitted
make authenticationURL, usersURL and scope parameters optional (make graphAPI endpoints customizable #3)
1 parent 7840bc6 commit ef7cc25

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ The values to configure are:
2828

2929
##### Connection
3030

31-
- `connections.pluginConnection.msGraphApiConnectionSettings.authenticationURL`: The base URL used for authentication (default is https://login.microsoftonline.com/)
32-
- `connections.pluginConnection.msGraphApiConnectionSettings.usersURL`: The base URL used for operations on users (default is https://graph.microsoft.com)
33-
- `connections.pluginConnection.msGraphApiConnectionSettings.scope`: The scope url used during authentication (default is https://graph.microsoft.com/.default)
31+
- `connections.pluginConnection.msGraphApiConnectionSettings.authenticationURL`: The base URL used for authentication (default is https://login.microsoftonline.com/) (optional)
32+
- `connections.pluginConnection.msGraphApiConnectionSettings.usersURL`: The base URL used for operations on users (default is https://graph.microsoft.com) (optional)
33+
- `connections.pluginConnection.msGraphApiConnectionSettings.scope`: The scope url used during authentication (default is https://graph.microsoft.com/.default) (optional)
3434
- `connections.pluginConnection.msGraphApiConnectionSettings.clientId`: The client id for the application
3535
- `connections.pluginConnection.msGraphApiConnectionSettings.clientSecret`: The client secret used to connect to the application
3636
- `connections.pluginConnection.msGraphApiConnectionSettings.tenant`: The Azure AD tenant

src/main/java/org/lsc/plugins/connectors/msgraphapi/generated/MsGraphApiConnectionSettings.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@
5151
@XmlRootElement(name = "msGraphApiConnectionSettings", namespace = "http://lsc-project.org/XSD/lsc-microsoft-graph-api-plugin-1.0.xsd")
5252
public class MsGraphApiConnectionSettings {
5353

54-
@XmlElement(namespace = "http://lsc-project.org/XSD/lsc-microsoft-graph-api-plugin-1.0.xsd", required = true)
54+
@XmlElement(namespace = "http://lsc-project.org/XSD/lsc-microsoft-graph-api-plugin-1.0.xsd", required = false)
5555
protected String authenticationURL;
56-
@XmlElement(namespace = "http://lsc-project.org/XSD/lsc-microsoft-graph-api-plugin-1.0.xsd", required = true)
56+
@XmlElement(namespace = "http://lsc-project.org/XSD/lsc-microsoft-graph-api-plugin-1.0.xsd", required = false)
5757
protected String usersURL;
58-
@XmlElement(namespace = "http://lsc-project.org/XSD/lsc-microsoft-graph-api-plugin-1.0.xsd", required = true)
58+
@XmlElement(namespace = "http://lsc-project.org/XSD/lsc-microsoft-graph-api-plugin-1.0.xsd", required = false)
5959
protected String scope;
6060
@XmlElement(namespace = "http://lsc-project.org/XSD/lsc-microsoft-graph-api-plugin-1.0.xsd", required = true)
6161
protected String clientId;

src/main/resources/schemas/lsc-microsoft-graph-api-plugin-1.0.xsd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
<xsd:element name="msGraphApiConnectionSettings">
1010
<xsd:complexType>
1111
<xsd:sequence>
12-
<xsd:element name="authenticationURL" type="xsd:string" />
13-
<xsd:element name="usersURL" type="xsd:string" />
14-
<xsd:element name="scope" type="xsd:string" />
12+
<xsd:element name="authenticationURL" type="xsd:string" minOccurs="0" maxOccurs="1" />
13+
<xsd:element name="usersURL" type="xsd:string" minOccurs="0" maxOccurs="1" />
14+
<xsd:element name="scope" type="xsd:string" minOccurs="0" maxOccurs="1" />
1515
<xsd:element name="clientId" type="xsd:string" />
1616
<xsd:element name="clientSecret" type="xsd:string" />
1717
<xsd:element name="tenant" type="xsd:string" />

0 commit comments

Comments
 (0)