There is a requirement from the identity server of not to pass 'state' and 'scope' in the URL.
The request is in following format
URL?app=xxx&response_type=code&client_id=yyy&state=zzz&redirect_uri=aaa&scope=openid%20id%20offline_access**
Angular code loads the Auth Config as follows:
export const authConfigDefaults: AuthConfig = Object.freeze({
oidc: false,
responseType: 'code',
scope: 'openid id offline_access',
strictDiscoveryDocumentValidation: false,
redirectUri: redirectURL,
silentRefreshTimeout: HALF_HOUR,
fallbackAccessTokenExpirationTimeInSec: HALF_HOUR,
useSilentRefresh: true
});
'state' is passed in the URL even if I try to set 'state' = '' in the above block.
How to avoid state and scope in the URL which is passed to identity server?
stateis indeed optional for the client the pass, but it's required for the server to support. Sounds like both your server and client are buggy.