I have my azure ad b2c setup to work with my application's authentication needs. I'm able to generate token with scope=openid. However, when i try to use offline_access scope to get token i get below error. Im using Authorization Code grant type for this token request
Error: invalid_grant, Description: AADB2C90085: The service has encountered an internal error
Attached screenshot
refreshtokenissue.png
Below are the technical profiles that i have on the TRUSTFRAMEWORKBASE.xml that are related to refresh token. Any input to solve the would be appreciated.
<ClaimsProvider> <DisplayName>Token Issuer</DisplayName> <TechnicalProfiles> <TechnicalProfile Id="JwtIssuer"> <DisplayName>JWT Issuer</DisplayName> <Protocol Name="OpenIdConnect" /> <OutputTokenFormat>JWT</OutputTokenFormat> <Metadata> <Item Key="client_id">{service:te}</Item> <Item Key="issuer_refresh_token_user_identity_claim_type">objectId</Item> <Item Key="SendTokenResponseBodyWithJsonNumbers">true</Item> </Metadata> <CryptographicKeys> <Key Id="issuer_secret" StorageReferenceId="B2C_1A_TokenSigningKeyContainer" /> <Key Id="issuer_refresh_token_key" StorageReferenceId="B2C_1A_TokenEncryptionKeyContainer" /> </CryptographicKeys> <UseTechnicalProfileForSessionManagement ReferenceId="SM-jwt-issuer" /> </TechnicalProfile> </TechnicalProfiles> </ClaimsProvider> <!--claims provider for refresh token revocation--> <ClaimsProvider> <DisplayName>Refresh token journey</DisplayName> <TechnicalProfiles> <TechnicalProfile Id="RefreshTokenReadAndSetup"> <DisplayName>Trustframework Policy Engine Refresh Token Setup Technical Profile</DisplayName> <Protocol Name="None" /> <OutputClaims> <OutputClaim ClaimTypeReferenceId="objectId" /> <OutputClaim ClaimTypeReferenceId="refreshTokenIssuedOnDateTime" /> </OutputClaims> </TechnicalProfile> <TechnicalProfile Id="AAD-UserReadUsingObjectId-CheckRefreshTokenDate"> <OutputClaims> <OutputClaim ClaimTypeReferenceId="refreshTokensValidFromDateTime" /> <OutputClaim ClaimTypeReferenceId="displayName" /> </OutputClaims> <OutputClaimsTransformations> <OutputClaimsTransformation ReferenceId="AssertRefreshTokenIssuedLaterThanValidFromDate" /> </OutputClaimsTransformations> <IncludeTechnicalProfile ReferenceId="AAD-UserReadUsingObjectId" /> </TechnicalProfile> </TechnicalProfiles> </ClaimsProvider>