ionic-appauth
ionic-appauth copied to clipboard
Missing parameters: id_token_hint with KeyCloack
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?
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.
Hello Matt,
I would be happy too if you could do a release :)
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);
}
}