You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: support/entra/entra-id/app-integration/enable-msal4j-logging-spring-boot-webapp.md
+7-9Lines changed: 7 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,9 +13,7 @@ This article provides step-by-step instructions on how to enable [Microsoft Auth
13
13
14
14
## Code sample
15
15
16
-
The complete code sample and configuration guide for this implementation is available on [GitHub](https://github.com/bachoang/MSAL4J_SpringBoot_Logging/tree/main/msal-b2c-web-sample).
17
-
18
-
The sample uses Azure Active Directory B2C.
16
+
The complete code sample and configuration guide for this implementation are available on [GitHub](https://github.com/bachoang/MSAL4J_SpringBoot_Logging/tree/main/msal-b2c-web-sample).
19
17
20
18
## Enable MSAL4J logging
21
19
@@ -29,7 +27,7 @@ The sample uses Azure Active Directory B2C.
29
27
</dependency>
30
28
```
31
29
32
-
2. In the **Resource** section of the Visual Studio or other IDE tool, create a new file named **logback.xml** in the **src/main/resources** folder and add the following content:
30
+
2. In your app project, create a new file named **logback.xml** in the **src/main/resources** folder and add the following content:
33
31
34
32
```xml
35
33
<?xml version="1.0" encoding="UTF-8"?>
@@ -43,10 +41,10 @@ The sample uses Azure Active Directory B2C.
43
41
<appender-refref="STDOUT" />
44
42
</root>
45
43
</configuration>
46
-
47
-
This configuration (also known as Appender) logs messages to the console. You can adjust the logging level to `error`, `warn`, `info`, or `verbose` based on your preference. For more information, see [LogBack: Appenders](https://logback.qos.ch/manual/appenders.html)
48
44
```
49
-
3. Set the logging.config property to the location of the logback.xml file before the main method:
45
+
46
+
This Appender configuration logs messages to the console. You can adjust the logging level to `error`, `warn`, `info`, or `verbose` based on your preference. For more information, see [LogBack: Appenders](https://logback.qos.ch/manual/appenders.html)
47
+
3. Set the **logging.config** property to the location of the **logback.xml** file before the main method:
50
48
51
49
```java
52
50
@SpringBootApplication
@@ -71,9 +69,9 @@ The code sample uses HTTP protocol. Follow [Configure the sample to use your Azu
71
69
72
70
### App registration configuration
73
71
74
-
Follow these step to configure app registration in Azure AD B2C:
72
+
Follow these steps to configure app registration in Azure AD B2C:
75
73
76
-
1. Create two app registrations in your Azure AD B2C tenant: One for the web application. and the other for the web API.
74
+
1. Create two app registrations in your Azure AD B2C tenant: One for the web application and the other for the web API.
77
75
2. Expose the required scope in the web API. Refer to [this documentation](/azure/active-directory-b2c/configure-authentication-sample-web-app-with-api?tabs=visual-studio#step-22-configure-web-api-app-scopes) for guidance on exposing web API scopes.
78
76
3. Configure the web API scope in the **API Permissions** blade for the web application.
79
77
4. Grant admin consent to all configured permissions in the web application.
0 commit comments