-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make AAD B2C support global properties. (#25799)
- Loading branch information
Rujun Chen
authored
Dec 6, 2021
1 parent
97ee351
commit cfcadfd
Showing
19 changed files
with
225 additions
and
169 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
...m/azure/spring/cloud/autoconfigure/aad/b2c/implementation/AADB2CCredentialProperties.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
package com.azure.spring.cloud.autoconfigure.aad.b2c.implementation; | ||
|
||
/** | ||
* Properties used for authorize. | ||
*/ | ||
public class AADB2CCredentialProperties { | ||
|
||
/** | ||
* Client id to use when performing service principal authentication with Azure. | ||
*/ | ||
private String clientId; | ||
|
||
/** | ||
* Client secret to use when performing service principal authentication with Azure. | ||
*/ | ||
private String clientSecret; | ||
|
||
public String getClientId() { | ||
return clientId; | ||
} | ||
|
||
public void setClientId(String clientId) { | ||
this.clientId = clientId; | ||
} | ||
|
||
public String getClientSecret() { | ||
return clientSecret; | ||
} | ||
|
||
public void setClientSecret(String clientSecret) { | ||
this.clientSecret = clientSecret; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
.../com/azure/spring/cloud/autoconfigure/aad/b2c/implementation/AADB2CProfileProperties.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
package com.azure.spring.cloud.autoconfigure.aad.b2c.implementation; | ||
|
||
/** | ||
* Profile of Azure cloud environment. | ||
*/ | ||
public class AADB2CProfileProperties { | ||
/** | ||
* Azure Tenant ID. | ||
*/ | ||
private String tenantId; // tenantId can not set to "common" here, otherwise we can not know whether it's set by customer or it is the default value. | ||
|
||
public void setTenantId(String tenantId) { | ||
this.tenantId = tenantId; | ||
} | ||
|
||
public String getTenantId() { | ||
return tenantId; | ||
} | ||
} |
Oops, something went wrong.