ionic-appauth icon indicating copy to clipboard operation
ionic-appauth copied to clipboard

Missing parameters: id_token_hint with KeyCloack

Open dimitrivalax opened this issue 10 months ago • 2 comments

Hello,

We have encountered this problem on logout with an Ionic/Angular app. and the only solution we have found is to downgrade the version of the library from 2.1.0 to 2.0.0.

I've seen that the fix has already been merged onto master.

My question is when do you plan to release a new version please?

dimitrivalax avatar Feb 05 '25 13:02 dimitrivalax

I haven't maintained this library since I got laid off from Okta last February. However, I'm happy to do a release if people want one.

mraible avatar Feb 05 '25 15:02 mraible

Hello Matt,

I would be happy too if you could do a release :)

dimitrivalax avatar Feb 05 '25 16:02 dimitrivalax

Use a workaround until a new release will come.

import { AuthService, EndSessionRequest } from 'ionic-appauth';

export class ExtendedAuthService extends AuthService {
    protected override async performEndSessionRequest(state?: string): Promise<void> {
        const token = await this.getValidToken();
        const idTokenHint = token?.idToken;
        const config = await this.configuration;

        const endSessionRequest = new EndSessionRequest({
            idTokenHint: idTokenHint!,
            postLogoutRedirectURI: config?.endSessionEndpoint as string,
            state,
        })

        await this.endSessionHandler.performEndSessionRequest(config, endSessionRequest);
    }
}

weihsth avatar Jul 27 '25 14:07 weihsth