Conversation
sangonzal
left a comment
There was a problem hiding this comment.
Discussed other questions offline. ![]()
| build(); | ||
|
|
||
| AuthenticationResult result = cca.acquireToken(ClientCredentialParameters | ||
| AuthenticationResult result = (AuthenticationResult)cca.acquireToken(ClientCredentialParameters |
There was a problem hiding this comment.
IAuthenticationResult instead of casting for consistency ?
| build(); | ||
|
|
||
| AuthenticationResult result = pca.acquireToken(UserNamePasswordParameters | ||
| AuthenticationResult result = (AuthenticationResult)pca.acquireToken(UserNamePasswordParameters |
|
|
||
| Assert.assertNotNull(result); | ||
| Assert.assertNotNull(result.accessToken()); | ||
| Assert.assertNotNull(result.refreshToken()); |
There was a problem hiding this comment.
Assert.assertNotNull(result.refreshToken()); [](start = 8, length = 44)
Assuming for ROPC where we don't get the RT, however what changed other places made the RT be null now?
There was a problem hiding this comment.
we do not expose RT through IAuthenticationResult
|
|
||
| Assert.assertNotNull(result); | ||
| Assert.assertNotNull(result.accessToken()); | ||
| Assert.assertNotNull(result.refreshToken()); |
There was a problem hiding this comment.
Assert.assertNotNull(result.refreshToken()); [](start = 8, length = 44)
Why?
There was a problem hiding this comment.
we do not expose RT through IAuthenticationResult
| account.clientInfo().toAccountIdentifier()); | ||
| account.environment(environment); | ||
| @AllArgsConstructor | ||
| public class Account implements IAccount { |
There was a problem hiding this comment.
Account [](start = 13, length = 7)
what happened to the other fields on account? not sure I understand why those are only for the cache entity
There was a problem hiding this comment.
This change was to separate Account cache entity from IAccount - part of public api
| @Getter | ||
| @Setter | ||
| @EqualsAndHashCode | ||
| class AccountCacheEntity { |
There was a problem hiding this comment.
should this implement IAccount ?
There was a problem hiding this comment.
This change was to separate Account cache entity from IAccount - part of public api
|
a number of field/class comments has been removed. How are the api docs created? |
| package com.microsoft.aad.msal4j; | ||
|
|
||
| public interface ITokenCache { | ||
| void deserializeAndLoadToCache(String data); |
There was a problem hiding this comment.
perhaps just deserialize or load? And add a comment to clarify what actually happens?
There was a problem hiding this comment.
may be ... ok will rename
| public interface ITokenCache { | ||
| void deserializeAndLoadToCache(String data); | ||
|
|
||
| String serialize(); |
| @@ -25,8 +25,8 @@ | |||
|
|
|||
| public interface ITokenCacheAccessAspect { | |||
|
|
||
| IAccount getAccount(); | ||
|
|
||
| boolean isCacheChanged(); |
There was a problem hiding this comment.
is [](start = 12, length = 2)
nit: understand why you call this is ... perhaps has?
|
|
||
| IAccount getAccount(); | ||
|
|
||
| boolean isCacheChanged(); |
|
|
||
| public static String INSTANCE_DISCOVERY_RESPONSE = "{" + | ||
| "\"tenant_discovery_endpoint\":\"https://login.microsoftonline.com/organizations/v2.0/.well-known/openid-configuration\"," + | ||
| "\"tenant_discovery_endpoint\":\"https://login.microsoftonline.com/organizations/v2.0/.well-known/openid-appConfiguration\"," + |
There was a problem hiding this comment.
app [](start = 117, length = 3)
why adding app?
There was a problem hiding this comment.
will fix - side effect of refactoring with IDE
|
|
||
| public interface IAccount { | ||
|
|
||
| String homeAccountId(); |
There was a problem hiding this comment.
Consider adding comments to public interfaces
| /** | ||
| * Represents the results of token acquisition operation. | ||
| */ | ||
| public interface IAuthenticationResult { |
There was a problem hiding this comment.
Consider adding comments to public interfaces
@henrik-me Yes, comments are inherited from interfaces |
No description provided.