Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReturnOAuth2Error on RedeemRefreshToken does not throw error and outputs 2 refresh token bodies #627

Open
LiamHall opened this issue Jul 25, 2024 · 0 comments

Comments

@LiamHall
Copy link

I have attempted to use the following technical profile on token refresh journey:

			<TechnicalProfile Id="ReturnOAuth2Error">
				<DisplayName>Return OAuth2 error</DisplayName>
				<Protocol Name="OAuth2" />
				<OutputTokenFormat>OAuth2Error</OutputTokenFormat>
				<CryptographicKeys>
					<Key Id="issuer_secret" StorageReferenceId="B2C_1A_TokenSigningKeyContainer" />
				</CryptographicKeys>
				<InputClaims>
					<InputClaim ClaimTypeReferenceId="errorCode" />
					<InputClaim ClaimTypeReferenceId="errorMessage" />
				</InputClaims>
			</TechnicalProfile>

When this technical profile executes it also executes the JwtIssuer technical profile and I am left with the following body when I would expect an error to be returned:

{
	"id_token": "removed-for-demo-purposes"
    "token_type": "Bearer",
    "not_before": 1721919362,
    "id_token_expires_in": 3600,
	"profile_info" : "removed-for-demo-purposes"
    "scope": "offline_access openid",
	"refresh_token": "removed-for-demo-purposes"
    "refresh_token_expires_in": 86400
}{
	"id_token": "removed-for-demo-purposes"
    "token_type": "Bearer",
    "not_before": 1721919362,
    "id_token_expires_in": 3600,
	"profile_info" : "removed-for-demo-purposes"
    "scope": "offline_access openid",
	"refresh_token": "removed-for-demo-purposes"
    "refresh_token_expires_in": 86400
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant