Conversation
| Assert.assertNotNull(result.accessToken()); | ||
| Assert.assertNotNull(result.idToken()); | ||
| Assert.assertEquals(user.getUpn(), result.account().username()); | ||
| } |
There was a problem hiding this comment.
I think you should be able to assert that the id token that gets returned has the claims that you requested.
src/integrationtest/java/com.microsoft.aad.msal4j/AuthorizationCodeIT.java
Outdated
Show resolved
Hide resolved
src/integrationtest/java/com.microsoft.aad.msal4j/AuthorizationCodeIT.java
Outdated
Show resolved
Hide resolved
src/main/java/com/microsoft/aad/msal4j/AuthorizationRequestUrlParameters.java
Outdated
Show resolved
Hide resolved
|
Although slightly off-topic, I encountered the following issue while implementing this on .NET - it looks like there is an expectation that if the user configures |
bgavrilMS
left a comment
There was a problem hiding this comment.
Send claims to /token endpoint as well
If claims are configured, token cache must be bypassed. If client capabilities are configured, it should not.
|
@bgavrilMS Not sure about sending claims to token endpoint - according to spec https://openid.net/specs/openid-connect-core-1_0.html#ClaimsParameter Not sure about bypassing cache when "claims" is used - i would imagine that most of applications use claims parameter always or not use it at all. |
bgavrilMS
left a comment
There was a problem hiding this comment.
I think we ironed out all the details. I'm afraid I don't have time to do review this in detail though, so removing my review so as not to block the PR>
src/main/java/com/microsoft/aad/msal4j/AuthorizationRequestUrlParameters.java
Outdated
Show resolved
Hide resolved
src/main/java/com/microsoft/aad/msal4j/AuthorizationRequestUrlParameters.java
Outdated
Show resolved
Hide resolved
src/main/java/com/microsoft/aad/msal4j/AuthorizationRequestUrlParameters.java
Show resolved
Hide resolved
src/integrationtest/java/com.microsoft.aad.msal4j/AuthorizationCodeIT.java
Show resolved
Hide resolved
src/integrationtest/java/com.microsoft.aad.msal4j/AuthorizationCodeIT.java
Outdated
Show resolved
Hide resolved
src/main/java/com/microsoft/aad/msal4j/AuthorizationRequestUrlParameters.java
Outdated
Show resolved
Hide resolved
src/main/java/com/microsoft/aad/msal4j/AuthorizationRequestUrlParameters.java
Outdated
Show resolved
Hide resolved
src/main/java/com/microsoft/aad/msal4j/AuthorizationRequestUrlParameters.java
Outdated
Show resolved
Hide resolved
src/test/java/com/microsoft/aad/msal4j/AuthorizationRequestUrlParametersTest.java
Outdated
Show resolved
Hide resolved
src/test/java/com/microsoft/aad/msal4j/AuthorizationRequestUrlParametersTest.java
Outdated
Show resolved
Hide resolved
src/test/java/com/microsoft/aad/msal4j/AuthorizationRequestUrlParametersTest.java
Outdated
Show resolved
Hide resolved
…tion-library-for-java into avdunn/claims-and-capabilities � Conflicts: � src/integrationtest/java/com.microsoft.aad.msal4j/AuthorizationCodeIT.java � src/main/java/com/microsoft/aad/msal4j/AbstractClientApplicationBase.java � src/main/java/com/microsoft/aad/msal4j/AuthenticationErrorCode.java
src/integrationtest/java/com.microsoft.aad.msal4j/AuthorizationCodeIT.java
Outdated
Show resolved
Hide resolved
src/integrationtest/java/com.microsoft.aad.msal4j/AuthorizationCodeIT.java
Outdated
Show resolved
Hide resolved
src/main/java/com/microsoft/aad/msal4j/AbstractClientApplicationBase.java
Show resolved
Hide resolved
src/main/java/com/microsoft/aad/msal4j/AbstractClientApplicationBase.java
Show resolved
Hide resolved
src/test/java/com/microsoft/aad/msal4j/AuthorizationRequestUrlParametersTest.java
Show resolved
Hide resolved
These changes are covered under another set of requested changes
Added support for client capabilities, as per #197
Main functionality is to create a new parameter that can be set as part of an authorization request, and this new parameter is merged into the existing claims parameter.
See AzureAD/microsoft-authentication-library-for-dotnet#1641 for a related implementation in the .NET library